On Aug 10, 7:10 am, lardawge <[email protected]> wrote:
> I for one would love to track down the memory leak. On my server,
> Ubuntu 8.10, it leaks like crazy. It starts at 17m and balloons to
> 160m in less than three days. Pretty big problem. I have resorted to
> restarting via cron every so often vs installing monit to manage it.
> Do you have any ideas as to where the leak is? I would be happy to
> spend some time looking at it.

>From the day of testing I did, the leak seems to be caused by the
accumulation of a number of smaller leaks that manifest when more than
one watch is active. This makes isolating leaky code annoyingly
difficult, especially since the leak can take up to an hour to even
show up.

A good place to start is with this diff:
http://github.com/mojombo/god/commit/ad8fb0cf4efc6de8cfc925e5bb32b32c768fe791
which disables the handling of conditions and simply reschedules each
event. I've been running tests with the test/configs/stress/stress.god
config which starts 8 watches that all schedule events as fast as they
can.

It would be great to have another pair of eyes on this, let me know if
you discover anything!

Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to