Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#304756 - 04/12/2007 10:38 Running out of RAM on Linux box?
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I've got my email and web server hosted on a VPS. This VPS doesn't really have enough memory assigned to it.

Every now and then, my spam filter and AV fall over, because they run out of RAM. I've attempted to bounce them once a day (via /etc/init.d/foo restart in cron.daily), but that doesn't seem to be working reliably.

When I look at top, mysql is using 118M resident memory. When I bounce it, it goes down to 24M.

So, my question: can I tune mysql to reduce the amount of RAM it wants to use? Or can I get Linux to be more aggressive about kicking it out to swap?

For the geeks out there, I'm on an OpenVZ (Virtuozzo) VPS, and my /proc/user_beancounters shows me going over my kmemsize and privvmpages limits fairly regularly.

I don't have time right now to get the VPS upgraded.
_________________________
-- roger

Top
#304757 - 04/12/2007 13:07 Re: Running out of RAM on Linux box? [Re: Roger]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I'd say to try to tweak some of MySQL's tunables. I'm not really familiar with them, but it's probably the best place to modify how it deals with memory. Looks like key_buffer_size and table_cache are appropriate first steps.
_________________________
Bitt Faulk

Top