• Post Reply Bookmark Topic Watch Topic
  • New Topic

JVMs

 
Anand Iyer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have multiple JVMs on the same machine?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. You can have lots inactive (they're just executable programs, after all), and even lots running at once. I routinely have about 4 running for various server purposes.
 
Anand Iyer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frank..I am kind of new to this one...so trying to get to
the root level.. What I understand is JVM is specification and
JRE implements it. Could you explain to me in detail how we can have multiple JVMs? Any links/sites which could explain these
basic concepts?
Thank you very much for your time.
Anand
 
Edward Man
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JVM is an implementation. In Windows, it is java.exe (and some DLL's, of course).
Every time you open a DOS window, and execute java [a class file] you are running a new instance of a JVM. In one DOS window, you can run a server. In some other DOS windows, you can run other java programs that talk together. Each DOS window will start a new instance of the JVM, so you can have multiple JVMs on one machine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!