Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JVM -serve Option  (Read 3789 times)
0 Members and 1 Guest are viewing this topic.
Offline Mojomonkey

Senior Devvie




ooh ooh eee eeee


« Posted 2003-07-21 12:43:45 »

I was talking to a colleague about the -serve JVM option, or rather he was talking to me about it. I realized I really knew nothing about it, nor did he. I was wondering if anyone has experiences with it, what are the advantages vs. regular client?

He was under the impression that -serve compile to native, which I'm CERTAIN is false, but didn't want to say anything before I had it confirmed.

Don't send a man to do a monkey's work.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #1 - Posted 2003-07-21 14:09:35 »

Both client and server VMs compile bytecode to native code.

The server VM has more optimizations and compiles more aggressively.  It tends to have a slower startup time because of this, and perhaps longer pauses caused by compiling the "hot spots", but has generally better performance after it has decided to compile everything.

The client VM was designed for faster startup, followed by improved performance from compiling.  The server doesn't care so much about startup time - just performance.  It may also use more memory.

Offline Mojomonkey

Senior Devvie




ooh ooh eee eeee


« Reply #2 - Posted 2003-07-21 14:14:23 »

Quote
Both client and server VMs compile bytecode to native code.


Well, yeah, heh. What I meant is he was under the impression that it compiles the byte code into native leaving the native code where it can be used later. Sounded like misinformation to me then, and still does after your response.

So basically it comes down to server slower start up faster running, client faster slower running. With memory issues thrown in.

Don't send a man to do a monkey's work.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 161