OC4J Fails to Shutdown Gracefully when Using Log4J in the Application (Doc ID 353354.1)

Last updated on OCTOBER 02, 2017

Applies to:

Oracle Containers for J2EE - Version: 10.1.2.0.0
This problem can occur on any platform.

Symptoms

An OC4J instance, hosting a J2EE Application that uses Log4J for logging, hangs when shutdown is issued using the OPMN command, opmnctl,  or the Application Server Console. The OC4J instance process has to be killed forcefully to shut it down.

Another symptom noticed is that OC4J starts leaking memory due to the hanging threads - this can especially be seen if one attempts a deploy & undeploy of the application in question.

Cause

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