My Oracle Support Banner

Application Taking up CPU in StackWalker API Calls on Java SE 11 (Doc ID 2544372.1)

Last updated on MAY 02, 2021

Applies to:

Java SE JDK and JRE - Version 11 and later
Information in this document applies to any platform.

Symptoms

An application running with JDK 11.0.2 on Linux 6 is consuming CPU after a few hours of up time.  Performing a manual garbage collection brings the CPU usage down.

The application does not exhibit this anomaly with JDK 8, using the same Garbage Collector (ParallelOldGC) and Java options.

Capturing several jstacks show glimpses in some threads with the following thread stack, but these threads disappear very quickly making troubleshooting difficult to determine if the threads are the ones taking up CPU.

Changes

 Use of the StackWalker API was introduced in JDK 9.

Cause

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
Symptoms
Changes
Cause
Solution
References


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