This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to increase jboss memory?

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry if this is a dumb question, but what is the proper way to increase the JVM memory with JBoss? I'm getting a lot of OutOfMemoryErrors from my webapp when I execute jboss/bin/run.sh which is why I'm looking to do this. I see in run.sh file there is a JAVA_OPTS variable they are setting but I don't see them explicitly setting the -Xms or -Xmx parameters when launching the JVM, although it is being set somewhere.

Just curious what is the proper standard way to increase these variables. Do Xms and Xmx have to be set to equal values?

I'm using jboss 4.2.3 on linux and openjdk 64-Bit Server VM by the way. Thanks.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In AS-4.x, the JAVA_OPTS for *nix systems in set in bin/run.conf file. For windows, it's set in run.bat. Starting AS-5, even the Windows version has its own conf file run.conf.bat.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic