Solved

OutOfMemoryError while lookup jndi with launchClient

Posted on 2004-10-02
7
572 Views
Last Modified: 2013-12-10
Hi

I'm encountering this weird situation. When i try to lookup JNDI using while using LaunchClient, i keep getting this error

javax.naming.NamingException: The JNDI operation "lookup"on the context "tibs-apps/nodes/apps/servers/server1" with the n
ame "jdbc/thedb" failed.  Please get the root cause Throwable contained in this NamingException for more information.  Root e
xception is

java.lang.OutOfMemoryError
        <<no stack trace available>>

By the way, this only happen when i try call my application using LaunchClient, the same methods is called in the web project, it's fine.

And i've tried it in my development server, it works. Just not working in my production server.


Any idea what is wrong?

0
Comment
Question by:sklim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 14

Expert Comment

by:boonleng
ID: 12217133
Can you post the source code.
Thanks.
0
 
LVL 7

Expert Comment

by:damonf
ID: 12217180
mysterious OutOfMemory errors usually mean you have to increase the heap size on the JVM which is bombing, in this case on your production server.
0
 

Author Comment

by:sklim
ID: 12223772
how is it done? can show the steps?
0
 
LVL 7

Accepted Solution

by:
damonf earned 250 total points
ID: 12225849
Add a startup parameter from the admin console ... you can either add this manually to the startup arguments or go to the application server, yourServer, JVM settings.  There should be a minimum and maximum heap size setting fields there.  If you have to do it manually the command line is:

-Xms1000m -Xmx1000m

(just for example)

Xms means minimum heap size (at startup) in MB, which is really just for speed ... if you allocate the heap right away things will load faster.

Xmx means maximum heap size overall in MB.  This is the one you really want to increase if you think you're having a problem with heap.
0
 

Author Comment

by:sklim
ID: 12443050
how to determine how much heap size i should set?
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question