[okfn-help] further to load on us0

James Casbon casbon at gmail.com
Wed Oct 7 16:27:04 BST 2009


2009/10/7 Martin Keegan <martin at no.ucant.org>:

> There is some memory leak (or equivalent behaviour) in something loaded in
> the Apache address space, e.g., some data being accumulated in some python
> code. I set a limit on the number of requests any worker process may
> handle. (This necessitated rebalancing the load by changing the maximum
> thread count and the total number of threads and processes). Once the
> limit is reached, the process terminates, freeing the memory, and gets
> replaced with a fresh instance.
>
> There is still more work to do, but at least the responsiveness of the
> machine is back to tolerable.

Aha, that sounds a good approach.

This could be relevant: http://amix.dk/blog/viewEntry/19420 I wonder
if there is a way to prod the GC every so often with WSGI?

Still nothing beats terminating the process.



More information about the okfn-help mailing list