Cherrypy 3.1.1 / Apache 2 / Ubuntu 8.10 bad memory leak

83 views
Skip to first unread message

A Lynch

unread,
Aug 6, 2009, 1:14:20 PM8/6/09
to cherrypy-users
I'm getting a 20MB memory leak when I refresh my browser (FF, IE,
Chrome) against a cherrypy service running behind apache:

SetEnv proxy-nokeepalive 1
ProxyPass http://localhost:8080/services
ProxyPassReverse http://localhost:8080/services

I don't get the memory leak when running locally on my dev machine
(without apache).

Is there anything obvious to look for? I tried removing the proxy-
nokeepalive but it made no difference

thanks

A Lynch

unread,
Aug 6, 2009, 1:33:42 PM8/6/09
to cherrypy-users
Sorry to reply to myself but I just discovered the same is happening
on the server even with no apache involved... any tips on how to debug
memory leaks in cherrypy?

Lakin Wecker

unread,
Aug 6, 2009, 1:40:24 PM8/6/09
to cherryp...@googlegroups.com

A Lynch

unread,
Aug 6, 2009, 2:47:04 PM8/6/09
to cherrypy-users
OK sorry about the noise, the leak was in python.shelve (shelf.close()
doesn't seem to be freeing the memory)

Any general tips on how to go about solving memory leaks in cherrypy
threads still appreciated ;-)

A Lynch

unread,
Aug 6, 2009, 2:48:35 PM8/6/09
to cherrypy-users
thanks, I'll take a look at that, I guess it has to be a separate
cherrypy instance?

On Aug 6, 6:40 pm, Lakin Wecker <lakin.wec...@gmail.com> wrote:
> Dowser -http://www.aminus.net/wiki/Dowser
>
> Lakin

Lakin Wecker

unread,
Aug 6, 2009, 3:01:02 PM8/6/09
to cherryp...@googlegroups.com
Nope, as far as I know you mount is along side your normal app.

Lakin
Reply all
Reply to author
Forward
0 new messages