Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vinod Vijay
Ranch Hand
Posts: 150
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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?
 
Komal Renu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic