-3

Possible Duplicate:
Server refuses to use swap partition

I am using Linux with Koloxo panel for site management. My database server went down, and I think it happened because of a lack of memory. This is even though the machine has 8GB memory and there aren't many users on the system (maybe about 20 to 50 users maximum at any given time). One thing I see in process is that one apache process is consuming round about 325MB of memory.

Output of process http://apniworld.com/process.png

Is it normal for the processes to consume this much memory? If not, how can I set reduce the memory consumption per user to a normal level?

1 Answers1

4

See Server refuses to use swap partition for some details on memory usage and how you may be mis-interpreting usage.

Here's more info I grabbed from an idle test system:

#snippet from running `top`
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
19545 www-data  20   0  148m 3744  264 S    0  0.1   0:00.00 apache2
19546 www-data  20   0  148m 3696  244 S    0  0.1   0:00.00 apache2
19547 www-data  20   0  148m 3696  244 S    0  0.1   0:00.00 apache2
19548 www-data  20   0  148m 3696  244 S    0  0.1   0:00.00 apache2
19549 www-data  20   0  148m 3696  244 S    0  0.1   0:00.00 apache2
22396 www-data  20   0  148m 3660  204 S    0  0.1   0:00.00 apache2

You're notice they all show 148MB of usage much like your processes all show 325MB of memory. That's virtual memory, though. The real number to watch here is RES -- resident memory. Each process is actually using about 4MB of space. Notice that %MEM is reported as .1% on this 4GB box.

In short, things are probably fine and you need to use better tools to investigate than what that control panel is providing you with.

Jeff Ferland
  • 20,987