[Mono-aspnet-list] issues with intermittent apache hangups
parnham at gmail.com
Wed Apr 13 09:42:05 EDT 2011
Thanks for all your help so far.
I've applied the patch (0eff07d0fc4ef1ef3c584e71a8dd54ab708543e8) both on my
development machine (to run further mprof tests) and on our test server. The
local tests still show many thousands of cache items being generated,
although I believe at a slightly slower rate.
The test server has also been set running again for the past couple of days,
although I think the app got restarted at some point (probably killed by the
system when it started demanding too much memory). Just watching it for the
past two hours it has gone from 19.7% to 26.8% memory usage (1GB of memory
available in this old test machine), and is still creeping up. This problem
will cause us major issues in a production kiosk system, since it will reach
the point where the web app response slows to a halt and then eventually
gets killed by the os and restarted by apache.
Unless this can be resolved properly, we may have to resort to setting up a
cron job that will automatically force the web server to restart on a
regular basis, but we really do not want to have to do that!
Marek Habersack wrote:
> On Tue, 5 Apr 2011 15:24:25 -0500 (CDT)
> Dan <parnham at gmail.com> wrote:
> Hey Dan,
> The issue here was the way the in-proc session handler handled item
> timeout reset. It would first
> remove the item from the cache (it uses an internal instance of the Cache
> class) and then insert
> it back in the cache. With a big number of items, that would grow the
> timed items priority queue
> heap much more than was necessary and generate a lot of duplicate internal
> cache items. The effects
> would be different depending on the application's usage of session data.
> I've just committed a possible fix for the issue to Mono's master branch
> (I haven't committed it to
> the mono-2-10 branch since it is a potentially breaking change which needs
> to be tested in real
> life first) in commit 0eff07d0fc4ef1ef3c584e71a8dd54ab708543e8 (tests have
> been committed in
> c00c5d00fddf18969c9869492f7e1235d960076b if you're interested). The fix
> applies cleanly to the 2.10
> branch, so please apply it and test with your application to see whether
> it fixed the issue. Please
> let me know about the results, thanks :)
View this message in context: http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3447198.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list