Issue #1395 has been updated by cricalix.

A data point that may help track down where the issue lies.

We run puppetmaster in a VMware server 32-bit CentOS 5 VM, with 384 MB of 
memory allocated - tiny, but perfectly functional.

We split puppetmaster into two (I'm the D. Hill referenced in the ticket 
description) - one handling file serving, the other handling manifest serving.  
The file serving puppetmaster holds steady at 54M VIRT, 39M RES.  The manifest 
serving puppetmaster hold steady at 74M VIRT, 55M RES -until- storeconfigs is 
enabled, with a backing server of PostgreSQL 8.1.11 (provided in the base 
CentOS 5 installation).

Once storeconfigs is enabled, the memory usage starts climbing, almost as if 
there's a leak.  Once the VM starts swapping, we have no choice but to stop 
puppetmaster, wait a few minutes for the load to come back to a sensible level, 
and start puppetmaster again.  Rinse, repeat.

I've checked file handles with lsof, and the number seems to hold steady around 
50 - 60 files, whether the memory usage is 50 MB or 350 MB.
----------------------------------------
Bug #1395: puppet memory usage
http://reductivelabs.com/redmine/issues/show/1395

Author: immerda
Status: Accepted
Priority: Normal
Assigned to: andrew
Category: 
Target version: 
Keywords: 
Complexity: Unknown
Patch: None
Affected version: 0.24.4


In a recent discussion about using puppetd with xinetd ("main 
thread":http://groups.google.com/group/puppet-users/browse_thread/thread/50c94008469fc395/11687cd0a633f8f4
 ) it came out that there is some investigation needed on puppetd's memory 
usage.

Different people noticed that running puppetd is using a lot of footprint 
(links follow), while other noticed that it uses nearly none (links follow)

Notices about high memory usage:

VIRT/RES
"141m/61m":http://groups.google.com/group/puppet-users/msg/75a8bb3b6652bae6
"127m/82m":http://groups.google.com/group/puppet-users/msg/a4a43d3edd585c03 64 
bit
"166m/83m":http://groups.google.com/group/puppet-users/msg/1825ed57ff84287f
"183m/96m":http://groups.google.com/group/puppet-users/msg/ecf2cd36b6e1e3a6 
version 0.24.4, 64 bit

Notices about low memory usage:

"nothing 
specific":http://groups.google.com/group/puppet-users/msg/aac9fade1b906bd9 
version 0.24.4
"57m/46m":http://groups.google.com/group/puppet-users/msg/680b2b2760aa8890 
version 0.23.1

Personally I can add another memory usage on a 32bit machine, which is rather 
low: 85m virt and 69m res, running 0.24.4

Luke then 
"noticed":http://groups.google.com/group/puppet-users/msg/573a76e32fba3eb0 that 
we should investigate on memory usage in the near future.

Besides the memory consumption of puppetd, also the memory consumption of 
puppetmaster was discussed. There Duncan Hill noticed that splitting the 
fileserver off the the main puppetmaster "improved the situation 
heavily":http://groups.google.com/group/puppet-users/msg/a7083b931b5c4cda , 
however he 
"noticed":http://groups.google.com/group/puppet-users/msg/f68347fdb69b8496 that 
the manifest puppetmaster still consumes a lot of memory.

There have been also "other reports about memory usage trashing the master and 
the 
client":http://groups.google.com/group/puppet-users/browse_thread/thread/26aa8025de704cc4/1c9608f58360cdbb,
 however this might not be related.

Quick Summary:

We have seen different environments reporting a lot of memory usage. Most of 
them seem to be 64bit machines using 0.24.4. One report about low memory usage 
was a 0.23.1 version. 

Personal additional assumption: And for a first glance it looks like that 64bit 
machines double the memory consumption. (Take care of this assumption)


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to