java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX) (384 Views)
Reply
Occasional Contributor
Andrey Leontyev
Posts: 4
Registered: ‎05-25-2011
Message 1 of 7 (384 Views)

java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

We need your help about performance problems running our corporate Java application on HP-UX server. Application is standalone tool which synchronizes data over several data bases into one, communicates with remote control on XML-RPC protocol and uses local Derby (Java DB) data base instance to hold configuration data etc. We don not have performance problems on other environments on the same load like Windows XP, Linux and AIX which use Sun JVM. After series of test we found out that most time consuming was communication with Derby data base. Most time is spent on reading from socket and this time is greater in 10-100 times than on other platforms. We know for sure that Derby works fine, we’ve got CPU reserve (usage is about 30%-40%, up to 70%), so most probable reason is transport layer between local data base and application.

Is there a way to diagnose socket I\O problems on HP-UX or maybe there is some possible limitations that can be configured? Maybe there is necessary JVM option? Any feedback from your side would be highly appreciated.

We’ve tried to optimize JVM options according to http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multi... but didn’t get any significant improvement.

JVM info:
Java HotSpot(TM) 64-Bit Server VM (19.1-b02-jinteg:2011mar11-16:46 PA2.0W (aCC_AP), mixed mode)
Java: version 1.6.0.10, vendor "Hewlett-Packard Company"

We use following instance:
OS: HP-UX (B.11.23)
Architecture: PA_RISC2.0W 64bit
Processors: 2

Total physical memory size: 4 088 MB
Swap size: 4 090 MB
Please use plain text.
Honored Contributor
Alzhy
Posts: 4,373
Registered: ‎01-22-2002
Message 2 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

Well - if your HP-UX machine is PARISC - it will naturally be trounced by any other X86 CPU circa 2004 and later (2+ Ghz clock speed).

There's just no way even the fastest PARISC system can beat X86 OS based Java period.

Let me guess -- your PARISC is likely a PA8800 or PA8900 system right? So something likely ~ 1.0 Ghz?

I know performance is not all about clock speed -- but c'mon -- PARISC are just old chips. Even earlier Pentiums and Xeons with HT (hyperthreading featurettes) are significantly faster than PARISC in certain compute workloads.

Hakuna Matata.
Please use plain text.
Honored Contributor
Ralph Grothe
Posts: 2,631
Registered: ‎04-09-2000
Message 3 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

There was an option to pass to the JVM on startup to make it initialize as a server and use a different memory model than the usual say desktop JVM would, as far as I remember.
But I'm sure this must have been addressed in the IBM link that you mentioned (haven't read it to be honest).
Madness, thy name is system administration
Please use plain text.
Occasional Contributor
Andrey Leontyev
Posts: 4
Registered: ‎05-25-2011
Message 4 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

To Ralph Grothe:
Thank you for your reply. Yes, we are working in server mode. JVM switch it on automatically on HP-UX.
Please use plain text.
Occasional Contributor
Andrey Leontyev
Posts: 4
Registered: ‎05-25-2011
Message 5 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

To: Alzhy
Thank you for your reply. I am pretty sure that we use old server. I will try to get it.
But unfortunately we cannot change it(
Please use plain text.
Honored Contributor
Alzhy
Posts: 4,373
Registered: ‎01-22-2002
Message 6 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

Then you cannot simply compare a Honda Civic to a an Acura sir.

What kind of PC/X86 environment were you comparing against?

I deal with this performance debacles/differences all the time. No amount of tuning on the old aging UNIX system (whose CPUs are a generation older than current) can beat even yesterday's X86 speedsters. Even today's current UNIX systems can still be beaten by today's X86 systems in head to head battle.

So you should really compare against a similarly configured system.

Good Luck.
Hakuna Matata.
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,962
Registered: ‎03-06-2006
Message 7 of 7 (384 Views)

Re: java application on HP-UX performs very slow (much slower than on Windows , Linux, AIX)

Other than the comments about aging PA systems and making sure you have the latest patches, if you have java performance problems, you should talk to the Response Center.
Please use plain text.
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