Memory leak in Passenger ?

209 views
Skip to first unread message

Michael Wörz

unread,
Jul 24, 2015, 3:56:25 AM7/24/15
to Puppet Users
Hello,

in the past months we are observing raising memory usage on our puppet server and we have to restart it once a week when it starts swapping.

Mainly there are 5 Passenger processes that are running for days and using about 15-20% of memory each. 

System has 4 GB of memory and is serving about 1600 Clients.

-> rpm -qa | grep  passenger
ruby193-rubygem-passenger-native-libs-4.0.18-9.8.el6.x86_64
rubygem-passenger-native-libs-4.0.18-9.8.el6.x86_64
mod_passenger-4.0.18-9.8.el6.x86_64
rubygem-passenger-4.0.18-9.8.el6.x86_64
rubygem-passenger-native-4.0.18-9.8.el6.x86_64
ruby193-rubygem-passenger-native-4.0.18-9.8.el6.x86_64
ruby193-rubygem-passenger-4.0.18-9.8.el6.x86_64

-> cat /etc/redhat-release
CentOS release 6.6 (Final)

-> rpm -qa | grep  puppet
puppet-server-3.8.1-1.el6.noarch



Josh Cooper

unread,
Jul 24, 2015, 12:48:56 PM7/24/15
to puppet...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4c9264d3-eead-45fd-801e-2fea531a83a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You might take a look through the passenger issue tracker and release notes to see if there are any known memory leaks, maybe https://github.com/phusion/passenger/issues/1278?

Josh

--
Josh Cooper
Developer, Puppet Labs

PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9.
Register now to take advantage of the Early Bird discount save $249!

Ramin K

unread,
Jul 24, 2015, 1:03:16 PM7/24/15
to puppet...@googlegroups.com
There were some reports of memory growth in Puppet masters starting with
late 3.6 and definitely in 3.7. I don't recall if a ticket was ever
generated.

One workaround is a to set PassengerMaxRequests = 10000 so that your
Puppet master processes are recycled sooner. This should keep RAM usage
below 200-250MB per process.

Ramin

Michael Wörz

unread,
Jul 28, 2015, 8:25:01 AM7/28/15
to Puppet Users, michae...@gmail.com
>> set PassengerMaxRequests = 10000

thanks, this seems to help. memory usage was constant last 3 days. 
Reply all
Reply to author
Forward
0 new messages