Solved

OutOfMemoryError while lookup jndi with launchClient

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
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.…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now