My Oracle Support Banner

How To Enable Jconsole Jps Jstack And Other Java Tools For OC4J Under Windows (Doc ID 436356.1)

Last updated on AUGUST 06, 2018

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
z*OBSOLETE: Microsoft Windows XP
Microsoft Windows XP
Oracle Application Server 10g Enterprise Edition - Version: 10.1.3.0.0 to 10.1.3.3.0

Goal

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

Solution

To view full details, 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 a vibrant support community of peers and Oracle experts.