On 16/11/09 20:55, Douglas Garstang wrote: > > On Sun, Nov 15, 2009 at 2:10 PM, Brice Figureau > <brice-pup...@daysofwonder.com> wrote: >> >> Hi Douglas, >> >> First, can you bottom post? >> It makes way easier to read (long) threads. >> >> On 15/11/09 22:50, Douglas Garstang wrote: >>> I doubt that is my problem. I'm running this in a test environment, >>> and I'm doing a full 'service puppet restart' every single time. I've >>> seen this memory problem occur on the very first run of puppet after >>> the restart. >>> >>> I read about the ruby memory leak, but I don't see where I can get a >>> ruby 1.8.7 RPM from. :( >> >> If you're just on a test system and you want to rule out ruby as the >> culprit of the memory issue, I think you can just either compile your >> own 1.8.7 locally (ie you don't need to install ruby in your system >> paths), or even use the ruby enterprise edition installer which setups >> most of the thing for you easily. >> Once done, you'll know if the problem is puppet or ruby itself. >> And if it turns out to be puppet, please file a bug report with the more >> information you can, including manifest, versions... >> > > So, I downloaded, compiled, and installed ruby 1.9.
Note I suggested 1.8.7. I don't have any experience with ruby 1.9. > --- SAME PROBLEM --- > > Ruby/Puppet uses up approx 1.4Gb of memory before I run out. It would be interesting to know what are doing your manifests, and more specifically how many resources, and how many recursive file resources. Warning what follows is not for the faint-hearted: Also, it would be interesting to introspect the ruby runtime (sorry 1.8.x only), like what is explained here: http://eigenclass.org/hiki/ruby+live+process+introspection Then after each run you can try to print the objectspace. Another possibility is to use ruby-prof in memory allocation mode: http://ruby-prof.rubyforge.org/ and http://rubyforge.org/tracker/index.php?func=detail&aid=17676&group_id=1814&atid=7062 -- Brice Figureau My Blog: http://www.masterzen.fr/ --~--~---------~--~----~------------~-------~--~----~ 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 puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---