Page 1 of 1

Java problem in unix

PostPosted: Sat Dec 25, 2010 11:55 pm
by rayco
Hi every one
i have some problem with java 1.6 in unix.
i have installed java v 1.4 in unix and it's work fine. but when
i use default JDK of Unix v1.6 i have some problem when running
java programs. the speed of executing java programs are very very slowly!
Any help can be useful.

warm regards

Re: Java problem in unix

PostPosted: Sun Dec 26, 2010 4:04 am
by dick scherrer
Hello and welcome to the forum,

You need to post what you tried and what error(s) were encountered.

The execution speed is slow compared to what?

Re: Java problem in unix

PostPosted: Sun Dec 26, 2010 10:13 am
by rayco
hi dick scherrer
thanks for reply.
actualy there is no error. but the speed of executing programs with jdk1.6 versus jdk1.4 is very low.
my program is a simple "Hello world" java program. and when i run my test program using:
# java test

at least i must wait 5 minutes to see a simple "Hello Wrold" message !!!
but with jdk 1.4 every thing is fine!
(hint: i have installed jdk1.4 manualy but jdk1.6 is the default jdk of Unix)
Do you have any idea about this?

Re: Java problem in unix

PostPosted: Sun Dec 26, 2010 11:12 am
by dick scherrer
Hello,

Do you have any idea about this?
Only a couple of guesses. . . :)

Is there something that has to be recalled for the slower runs?

Can you determine if the same sequence of events happens in both cases (i don't have access to any java, so i have not done any of this kind of testing). Do both runs require the same memory and i/o?

Are there any client configurations that have (or should have) changed between 1.4 and 1.6?

Re: Java problem in unix

PostPosted: Fri Jan 07, 2011 10:29 pm
by rayco
Hi again
unfortunately the problem still exist!
i attached 2 images:
1- processing list when i run a java program (the JOBNAME of my java program is: SYSTEM45)
2- content of my profile

please see attachements and say me if there is some strange stuff
Thanks a lot

Re: Java problem in unix

PostPosted: Sat Jan 08, 2011 9:12 am
by dick scherrer
Hello,

Please re-post the "screenshots" using copy/paste and the Code tag. Screenshots are not needed as they introduce clutter and waste space.

There is a Preview function so you can see your post as it will appear to the forum.

Re: Java problem in unix

PostPosted: Sat Jan 08, 2011 7:08 pm
by Robert Sample
All you've done is post screen shots that show some Unix process taking 21.45 CPU time -- there is nothing to indicate that it is running Java, there is nothing to indicate that the 1.4 runs faster, noting to indicate why you are posting the screen shots even.

If you truly think you are seeing huge CPU time differences between Java 1.4 and 1.6, you need to open a PMR with IBM, not bring the problem up here. IBM has the resources and knowledge to determine if you're doing something wrong in your Java code, your environment is set up wrong, or if there really is a problem that needs to be addressed.