Java problem in unix



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Java problem in unix

Postby rayco » Sat Dec 25, 2010 11:55 pm

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
rayco
 
Posts: 3
Joined: Sat Dec 25, 2010 11:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Java problem in unix

Postby dick scherrer » Sun Dec 26, 2010 4:04 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Java problem in unix

Postby rayco » Sun Dec 26, 2010 10:13 am

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?
rayco
 
Posts: 3
Joined: Sat Dec 25, 2010 11:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Java problem in unix

Postby dick scherrer » Sun Dec 26, 2010 11:12 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Java problem in unix

Postby rayco » Fri Jan 07, 2011 10:29 pm

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
You do not have the required permissions to view the files attached to this post.
rayco
 
Posts: 3
Joined: Sat Dec 25, 2010 11:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Java problem in unix

Postby dick scherrer » Sat Jan 08, 2011 9:12 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Java problem in unix

Postby Robert Sample » Sat Jan 08, 2011 7:08 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post