Find the answer to your Linux question:
Results 1 to 3 of 3
Hello Linuxforums, I have got a Problem. My Apache2 is taking 100% of my CPU without any users. There are two processes (PIDs) which are taking 2 x 50% CPU ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2014
    Posts
    1

    Angry Apache2 suspicous process, can't kill and taking 100% CPU


    Hello Linuxforums,

    I have got a Problem. My Apache2 is taking 100% of my CPU without any users. There are two processes (PIDs) which are taking 2 x 50% CPU constantly. I tried to kill them but with no success, they are back in a few seconds. It really slows down my Website to 10-20 seconds load time. I can make a
    Code:
    strace -p
    of that two Processes if needed, also any help would be perfect. Thank You.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    It is possible that you have become pwnd by malware. Do this:

    1. Shut down apache (and tomcat if running).
    2. Remove them from the system using the package manager.
    3. Reboot to a Live CD/DVD drive.
    4. Scan the system disc for malware and viruses - especially your web pages.

    My guess is that your web pages have become corrupted by malware. This is not uncommon these days. When you go to reinstall your web server, make sure you have cleaned up your data, as well as locked your system down from changes much more securely. SELinux extensions may help with this.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    929
    I would try stopping and restarting apache2 to see if that kills the mystrey process. Then I would open a terminal and run htop (might have to install it) and set the htop option to display threads. That will help seeing what apache and apache related processes are running. It also show the command line so might help in seeing what file the process is running.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •