Memory Suckers
My box (a VPS used for webhosting, and a little CounterStrike on the side) started to CRAWL a lot sooner than I'd have expected. (4 players and lag was starting to drive me nuts.)I'm finding that there's lots of things that use a lot more memory than I'd like. (I'm on a Virtuozzo VPS: 128 MB RAM guaranteed, burstable to the server's 4 GB.)
If you sort top by memory usage, you see CS on the top, but then some weird stuff. spamd (Spam Assassin) has 5 processes going. Each has 14-15 "RSS" memory it's using. 3 httpd sessions -- 11, 11, and 9.9 MB each. Then 14 mysqld's, but using like "6228" (6K of memory?).
We're a pretty slow site. I like to keep Apache with a few threads, but is it possible to set some of them to 'turn over' more quickly, so they don't take up so much RAM? Why do I need like 64 MB RAM for SpamAssassin? Or is it caching something here which'll be dumped if the RAM's needed?
MySQL is really light on resources (?) it seems, but I host only a few sites. (Although admittedly, a lot of our page hits result in big database queries.) But is 14 instances pushing the bounds of what's reasonable?