Unsynchronized HashMap Usage In GlassFish Server Connection Pool Causes High CPU Utilzation

(Doc ID 1998861.1)

Last updated on APRIL 04, 2017

Applies to:

Oracle GlassFish Server - Version 3.1.2 and later
Information in this document applies to any platform.


Running into situations where connection pool threads are spinning in infinite loops. It appears to be due to unsynchronized use of a HashMap. This causes corruption of the internal structure of the HashMap which then causes infinite loops.

Here is a sample prstat output from the GlassFish Server process taken when the problem is seen:



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