1834915 Members
2467 Online
110071 Solutions
New Discussion

Performance issue

 
Pinkal
Occasional Contributor

Performance issue

We try peace of code in JAVA. with HP-UX 11i and normal Linux 7.3

We got the very poor result in the HP-UX system

Almost doble time tacken by the HP-UX than Linux.

We are using JDK1.5
14 REPLIES 14

Re: Performance issue

You don't say *anything* about the systems... are we talking about a 3GHz AMD opetron vs. an old PA8500...

what does the code do... is it just processing or does it carry out IO??

Your gonna need to give us a lot more information before we can comment on this.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Pinkal
Occasional Contributor

Re: Performance issue

It is multi threaded application creating 20+ threads using extensive computation and requires IO (Flat file) opration as well.

Re: Performance issue

More info required!

What sort of system is the Linux box, how many, what type/speed CPUs?

What sort of system is the HPUX box, how many, what type/speed CPUs?

Do either system have any other load upon them?

WHat about the IO subsystem - what type of disk drives, what speed etc.

Have you run the HP app through jmeter:

http://www.hp.com/products1/unix/java/hpjmeter/index.html

Have you configured your HPUX system using jconfig:

http://www.hp.com/products1/unix/java/java2/hpjconfig/index.html

Or you could try the java out-of--box tool:

http://www.hp.com/products1/unix/java/java2/outofbox/index.html

HTH

Duncan

I am an HPE Employee
Accept or Kudo
ranvirsinh
New Member

Re: Performance issue

We are using Linux 7.3 on 2.8 Ghz CPU + 512 mB rAM

The UP Unix is having 2 CPU of same capicity..

The Java Program that is running is same as one of my team member told u.

Re: Performance issue

mmm so what CPUs have the 'same capacity' as the AMD ones? ARe the PA8700? PA8800? Itanium 2? PA7200?

Type 'model' on the HPUX box to find out...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
ranvirsinh
New Member

Re: Performance issue

It is showing this when given 'model' command..

9000/800/A500-7X

Re: Performance issue

So thats a 2.8GHz x86 processor (you don't say whether its Intel or AMD) vs. a 750MHz PA8700 processor... of course the slower CPU clock speed doesn't necessarily mean a slower processor, however...

What sort of computation? Integer or floating point

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Alzhy
Honored Contributor

Re: Performance issue

Pinkal et Raviren...

You cannot compare a 750Mhz PARISC CPU with an Intel 2.8 Ghz CPU period. The Intel box - whatever OS it will run will simply beat the HP-UX machine in any compute-intensive tasks.

Hakuna Matata.
Alzhy
Honored Contributor

Re: Performance issue

From www.spec.org's SPEC2000 results:

a Pentium 2.8 Ghz achieves around 1126 spec rating

A HP A500 Workstation with 550 Mhz (which is probably what you have) only does 406.

Hakuna Matata.
ranvir_1
New Member

Re: Performance issue

Hi , Duncan and nelson,

Thanks for the guidence..

There are some issues and i want some help regarding those..i m putting it one by one.


Model command's output: 9000/800/A500-7X

Here , does this output mean that.. it is HP9000 800 A Class model A500???
what does the 7x means?


Linux is running on And 2.8Ghz x86 Intel processor.

The output of Top command is showing only one CPU row at top.. does it mean that
the HP system is running on only one CPU??

Other than Processor speed , what other hardware configuration is causing the slowness or the system?
how can i know acject configuratio of the system?

At least i knw that HP Unix is runnig on 2GB (Approx ) RAM while Linux is running on
512 Mb Ram.

Ask me if any more info u need to solve the issue.

Ranvir.

Re: Performance issue

Have you tried using the tools I pointed you at in my 2nd post?

For a Java based app, these are the best places to start...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Alzhy
Honored Contributor

Re: Performance issue

The -7XX - I think means it probbaly has a 750Mhz CPU.

Look no further, a 550 to 750 to 875Mhz PARISC CPU just won't stand up compared to a Pentium 2.8 Ghz cpu -- specially in compute intensive Java applications period. No amount of tweaking on your PARISC machine will be able to bring it close to the performance of your Linux/Penitum boxen.
Hakuna Matata.
Pinkal
Occasional Contributor

Re: Performance issue

What is to be given as DISPLAY variable ?

We are using HP Unix by telnet.. means on console .

what should be set as a display??


Error Log:
$ java -mx1238m -jar HPjmeter.jar
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '10.10' as the value of the DISPLAY variab
le.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:139)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.(MToolkit.java:88)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.Toolkit$2.run(Toolkit.java:749)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:740)
at javax.swing.ImageIcon.(ImageIcon.java:119)
at javax.swing.ImageIcon.(ImageIcon.java:138)
at a.a.a.a.p.(p.java)
at HPjmeter.main(HPjmeter.java)

Re: Performance issue

jmeter is an X Windows application, and it expects to be able to connect to a GUI - so you either:

needs some X emulation software like Reflections X or Hummingbird Exceed or Cygwin with Xfree86 on your PC

-or-

presumably your linux box has a gui console running kde/gnome or the like? From the GUI, start a terminal session and enter

xhosts +

that will allow the HPUX box to connect to the xwindows gui on the linux box, then

echo $DISPLAY

this will give you the display setting for this linux box.

now telnet to the hpux box and once at the prompt enter

export DISPLAY=

replacing with the setting from the DISPLAY variable on the linux box.

You should now be able to run jmeter.

HTH

Duncan

I am an HPE Employee
Accept or Kudo