2.4.69 memory leak?

View: New views
4 Messages — Rating Filter:   Alert me  

2.4.69 memory leak?

by Weijian Fang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am running an old jspwiki 2.4.69 as part of my web application. It
is suspected there is some memory leak, about 3KB per request. I am
still diagnosing whether the memory leak happens in the jspwiki part
or the non-jspwiki part. By the way, are you aware of any memory leak
in 2.4.69? Many thanks.

Cheers,

Weijian

Re: 2.4.69 memory leak?

by Florian Holeczek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Weijian,

Why don't you try an update to at least the latest version of the 2.4
line? As far as I know the API has already been stable between minor
releases, too, in 2.4.

Have a look at the 2.4 ChangeLog at [1]... Quite a long fix list from
.69 to .104, isn't it? ;-)
Especially this one fixed in 2.4.84 might be interesting for you:
* Fixed a memory leak in JSPWikiMarkupTranslator, found by Aron Gombas.

Regards,
 Florian

[1] http://www.ecyrd.com/~jalkanen/JSPWiki/2.4.104/ChangeLog


Ursprüngliche Nachricht vom 04.07.2008 um 15:34:
> Hi,

> I am running an old jspwiki 2.4.69 as part of my web application. It
> is suspected there is some memory leak, about 3KB per request. I am
> still diagnosing whether the memory leak happens in the jspwiki part
> or the non-jspwiki part. By the way, are you aware of any memory leak
> in 2.4.69? Many thanks.

> Cheers,

> Weijian


smime.p7s (2K) Download Attachment

Re: 2.4.69 memory leak?

by Weijian Fang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks! Florian.

I have done some more investigation. I found m_delegates of
com.ecyrd.jspwiki.event.WikiEventManager, which is a HashMap,
increases about 7MB after every 12k requests. A quick look at the code
fails to find a remove method on the hash map. Any insight on this?
Many thanks!

BTW, my jspwiki 2.4.69 is installed with a customised authenticator.
Will it somehow affect the behavior of WikiEventManager? What is
WikiEventManager used for?

Cheers,

Weijian


2008/7/4 Florian Holeczek <florian@...>:

> Hi Weijian,
>
> Why don't you try an update to at least the latest version of the 2.4
> line? As far as I know the API has already been stable between minor
> releases, too, in 2.4.
>
> Have a look at the 2.4 ChangeLog at [1]... Quite a long fix list from
> .69 to .104, isn't it? ;-)
> Especially this one fixed in 2.4.84 might be interesting for you:
> * Fixed a memory leak in JSPWikiMarkupTranslator, found by Aron Gombas.
>
> Regards,
>  Florian
>
> [1] http://www.ecyrd.com/~jalkanen/JSPWiki/2.4.104/ChangeLog
>
>
> Ursprüngliche Nachricht vom 04.07.2008 um 15:34:
>> Hi,
>
>> I am running an old jspwiki 2.4.69 as part of my web application. It
>> is suspected there is some memory leak, about 3KB per request. I am
>> still diagnosing whether the memory leak happens in the jspwiki part
>> or the non-jspwiki part. By the way, are you aware of any memory leak
>> in 2.4.69? Many thanks.
>
>> Cheers,
>
>> Weijian
>

Re: 2.4.69 memory leak?

by Janne Jalkanen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It is very likely that these are due to the known WikiSession vs.  
EventManager memory leak which was removed in later 2.4 series  
(2.4.97, IIRC).

I would highly recommend that you upgrade to the latest stable  
release (2.6.3 at the writing of this), or at least to 2.4.104.
We no longer support 2.4 at all...

/Janne

On Jul 7, 2008, at 17:30 , Weijian Fang wrote:

> Thanks! Florian.
>
> I have done some more investigation. I found m_delegates of
> com.ecyrd.jspwiki.event.WikiEventManager, which is a HashMap,
> increases about 7MB after every 12k requests. A quick look at the code
> fails to find a remove method on the hash map. Any insight on this?
> Many thanks!
>
> BTW, my jspwiki 2.4.69 is installed with a customised authenticator.
> Will it somehow affect the behavior of WikiEventManager? What is
> WikiEventManager used for?
>
> Cheers,
>
> Weijian
>
>
> 2008/7/4 Florian Holeczek <florian@...>:
>> Hi Weijian,
>>
>> Why don't you try an update to at least the latest version of the 2.4
>> line? As far as I know the API has already been stable between minor
>> releases, too, in 2.4.
>>
>> Have a look at the 2.4 ChangeLog at [1]... Quite a long fix list from
>> .69 to .104, isn't it? ;-)
>> Especially this one fixed in 2.4.84 might be interesting for you:
>> * Fixed a memory leak in JSPWikiMarkupTranslator, found by Aron  
>> Gombas.
>>
>> Regards,
>>  Florian
>>
>> [1] http://www.ecyrd.com/~jalkanen/JSPWiki/2.4.104/ChangeLog
>>
>>
>> Ursprüngliche Nachricht vom 04.07.2008 um 15:34:
>>> Hi,
>>
>>> I am running an old jspwiki 2.4.69 as part of my web application. It
>>> is suspected there is some memory leak, about 3KB per request. I am
>>> still diagnosing whether the memory leak happens in the jspwiki part
>>> or the non-jspwiki part. By the way, are you aware of any memory  
>>> leak
>>> in 2.4.69? Many thanks.
>>
>>> Cheers,
>>
>>> Weijian
>>

LightInTheBox - Buy quality products at wholesale price