?
Solved

OutOfMemoryError while lookup jndi with launchClient

Posted on 2004-10-02
7
Medium Priority
?
578 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 1000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

777 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