IntelliJ Java IDE
The moose likes JBoss and the fly likes Facing badly with Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply 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: 93



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: 50
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: 4875

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
 
 
subject: Facing badly with "java.lang.OutOfMemoryError: Java heap space" issue on JBoss Application server
 
Threads others viewed
issue while using struts-core-1.3.5
SQL Error: 1049, SQLState: 42000 - please help
OutOfMemoryError: java heap size while starting jboss4.2.2 in solaris
Newbie to JBoss
Tomcat classes in jar in libs doesn't work
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture