Solved

OutOfMemoryError while lookup jndi with launchClient

Posted on 2004-10-02
7
568 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
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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