I should be more specific. My rack space ubuntu 10.4 server is 2GB and has been running 450 days. It recently ran about 9 months without a reboot and rarely db:sessions:clear.
The app is a sports app for basketball orgs and the like to manage their comps. I have about 24 sports organizations who use it heavily to manage their entire competitions plus 80,000 public views a month, mostly to get league results and ladders. Currently Rails 3.2.3, Ruby 1.9.3, Apache 2, Passenger 3.0.11, Postgres 9.0.3. App size 300MB.
Traffic is rising but its not huge. Some processes such as drawing games and booking courts can take a few seconds to return but theses are fairly infrequent.
Apache config
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 0
KeepAlives off
PassengerMaxPoolSize 4
PassengerMaxInstancesPerApp 0
Must be used with RailsBaseURI in Vhost
RailsAutoDetect off
LoadModule passenger_module /home/mark/.rvm/gems/ruby-1.9.3-p125/gems/passenger$
PassengerRoot /home/mark/.rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11
PassengerRuby /home/mark/.rvm/wrappers/ruby-1.9.3-p125/ruby
I use external email at Rackspace.
top reports soon after reboot
Mem: 2051088k total, 453452k used, 1597636k free, 11312k buffers
Swap: 4194300k total, 0k used, 4194300k free, 127848k cached
This rises slowly to about 500,000 free after 12 hours or so.
I'm building a new server image with latest Ruby Rails, etc to see if the problem continues.
It's at sportdata.com.au
Last edited by markhorrocks (2012-10-29 06:43:03)