Re: Java on OpenVMS - optimizing performance (255 Views)
Reply
Frequent Advisor
A.W.R
Posts: 191
Registered: ‎06-01-2006
Message 1 of 5 (607 Views)

Java on OpenVMS - optimising performance

Hi,

 

I have a java program that I am running on my OpenVMS Integrity.

 

The Java version is:-

 

$ java -version        

java version "6.0"

Java (TM) SE Runtime Environment

Java HotSpot (TM) 64-Bit Server VM (build 1.6.0-1 06/25/2009-12:58 IA64 (c2)W,m)

  

                                                 

I invoke the program with:-

 

$ java -jar dsa4:[admin.java]PRDLoggerProd.jar "PRDTRANSPORTER"

 

But it runs very slowly. Not sure of this is because it has to first load and start java.

 

Any tips on optimising java for OpenVMS would be appreciated.

 

Thanks

Andrew

 

Honored Contributor
Hein van den Heuvel
Posts: 6,588
Registered: ‎05-19-2003
Message 2 of 5 (573 Views)

Re: Java on OpenVMS - optimising performance

'runs very slowly' does not give us much to go on.

 

- compared to what?

- can tell what progress is is making? why do you think it is not reasonable?

- can you enable or add logging to further understand where it is spending time? 

- what is it doing? Consuming CPU? DIRIO? BUFIO Pagefaulting?

- Network interaction involved?

- Database involved?

- logging to a sequential file, byte-by-byte, allocating block-by-block?

 

hth,

Hein.

 

 

Trusted Contributor
Jeremy Begg
Posts: 383
Registered: ‎01-20-2005
Message 3 of 5 (561 Views)

Re: Java on OpenVMS - optimising performance

Hi Andrew,

 

Firstly, if you're running Java 1.6 (which would appear to be the case), install the latest Java patch kit which fixes some problems with alignment faults.  This might give an instant performance improvement.

 

Secondly, you should have a look at the Java for OpenVMS documentation at

http://h18012.www1.hp.com/java/documentation/1.6.0/ivms/docs/index.html

which includes hints & tips for correct Java environment setup and performance.

 

Regards,

Jeremy Begg

 

Valued Contributor
Ph Vouters
Posts: 198
Registered: ‎10-29-2010
Message 4 of 5 (260 Views)

Re: Java on OpenVMS - optimizing performance

Hi Andrew,

 

First Java in server mode runs less your code than Java in client mode. And Java/VMS ought to exclusively execute in server mode. And this explains why Java/VMS is only good at executing huge Java bytecode. For a good comparison between the two Java modes, I refer you to the Java obtained performances figures at http://vouters.dyndns.org/tima/Linux-Tcl-PHP-Perl-Python-Ruby-Java-C-C++-PCRE-Turning_Cobol_DECforms...

 

To be more complete, I very recently discovered JRockit, thanks to an Iranian of my knowledge. JRockit offers a JVM which should performance place itself in between Java server and Java client modes. My best summary upon JRockit was this URL link at http://weblogic.sys-con.com/node/43022 which fully addressed my Google query : "What is JRockit ? Which need does cover JRockit ?"

 

In the hope this answer better address your concern.

Best,

Philippe

Valued Contributor
Ph Vouters
Posts: 198
Registered: ‎10-29-2010
Message 5 of 5 (255 Views)

Re: Java on OpenVMS - optimizing performance

Andrew,

 

If you paid enough attention to this sentence in the second URL I posted and that I quote:

"

A handful of core classes have been modified for better performance, but the majority of classes are unchanged from the Sun JVM.

"

JRockit benefits are not innocent. It should be at the cost of some non Java standard methods. This can explain why JRockit is an Oracle requirement to execute Weblogic and why Weblogic ought to NOT be supported under OpenVMS.

 

My remark is in case you did read the second URL link I posted too fastly.

 

Best,

Philippe

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.