[chef] Re: Re: Re: Re: Re: Re: chef-client memory usage


Chronological Thread 
  • From: Chris < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: chef-client memory usage
  • Date: Fri, 9 Dec 2011 08:58:07 -0800

Yep, that worked. Thanks.

Client is sitting at 138m RSS now, which is a lot better. Hopefully it will stop creeping up over time as well. 

Thanks for all the help everyone. 

On Fri, Dec 9, 2011 at 8:46 AM, Adam Jacob < "> > wrote:
Ohai::Config[:disable_plugins] = [ "password", "rackspace", "dmi", "dmi_common" ]

Instead of N calls to Ohai::Config, which is over-writing the value.

Adam
On Dec 9, 2011, at 9:45 AM, Chris wrote:

I've been working on disabling plugins, but it doesn't seem to be working. I've added these to client.rb, but when running the client with debug output they still get loaded. Does order matter?

Ohai::Config[:disabled_plugins] = ["passwd"]
Ohai::Config[:disabled_plugins] = ["rackspace"]
Ohai::Config[:disabled_plugins] = ["dmi"]
Ohai::Config[:disabled_plugins] = ["dmi_common"]
Ohai::Config[:disabled_plugins] = ["erlang"]
Ohai::Config[:disabled_plugins] = ["groovy"]
Ohai::Config[:disabled_plugins] = ["php"]
Ohai::Config[:disabled_plugins] = ["eucalyptus"]
Ohai::Config[:disabled_plugins] = ["network_listeners"]
Ohai::Config[:disabled_plugins] = ["mono"]

On Fri, Dec 9, 2011 at 8:34 AM, Daniel DeLeo < " target="_blank"> > wrote:


On Friday, December 9, 2011 at 7:46 AM, Chris wrote:

> ruby 1.8.7 (2011-02-18 patchlevel 334) -- CentOS 5.5(mostly)

Disabling unneeded ohai plugins will probably provide the biggest benefit:

http://wiki.opscode.com/display/chef/Disabling+Ohai+Plugins

You can also experiment with Ruby Enterprise Edition. The changes to memory allocation and GC tend to reduce heap fragmentation, which will in turn reduce RSS when chef-client is sleeping.

--
Dan DeLeo




--
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.




--
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.



Archive powered by MHonArc 2.6.16.

§