apache mpm optimization

TheMask

Verified User
Joined
Jan 20, 2011
Messages
142
apache eating high mem

some apache tuning sites says:
Child process size for serving static file is about 2-3M. For dynamic content such as PHP, it may be around 15M. The RSS column in
"ps -ylC httpd --sort:rss"


but when i am using this command i see 232mb... iam confused? is it too high?
how can i reduce it?

"ps -ylC httpd --sort:rss"
S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 101 13556 9602 0 75 0 237416 78858 semtim ? 00:00:00 httpd
S 101 13494 9602 1 75 0 237448 78856 - ? 00:00:00 httpd
S 101 13464 9602 1 76 0 237460 78858 - ? 00:00:00 httpd
S 0 9602 1 4 78 0 237504 78751 - ? 00:00:28 httpd
S 101 13519 9602 5 75 0 237644 78887 semtim ? 00:00:00 httpd
S 101 13493 9602 4 76 0 237684 78908 - ? 00:00:00 httpd
S 101 13415 9602 2 75 0 237712 78904 429493 ? 00:00:00 httpd
S 101 13474 9602 3 75 0 237748 78893 semtim ? 00:00:00 httpd
S 101 13407 9602 1 75 0 237836 78938 semtim ? 00:00:00 httpd
S 101 13002 9602 3 75 0 237892 78904 semtim ? 00:00:02 httpd
S 101 13419 9602 3 75 0 237944 78937 semtim ? 00:00:00 httpd
S 101 13205 9602 1 75 0 237964 78950 - ? 00:00:00 httpd
R 101 13416 9602 5 75 0 237984 79002 - ? 00:00:00 httpd
S 101 13421 9602 3 75 0 238024 78943 semtim ? 00:00:00 httpd
S 101 13410 9602 6 75 0 238064 78982 semtim ? 00:00:01 httpd
S 101 13411 9602 5 75 0 238092 78972 - ? 00:00:01 httpd
S 101 12605 9602 4 75 0 238096 78955 semtim ? 00:00:05 httpd
S 101 12976 9602 4 75 0 238116 78971 - ? 00:00:03 httpd
S 101 12498 9602 2 75 0 238160 78970 - ? 00:00:03 httpd
S 101 11829 9602 3 75 0 238396 79036 semtim ? 00:00:07 httpd
S 101 12317 9602 3 75 0 238624 79086 429493 ? 00:00:06 httpd
S 101 12435 9602 3 75 0 238780 79157 - ? 00:00:05 httpd
S 101 11430 9602 2 76 0 238896 79220 - ? 00:00:08 httpd
S 101 13386 9602 6 76 0 238992 79271 - ? 00:00:01 httpd
S 101 12388 9602 3 75 0 239120 79401 semtim ? 00:00:06 httpd
S 101 12990 9602 3 75 0 239524 79591 - ? 00:00:02 httpd
S 101 11398 9602 1 75 0 239660 79537 semtim ? 00:00:05 httpd
S 101 12620 9602 4 75 0 239852 79494 - ? 00:00:05 httpd
S 101 11215 9602 2 75 0 240068 79572 100891 ? 00:00:08 httpd
S 101 12449 9602 3 75 0 241856 80408 semtim ? 00:00:06 httpd
 
Last edited:
1.

RLimitMEM
RLimitCPU

2. caching frontend before apache + APC/eAccelerator

3. optimize PHP scripts.
 
virtual_host2.conf

only add

RLimitMEM 1000000 1000000
RLimitCPU 60 60

like this?
 
Back
Top