View previous topic :: View next topic
|
Author |
Message |
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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. |
|
Back to top |
|
|
|