The VMs are qutie intelligent in their optimization
I'm not sure about that. Almost by definition JIT VMs only do rather easy or simple optimizations that can be done quickly, since they're being done during execution.
How -server handles things I do not know. Probably better, since it's allowed to take its time.