in reply to Serious memory leak when using LWP
I think you're blaming the wrong module (LWP). When I take HTML::Parse out of the game, I don't get any leakage.
OTOH, when using just HTML::Parse, I see it leaking, too.
use HTML::Parse; while(1) { parse_html(''); system "ps -p $$ -o rss,vsz"; sleep 1; }
(Not that this makes much difference from an end user perspective... but you now at least know what to file a bug report against.)
The usual workaround for long running programs with memory leaks is to fork a new worker process every n iterations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Serious memory leak when using LWP
by Anonymous Monk on Mar 08, 2012 at 04:33 UTC | |
by Anonymous Monk on Mar 08, 2012 at 15:04 UTC | |
by Anonymous Monk on Mar 09, 2012 at 02:58 UTC |