in reply to threads hogging memory
Try modifying the line in your while loop to read
threads->create( 'new_request', $client )->detach();
It won't fix all the problems, but it does reduce the memory consuption of your proxy substantially. You will still see long term memory growth, but the rate of growth is less than 1% of the unmodified code (based on very unscientific and insubstantial tests!).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: threads hogging memory
by saskaqueer (Friar) on May 19, 2004 at 05:27 UTC | |
by BrowserUk (Patriarch) on May 19, 2004 at 05:33 UTC |