aspose file tools*
The moose likes JBoss/WildFly and the fly likes Facing badly with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Facing badly with "java.lang.OutOfMemoryError: Java heap space" issue on JBoss Application server" Watch "Facing badly with "java.lang.OutOfMemoryError: Java heap space" issue on JBoss Application server" New topic
Author

Facing badly with "java.lang.OutOfMemoryError: Java heap space" issue on JBoss Application server

Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 137



I'm facing this java.lang.OutOfMemoryError: Java heap space. My application is deployed on Jboss AS on unix. Kindly suggest me how deal with it and also where I can increas its size on JBoss?


Vinod Vijay Nair
Komal Renu
Ranch Hand

Joined: Jul 21, 2011
Posts: 51
In the run.conf file in bin folder of JBoss, search for "JAVA_OPTS".
And modify the size as required. Eg - JAVA_OPTS="-Xms512m -Xmx1024m

Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu | krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

You can set the heap size in bin/run.conf.

You can find out what is taking up the heap space by setting -XX:+HeapDumpOnOutOfMemoryError, and then loading the resulting file into VirtaulVM.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Facing badly with "java.lang.OutOfMemoryError: Java heap space" issue on JBoss Application server