RE: Memory Leaks in Log4j

2002-07-31 Thread Shapira, Yoav

Hi,
Ceki has already answered, and I myself haven't heard of nor experienced
memory leaks.  We have had large, long-lived servers use log4j with many
Loggers and several appenders, never had any problems.  However, I'm
curious about something else in your question, and this may make this
thread OFF-TOPIC ;)

>my company. the out of memory condition generally seems to have
>occurred when the application was made to process a lot of SNMP traps
>in a very brief period of time. the same memory condition does not
>occur when logging is turned off though. that application uses the
>console and file appenders.

So you have an app that uses log4j's File and Console appenders only,
not SNMPAppender, yet the out of memory condition occurs when there's a
lot of SNMP processing going on?

Did you run it with a profiler to see what's happening?  Alternatively,
did you try increasing the max memory a little to see if maybe those
"lot of SNMP traps" require more memory naturally?  An OutOfMemoryError
does not always indicate a memory leak.

Thanks,

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Memory Leaks in Log4j

2002-07-30 Thread Ceki Gülcü

At 19:46 30.07.2002 -0400, you wrote:

>i have heard people complaining about it in other sister projects in my 
>company. the out of memory condition generally seems to have occurred when 
>the application was made to process a lot of SNMP traps in a very brief 
>period of time. the same memory condition does not occur when logging is 
>turned off though. that application uses the console and file appenders.
>
>we are planning to use log4j version 1.2.5 for our project with the 
>JDBCAppender writing to Oracle. it would make me feel good if i knew if 
>there were any known issues with memory and Log4j.

Not to my knowledge no. The only known memory leak is when you do
NDC.push operations but forget to call NDC.remove() when leaving a
thread. This is a well-documented problem.

>On the aside, does anybody know since which version of Log4J, the 
>JDBCAppender was available ? Was it there from the very beginning ?

Since log4j 1.2rc1 which became available in May 2002 or so.

>Regards,
>Mohan.

--
Ceki


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Memory Leaks in Log4j

2002-07-30 Thread Krishna Mohan Nerella


i have heard people complaining about it in other sister projects in 
my company. the out of memory condition generally seems to have 
occurred when the application was made to process a lot of SNMP traps 
in a very brief period of time. the same memory condition does not 
occur when logging is turned off though. that application uses the 
console and file appenders.

we are planning to use log4j version 1.2.5 for our project with the 
JDBCAppender writing to Oracle. it would make me feel good if i knew 
if there were any known issues with memory and Log4j.

On the aside, does anybody know since which version of Log4J, the 
JDBCAppender was available ? Was it there from the very beginning ?

Regards,
Mohan.


Mark Womack wrote:

> Do you have any specific suspicions you are trying to confirm?
> 
> -Mark
> 
> 
>>-Original Message-
>>From: Krishna Mohan Nerella [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 30, 2002 4:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: Memory Leaks in Log4j
>>
>>
>>hello,
>>
>>has anybody experienced or is aware of memory leak problems 
>>with log4j 
>> ? if so i would like to know under what circumstances and how to 
>>fix/prevent them.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Memory Leaks in Log4j

2002-07-30 Thread Mark Womack

Do you have any specific suspicions you are trying to confirm?

-Mark

> -Original Message-
> From: Krishna Mohan Nerella [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 4:21 PM
> To: [EMAIL PROTECTED]
> Subject: Memory Leaks in Log4j
> 
> 
> hello,
> 
> has anybody experienced or is aware of memory leak problems 
> with log4j 
>  ? if so i would like to know under what circumstances and how to 
> fix/prevent them.
> 
> Regards,
> Mohan.
> -- 
> Reality is just a convenient measure of complexity.
> - Alvy Ray Smith
> ---
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: