Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10513 apache 16 0 65072 24m 5852 S 48.8 0.8 0:07.84 httpd
10506 apache 15 0 65352 24m 5284 S 44.5 0.8 0:07.88 httpd
10518 apache 15 0 65072 24m 5280 S 26.0 0.8 0:03.84 httpd
10511 apache 15 0 67392 27m 5892 S 15.2 0.9 0:08.85 httpd
10510 apache 16 0 71300 30m 5280 R 12.5 1.0 0:04.77 httpd
10232 mysql 15 0 844m 257m 5644 S 4.3 8.6 0:56.30 mysqld
10512 apache 16 0 70308 31m 7212 R 3.6 1.0 0:05.83 httpd
10509 apache 15 0 66376 25m 5280 S 0.7 0.9 0:07.43 httpd
1 root 15 0 2160 652 564 S 0.0 0.0 0:00.54 init
after some simple troubleshooting steps I found that after removing this file " /etc/php.d/dom.ini " and restarting httpd it runs better but my site goes down
I can't perform more advanced troubleshooting so please guide me .
Depends on how much your memory you have in server
then you can try optimize apache
with how many "worker threads" are allowed to run httpd service so you can spread the workload on many instances of httpd (I see you have only 7 listed in your top output)
which on my server is around 20 (with 4GB RAM).
If you have a "heavy" application working on your server (many connections, maybe PHP/MySQL CMS systems (joomla) then it's a hard nut to "crack" to get optimized.
It also depends how many CPU cores you have available (servers often have Xeon CPU's with 4 cores or more and 8 GB RAM and more)
Hello lithos
Thanks for your reply , actually there is no high traffic hitting my server , and there is only one website "cms" and it's eating cpu mooooooore than expected ,I think there is a serious problem whatever I optimized .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.