This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Exception in thread "domain1-StderrDrainer" java.lang.OutOfMemoryError: Java heap space" Watch "Exception in thread "domain1-StderrDrainer" java.lang.OutOfMemoryError: Java heap space" New topic
Author

Exception in thread "domain1-StderrDrainer" java.lang.OutOfMemoryError: Java heap space

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

Hi,

From time to time i get this error , and it makes the server hangs and need to restart the domain



My environment :
Win 2000 server , Glassfish v3.0.1

Any recommendations ?


Thanks,
Sherif
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

Any recommendations Guys ?
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

What is your heap size now? If you have more data to hold in memory than you have space then you need to increase the heap size.
If you are sure you do not hold that much of data in memory then look for memory leaks.

Is it specific to some product? If no, then I will move it to a more appropriate forum.


apigee, a better way to API!
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

Nitesh Kant wrote:What is your heap size now? If you have more data to hold in memory than you have space then you need to increase the heap size.
If you are sure you do not hold that much of data in memory then look for memory leaks.

Is it specific to some product? If no, then I will move it to a more appropriate forum.

Hi ,
My heap size is : -Xmx1024m

i think it's enough , what do you think ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "domain1-StderrDrainer" java.lang.OutOfMemoryError: Java heap space
 
Similar Threads
Causes for errors in JVM
putting images in java applet using swing, which is coded in netbeans IDE.
startNodeManager.sh and startWeblogic.sh doesn't start to execute
module failed to deploy on weblogic server
Exception in thread "http-bio-8080-exec-3"