On 14/11/08 21:51, Loobster wrote: > I installed the blastware packages and then used gary's CSWpuppet > (0.24.4) package from http://www.garylaw.net/packages/ > > I'm seeing puppetmasterd using a lot of memory (850MB+). > > It seems that ruby might have a memory leak from the forum posts I'm > reading. > > Is there a known resolution to this or should a self compile specific > versions on my own?
I never could reproduce any memory leak (ruby or puppet) myself (linux, debian), but I practiced a little bit on how to find such issues, so I'm offering there a few ideas to explore: Since you are on a DTrace enabled platform you can build a ruby interpreter containing DTrace probes[1] to check for memory allocations/deallocations (see the DTrace Toolkit[2], they have a script that almost does that). My own DTrace memory allocation checks were really not satisfying under Mac OSX (ruby crashes), but I think on Solaris you might have better luck than me. Or you can use gdb live inspection as described in: http://eigenclass.org/hiki.rb?ruby+live+process+introspection (This works really fine) Or you can also use a specially patched ruby called bleak house: http://blog.evanweaver.com/files/doc/fauna/bleak_house/files/README.html [1]: http://www.joyeur.com/2007/05/07/dtrace-for-ruby-is-available [2]: http://opensolaris.org/os/community/dtrace/dtracetoolkit/ -- Brice Figureau Days of Wonder http://www.daysofwonder.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---