How To Enable Jconsole Jps Jstack And Other Java Tools For OC4J Under Windows

(Doc ID 436356.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
z*OBSOLETE: Microsoft Windows XP
Microsoft Windows XP
Oracle Application Server 10g Enterprise Edition - Version: to
Checked for relevance on 15-April-2011

***Checked for relevance on 16-Jan-2014***


How to get the standard java tools like jconsole, jps and jstat working for OC4J on windows. 

These sometimes do not work out of the box, either they will not find the PID (process ID) of the java process to monitor, or they will throw the error:

Exception in thread "main" java.lang.Exception: Could not open PerfMemory

IAS 10.1.3 uses version 1.5 of the JDK and there are some useful tools provided. Unfortunately for the windows platform the tools available in this version are not nearly as comprehensive as solaris or linux
(which have things like jmap , jinfo and jstack) but on windows you  do at least get:

jps :          list java processes
jstat :        print detailed stats on JVM operation
jconsole : A graphical, easy-to-use monitoring console


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms