Operating System - OpenVMS
Showing results for 
Search instead for 
Did you mean: 

Java on OpenVMS - optimising performance

Frequent Advisor

Java on OpenVMS - optimising performance



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.





Hein van den Heuvel
Honored Contributor

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?






Jeremy Begg
Trusted Contributor

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


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



Jeremy Begg


Ph Vouters
Valued Contributor

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_C_VMS_Listings_to_source.html


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.



Ph Vouters
Valued Contributor

Re: Java on OpenVMS - optimizing performance



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.