Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two JVM's on a single Jboss

 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one context per "web application" per Java Virtual Machine


As per servletcontext spec we will have one context per application per JVM.

My question is can we run find 2 JVM's on a single JBoss instance ?

If Yes then two servletContext will be present .
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't have more than one JVM for one instance of JBoss AS. When you start a JBoss AS, a separate JVM is instantiated.
 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote: When you start a JBoss AS, a separate JVM is instantiated.


Does this mean JBoss will have a separate JVM internally or it will use system default.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does this mean JBoss will have a separate JVM internally or it will use system default.

When you start the JBoss AS, the "java" command is executed (see the run.bat/run.sh script in the bin folder). The "java" command triggers the creation of a new JVM in which the AS will run.
 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your quick replies .

This means that JBoss will start the System installed JVMm inn the classpath -Im i rite ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karimkhan pathan wrote:
This means that JBoss will start the System installed JVMm inn the classpath -Im i rite ?


It will use JAVA_HOME/bin/java to start the JVM. So whatever JVM you point to, through JAVA_HOME variable, will be used.


 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks JaiKiran ..
It was helpful ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic