wood burning stoves 2.0*
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 Spring in Action this week in the Spring 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: 483

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: 483

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: 483

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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception in thread "domain1-StderrDrainer" java.lang.OutOfMemoryError: Java heap space