You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Wozniak, Marcin" <ma...@siemens.com> on 2007/03/21 13:42:28 UTC

Weird memory consumption

Hi, 

We have been investigating memory leaks in the system we write (JAVA)
and we experianced the following problem on Red Hat 4.0 system. 

Even though JConsole, and JProfiler do not show any improper memory
consumption in JVM, operation system tools like Top show that JVM
process consumes a lot of memory. 

The longer the test lasts, the more memory loss can be noticed. 

What is the most interesting, when we delete the log files of our system
(our software not Red Hat logs), all of the memory that seems to be
missing is reclaimed right away (these are few-hundred-megabytes files
most of the time).

We use log4j version 1.2.14 as a logging framework.

Do you have any suspicions if this can be related to Red Hat operating
system / Java VM / log4j logging framework?

Thx in advance

Marcin

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


RE: Weird memory consumption

Posted by "Wozniak, Marcin" <ma...@siemens.com>.
Our log4j configuration.

RollingFileAppenders or FileAppender (no matter what sort of appender we
use, symptoms are the same). Rolling appender 3 files, 1GB each.
Every appender work i asynchronous mode (buffer is set to 10000), but it
is worth mentioning that when we've configured synchronous appenders
symptoms were the same.
Debug leven doesn't fix the problem. (When we set logging level to
debug, memory is consumed much faster).



-----Original Message-----
From: James Stauffer [mailto:stauffer.james@gmail.com] 
Sent: Wednesday, March 21, 2007 3:48 PM
To: Log4J Users List
Subject: Re: Weird memory consumption

What is your log4j configuration?

On 3/21/07, Wozniak, Marcin <ma...@siemens.com> wrote:
> Hi,
>
> We have been investigating memory leaks in the system we write (JAVA)
> and we experianced the following problem on Red Hat 4.0 system.
>
> Even though JConsole, and JProfiler do not show any improper memory
> consumption in JVM, operation system tools like Top show that JVM
> process consumes a lot of memory.
>
> The longer the test lasts, the more memory loss can be noticed.
>
> What is the most interesting, when we delete the log files of our
system
> (our software not Red Hat logs), all of the memory that seems to be
> missing is reclaimed right away (these are few-hundred-megabytes files
> most of the time).
>
> We use log4j version 1.2.14 as a logging framework.
>
> Do you have any suspicions if this can be related to Red Hat operating
> system / Java VM / log4j logging framework?
>
> Thx in advance
>
> Marcin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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


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


Re: Weird memory consumption

Posted by James Stauffer <st...@gmail.com>.
What is your log4j configuration?

On 3/21/07, Wozniak, Marcin <ma...@siemens.com> wrote:
> Hi,
>
> We have been investigating memory leaks in the system we write (JAVA)
> and we experianced the following problem on Red Hat 4.0 system.
>
> Even though JConsole, and JProfiler do not show any improper memory
> consumption in JVM, operation system tools like Top show that JVM
> process consumes a lot of memory.
>
> The longer the test lasts, the more memory loss can be noticed.
>
> What is the most interesting, when we delete the log files of our system
> (our software not Red Hat logs), all of the memory that seems to be
> missing is reclaimed right away (these are few-hundred-megabytes files
> most of the time).
>
> We use log4j version 1.2.14 as a logging framework.
>
> Do you have any suspicions if this can be related to Red Hat operating
> system / Java VM / log4j logging framework?
>
> Thx in advance
>
> Marcin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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