This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between client and server VM  RSS feed

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java VM has two options -client and -server. Does it mean that when I am deploying my code to JBoss, I should make sure that -server option is used ? Is this merely for performance improvements ?
 
eammon bannon
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming here that you are referring to HotSpot, then yes, and yes. What you are actually doing is switching to a different VM, the default is the client VM, -server will mean JBoss uses the Server VM which has been designed for long running server apps. Hava a look at http://java.sun.com/products/hotspot/ if you want to know more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!