My Oracle Support Banner

Find Out The Thread That Is Taking High CPU Usage In OC4J (Doc ID 467624.1)

Last updated on MAY 21, 2021

Applies to:

Oracle Containers for J2EE - Version 10.1.2.0.0 to 10.1.3.5.0 [Release AS10gR2 to AS10gR3]
Linux x86

Purpose

To find out the java thread that is taking high CPU usage in OC4J

This article is specific to Linux due to its threading model and makes specific use of parameters for the ps command that only exist in Linux but not in other operating systems. The general idea from this note might, however, be used on other platforms also, but then requires deeper knowledge of that operating system.

Scope

If you are using the JDK 1.4 then you need to set the LD_ASSUME_KERNEL value to 2.4.1 to get the unique nid value.

In JDK 1.5 setting the LD_ASSUME_KERNEL to 2.4.1 is not required.

Add this variable to ORACLE_HOME\opmn\conf\opmn.xml file as follows: 

 

 

Details

To view full details, sign in with your My Oracle Support account.

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


In this Document
Purpose
Scope
Details

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.