• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to configure JVM parameters per server profile in JBoss

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

As I understand it, to configure JVM heap size paramters like Xms, and Xmx, one needs to edit run.bat at <JBOSS_HOME>\bin to set JAVA_OPTS appropriately. However, this run.bat file is common across all the JBoss profiles. So the settings apply for all the profiles alike.

I am trying to figure out how I can configure JVM parameters per JBoss server profile. Could someone help?

-Neelesh
 
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
One way to achieve this is to create a copy of the run.bat per profile. Ex: run-default.bat, run-all.bat. Each bat file can then be configured to have its own set of JAVA_OPTS and other configurable parameters. Based on which profile you want to start, you can use the corresponding bat file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic