logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Larry (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (LOG4J2-426) Permgen leak: Log4j2 does not unregister MBeans on shutdown
Date Thu, 07 Nov 2013 16:39:17 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13816103#comment-13816103
] 

Jon Larry edited comment on LOG4J2-426 at 11/7/13 4:37 PM:
-----------------------------------------------------------

I'm not getting uniquely registered jmx LoggerContext either. Added log4jContextName and log4jConfiguration
context-params in  web.xml and am using org.apache.logging.log4j.core.web.Log4jServletContextListener
servlet-listener of two different web apps.
(version 2.0-beta9)

Resulting in a single LoggerContext Mbean:
.  org.apache.logging.log4j2:type=LoggerContext,ctx=AsyncLoggerContext

Also the mbean attributes for the AssyncLoggerContext are incorrect:
.   configLocation=file:/Applications/eclipse-cequint/Eclipse.app/Contents/MacOS/CCDB
.   configText=FileNotFoundException...

I would have expected the configLocation to reflect the log4j2 file that was loaded and configText
to contain the xml in that file. CCDB is the context name of the log4j2.xml and belongs to
one of the web apps. The context for the other web app is nowhere to be seen.






was (Author: jonlarry):
I'm not getting uniquely registered jmx LoggerContext either. Added log4jContextName and log4jConfiguration
context-params in  web.xml and am using org.apache.logging.log4j.core.web.Log4jServletContextListener
servlet-listener of two different web apps.
(version 2.0-beta9)

Resulting in a single LoggerContext Mbean:
.  org.apache.logging.log4j2:type=LoggerContext,ctx=AsyncLoggerContext

Also the mbean attributes for the AssyncLoggerContext are incorrect:
.   configLocation=file:/Applications/eclipse-cequint/Eclipse.app/Contents/MacOS/CCDB
.   configText=FileNotFoundException...

I would have expected the configLocation to reflect the log4j2 file that was loaded and configText
to contain the xml in that file.





> Permgen leak: Log4j2 does not unregister MBeans on shutdown
> -----------------------------------------------------------
>
>                 Key: LOG4J2-426
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-426
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 2.0-beta9
>         Environment: JDK7 64bit, Win8 64bit. Apache Tomcat 7
>            Reporter: Sergey Alaev
>
> Subj. This causes permgen leak on undeploying web applications which uses log4j2.
> Also, as far as i can see, there is no support exposing multiple log4j2 contexts via
JMX which can be nice for web applications.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message