Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50B67183AB for ; Wed, 6 Apr 2016 05:24:26 +0000 (UTC) Received: (qmail 61535 invoked by uid 500); 6 Apr 2016 05:24:26 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 61471 invoked by uid 500); 6 Apr 2016 05:24:26 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 61443 invoked by uid 99); 6 Apr 2016 05:24:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 05:24:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9296D2C1F58 for ; Wed, 6 Apr 2016 05:24:25 +0000 (UTC) Date: Wed, 6 Apr 2016 05:24:25 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LOG4J2-1340) AsyncLogger's Ringbuffer holding all JVM memory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227742#comment-15227742 ] Remko Popma edited comment on LOG4J2-1340 at 4/6/16 5:24 AM: ------------------------------------------------------------- I think you are trying to set the system property after Log4j has been initialized. The Spring configuration file is probably not the best place to do this. Where to do this depends on the web container you are using. In Tomcat for example you would specify system properties in this file: {{$\{TOMCAT_HOME}\conf\catalina.properties}}. For other web containers please consult the container docs. Instead of using system properties, the property can also be specified in a file named {{log4j2.component.properties}} by including this file in the classpath of the application. was (Author: remkop@yahoo.com): I think you are trying to set the system property after Log4j has been initialized. The Spring configuration file is probably not the best place to do this. Where to do this depends on the web container you are using. In Tomcat for example you would specify system properties in this file: {{$\{TOMCAT_HOME}\conf\catalina.properties}}. For other web containers please consult the container docs. > AsyncLogger's Ringbuffer holding all JVM memory > ----------------------------------------------- > > Key: LOG4J2-1340 > URL: https://issues.apache.org/jira/browse/LOG4J2-1340 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.5 > Environment: Linux 2.6.32-431.17.1.el6.x86_64 x86_64 > java version "1.7.0_75" > OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13) > OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode) > Reporter: Soma > Attachments: debuglog ringbuffersize.png, heapdump.JPG > > > JVM getting Out of memory. when I see the heapdump analysis I found 93% of memory occupied by AsyncLogger's RingBuffer. we have total of 5 AsyncLoggers in our applications each having default buffer size. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org