Leaking HTTP requests (was: RE: [Zope] Leaking Acquisition.Im
plic itAcquirerWrapper)
Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Thu May 13 16:48:54 EDT 2004
Unfortunately, I can't easily get rid of Localizer.
I use TranslationService + Localizer on the entire site for all of my skins
and so on ...
I've managed to leak a few HTTP Requests on my test box, but I still have no
idea how/why.
I simply hit the homepage of my site repeatedly using JMeter, and got a few
new references that are sticking around. They don't all stick around
though, and it doesn't seem to necessarily be only the first time I hit a
page that the refcount goes up, and I can't detect any pattern to it ...
When I test manually, some lost references appear, and then they stop
appearing, and then sometime later a couple more appear, and so on. My
events log has nothing in it, neither does the error_log.
I have in the past seen a few entries in my events log file such as:
"Localizer The thread number 5126 don't has a request object associated."
But again, there's very few of those compared to the amount of leakage
occuring.
Alright, I guess I'll go look in the Localizer code see if I notice anything
and otherwise keep at it ... I REALLY hate having to go the "restart every
night" route ...
J.F.
-----Original Message-----
From: Stefan H. Holek [mailto:stefan at epy.co.at]
Sent: May 13, 2004 3:37 PM
To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Cc: zope at zope.org
Subject: Re: Leaking HTTP requests (was: RE: [Zope] Leaking
Acquisition.Implic itAcquirerWrapper)
This confirms my suspicion somewhat that the global request patch is to
blame. IIRC Localizer uses this, doesn't it?
Do you have the possibility to test without the (monkey?) patch, or
without Localizer entirely?
Huima has just recently reported pretty much the same bug and he is
using PTS, which again utilizes the global request patch (I think).
Stefan
On Donnerstag, Mai 13, 2004, at 21:31 Europe/Vienna,
Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote:
> Oh, wait a minute ...
>
> Looks like I'm actually leaking HTTP requests!
>
> Class May 12, 2004 5:08 pm May 13, 2004 3:26 pm Delta
> Acquisition.ImplicitAcquirerWrapper 7190 138920 +131730
> ZPublisher.HTTPRequest.HTTPRequest 352 18123 +17771
> ZPublisher.BaseRequest.RequestContainer 329 18095 +17766
> ZServer.HTTPResponse.ZServerHTTPResponse 338 18103 +17765
>
> I saw some traffic on this same topic about archetypes & plone ...
>
> Hopefully I'll be able to track this down more easily than wrapper
> problems.
>
> Still any input will be appreciated, tracking down memory leaks always
> seems
> like black magic to me :P
>
> Thanks,
> J.F.
>
>
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
More information about the Zope
mailing list