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

Jboss - JVM-Production

 
naguri narayanareddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi ,

How to select suitable jvm for jboss(any version) in production mode ?

What are the parameters we have to consider in selecting jvm ?

Regards,
Narayan.
 
anandraj tadkal
Ranch Hand
Posts: 98
Oracle Redhat
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would first check the supported version for the particular JBoss version and based on that would try to use the latest in the available range.

Few parameters that need to be considered are -Xms, -Xmx, -XX:MaxPermSize.

 
naguri narayanareddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How could we select for -xms and -xmx(is there any formula), if we want to change these values in runtime how could it possible ..?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way to determine the correct heap size settings is to run a load test on your app, analyze the garbage collection activity, and then use that to select the size. For the load testing you usually want to use a very large heap setting, then based on the gc stats you can reduce the size and try again.

And there is no way to change the -Xmx and -Xms sizes once the JVM starts running.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic