Operating System - HP-UX
1836617 Members
2216 Online
110102 Solutions
New Discussion

Re: JVM 1.4 poor performance on start

 
Jack_125
New Member

JVM 1.4 poor performance on start

Hello everyone!
I have a performance problem with a Java Virtual Machine on HPUX 11.11 on 2-way PA-RISC rp5470.Our company wants to use this machine as an Application Server using JVM 1.4.107.
The problem is:
In the benchmark test of JVM (which runs on any machine with any version of Java) I see that the 1st loop of the test takes about 37-38 seconds, while the other 4 loops it makes in 3.4 - 3.7 seconds.
I'v tried to execute the test in interpreted mode, (java -Xint SbTest 1)but its even worse (66seconds constant every loop).
It is like the JVM has a delayed start of compilation i think.
(Should I change some parameter in the jvm.cfg file?)
The test file is in attachment.
To execute:
[root@machine]# java SbTest 1 //the parameter after the filename is the number of threads to use in test.

Any help would be appreciated.
Thanks in advance!
Jack
3 REPLIES 3
Jack_125
New Member

Re: JVM 1.4 poor performance on start

OK Folks!

The problem is partially risolved:
it is enough to add an option:
XX:+UseOnStackReplacement when I run the benchmark.
This option make the JVM run in the 'compiled mode' right from the start.

Now, - is it possible to add this option to JVM to run with it by default?

Thanks for Your support
Jack

James Beamish-White_1
Occasional Advisor

Re: JVM 1.4 poor performance on start

Why don't you just add that arg to the start script of whatever applicaiton server you end up using?

You might also want to check out it's memory configuration, using JVMStat (http://developers.sun.com/dev/coolstuff/jvmstat/), it might show up that it's doing memory allocation for the first pass if -Xms is not equal to -Xmx (and for NewSize/PermSize too).

Cheers,
James
Jack_125
New Member

Re: JVM 1.4 poor performance on start

Thanks people