Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

increasing heap size in jboss

 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi buddies,

[*]how to increase the heap size in jboss 4.2.1?
Because i am getting out of memory exception.
can anyone help me out how to get rid of it?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The run.bat (run.sh for linux) has a section for adding the JVM parameters including the heap size. Look for JAVA_OPTS in that file and add your JVM setting there. This is what i have on my local setup:

 
Arun Prasath
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, thanks for your reply

what will happen if my RAM is only 1GB and if i set 2GB as the maximum heap size in JVM?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JVM will throw up an error and the java process will be killed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic