• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 | [email protected] | www.infocepts.com
-------------------------------------------------------------------------------------
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic