Muchos Gracias again !
OK ! Though I arrived at the options of -server with
a CompileThreshold size of 1500 (something which
princec already seems to be using while I was taking
my hand around my head to reach my nose), I think
my logic is possibly somewhere faulty in retrospection.
Let’s see the “facts” that I have gleaned - correct me
if I’m wrong:
o Server is a “deeper” optimizer than client, i.e.,
server will take a longer time to compile a block of
code than client.
o Hotspot will not compile a block of code unless
that block is hot, i.e., it thinks that compiling
a non-hot block is worth not the effort and that
letting the block run in interpreted mode may actually
be faster than trying to spend time to compile it.
o the thresh hold size of client is 1500 and that of
server is 10000.
Given the above, on first impulse, I would have actually
surmised that the threshold size of server would be
smaller than that of the client if app. performance is
all that matters after app. realization. IOW, if
I have already made the decision to use the server
for what it is, then why keep its default threshold size
to be higher than that of the client ? Is it because
10000 units in server mode is not directly equivalent
to that many in client mode ?
Again, given the above, and if I want to use the server
option, and assuming that the numbers 1500 and 10000
are sacrosanct, I think the threshold size
should optimally be a number greater than 1500
and less than 10000, with the twin objectives of
getting a start-up time comparable to that of client
(noting again that the server is a deeper and slower
optimizer) and at the same time being much more
compilation aggressive than the default size of
10000 would permit.
Agreed, the best numbers may have to be determined
by trying out some values as princec says,
but I just want to make sure that my understanding
about the various aspects are correct.
Also, I gather that setting Xms and Xmx values to be
the same might be easy on the Hotspot, but I haven’t
tried to examine the effect on the overall
performance.
TIA