Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Slow Execution and Bad Performance of Java Code at run time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Sun Jun 17, 2012 8:59 pm    Post subject: Slow Execution and Bad Performance of Java Code at run time
Reply with quote

Hi,

While executing ang java code with the java command in omvs I must wait for nearly 30 seconds to get back responses.
executing commands like:

Code:
java -version
java HelloWorld

the same performance issue is distinguishable in WAS v7 which i think it suffers from the JVM environment which is running under.

Unfortunately I am new in customizing JVM under OMVS (zOS).

what can I do to make java code faster in OMVS.

thanks
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Sun Jun 17, 2012 10:13 pm    Post subject:
Reply with quote

Work with your site support group. The slowness could be due to Workload Manager (WLM) policy, or BPXPRMxx having values too small for java, or numerous other possibilities. Without someone at your site looking at what is going on, it is not likely that performance will improve -- and this is certainly NOT an area where an application programmer can make much of a difference.
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Wed Jun 20, 2012 11:17 pm    Post subject: Reply to: Slow Execution and Bad Performance of Java Code at
Reply with quote

Hi,

For those who may have the same problem,After posoting this topic I downloaded Java version 7 from IBM and installed on the machine.
with greate surprise when I run a java class I saw a warnning message about delay in contacting DNS servers. by checking resolv.conf file I saw an invalid DNS ip there. by removing it, running "java HelloWorld just took around a second to finish.The WAS environment also is much more faster now.

I wonder why java interpreter does not handle e.g. nonexistant DNS. or even why it checks DNS on every invocation.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 20, 2012 11:24 pm    Post subject: Reply to: Slow Execution and Bad Performance of Java Code at
Reply with quote

Interpreted code will run much slower than compiled/object code.

Try compiling the program (IE: like COBOL) and then run it.

I think you'll a find big difference. icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us