• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

each httpd using 178MB of RES RAM!

tkalfaoglu

Silver Pleskian
Hi there.. I am not sure how to trim the httpd bloat -- the top processes, sorted by memory usage on my server are:

10633 apache 15 0 557m 173m 6472 S 0.3 4.4 0:09.48 httpd
16864 apache 15 0 545m 149m 4704 S 0.0 3.8 0:00.80 httpd
3151 root 15 0 286m 132m 1644 S 0.0 3.3 0:14.78 clamd
14102 apache 15 0 494m 110m 5336 S 0.0 2.8 0:02.20 httpd
16009 apache 16 0 488m 109m 5260 S 10.6 2.8 0:02.26 httpd
16817 apache 15 0 494m 108m 4572 S 0.0 2.7 0:00.77 httpd
16036 apache 15 0 474m 94m 4920 S 0.0 2.4 0:00.88 httpd
16513 apache 15 0 470m 92m 4852 S 0.0 2.3 0:00.81 httpd
7833 tomcat 20 0 1459m 77m 10m S 0.0 2.0 0:04.28 java
4037 mysql 16 0 414m 75m 5492 S 0.0 1.9 0:38.74 mysqld
10359 root 18 0 392m 74m 9136 S 0.3 1.9 0:00.85 httpd
16006 apache 15 0 398m 74m 4260 S 0.0 1.9 0:00.10 httpd
16769 apache 15 0 393m 70m 3632 S 0.0 1.8 0:00.01 httpd
16814 apache 15 0 393m 70m 3516 S 0.0 1.8 0:00.02 httpd
6586 popuser 18 0 169m 70m 3048 R 8.7 1.8 0:22.22 spamd
16511 apache 16 0 393m 70m 3632 S 1.0 1.8 0:00.04 httpd
6590 popuser 16 0 169m 69m 3040 S 5.8 1.8 0:20.23 spamd
6589 popuser 17 0 168m 69m 3084 S 8.7 1.8 0:21.10 spamd

Any ideas where to begin trimming the fat??
Thanks, -turgut
 
Are you using PSA's httpd? I've found it uses many times more memory than the normal centos/rhel apache; probably from loading up every module ever written, you can disable the ones you don't need to shrink it back down.
 
There are a few things you can try - run php as a dso instead of fcgi/cgi as it uses more memory for the cgi/fcgi, dont use suphp (or any variant), disable httpd modules you dont want/need, set rLmits for memory usage, use suhosin so users cant specify high memory usage in ini_set function calls in their php scripts.

173 doesnt seem that high though in comparison, ours use anywhere from 170-400 depending on the application and how long its been running and the system runs ok. A lthough we do run things like cloudlinux that will rate limit applications so it wont take down the system.
 
Hi there.. I am not sure how to trim the httpd bloat -- the top processes, sorted by memory usage on my server are: Any ideas where to begin trimming the fat??
Thanks, -turgut

I recommend an upgrade to Plesk 11.*
They've improved the apache system resource usage, especially with Nginx as a reverse proxy.

*Highly recommended
 
If Plesk 11 is like every other upgrade they've released since 9 came out, I can't wait to try and go through that nightmare.
 
Upgrading to Plesk 11 is pretty easy. If you have shell then you just run the autoinstaller

Code:
/usr/local/psa/admin/sbin/autoinstaller

Otherwise, we are here to help incase you hit port holes :) Also be ready to get a new licence key and your DC should be easily accessible with these keys that is if you bought it from them ...
 
Back
Top