LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-07-2009, 04:31 AM   #1
yilmaz
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
100% cpu usage by apache user


hello,

my server keeps getting clogged and i have no idea what i can do about it.

top says that the apache user is using 100% cpu with the "std" command.

ps -eo pcpu,pid,user,args | sort -r -k1 | head -10

Code:
%CPU PID USER COMMAND
99.4 28504 apache ./std 68.146.134.210 80
what could this be? looks like a hack to me, since the ip address is not ours. how can i resolve this in an easy way?

thanks
 
Old 08-07-2009, 04:45 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Have you searched your question?
http://forums.fedoraforum.org/archiv...p/t-96517.html
http://www.linuxquestions.org/questi...u-load-574826/
 
Old 08-07-2009, 04:51 AM   #3
yilmaz
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
yes i did, but it all came back to httpd settings and i don't think that this is the same thing, right?
 
Old 08-07-2009, 06:13 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What have you done to verify that the suggested solutions are not appropriate to your situation?
 
Old 08-07-2009, 07:37 AM   #5
yilmaz
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
i don't think it's Apache itself, but the user "apache" is being malused.

do you know what this means?
Code:
%CPU   PID    USER     COMMAND
99.4   28504  apache   ./std 68.146.134.210 80
 
Old 11-12-2009, 04:33 PM   #6
Marbug
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
I had the same problem today

I'm running Gentoo on my server and someone tried this too
I'm still looking for a solution, but I think it will go in the way to format and reainstall everything

facts are:

I lost my internet conenction and found out that the problem was on my server
First this I did was checking htop for any weard stuff, and I found the same thing you did:
(I did want to past an image but the forum won't allow me :P)
there was also an ssh with pid 4897 which was running on port 443, and what stopped apache from restarting

Code:
#
# ps aux | grep 4897
#
root      4897  0.0  0.0   4416   928 ?        Ss   Nov07   0:00 /usr/sbin/sshd
#
root     22940  0.0  0.0   1768   488 pts/1    R+   20:18   0:00 grep --colour=auto 4897
Code:
#
# /etc/init.d/apache2 start
#
 * Starting apache2 ...
#
(98)Address already in use: make_sock: could not bind to address [::]:443
#
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
#
no listening sockets available, shutting down
#
Unable to open logs
Code:
#
# netstat -apn | grep 443
#
tcp        0      0 127.0.0.1:81            127.0.0.1:54430         TIME_WAIT  -                   
#
tcp        0      0 127.0.0.1:81            127.0.0.1:54436         TIME_WAIT  -                   
#
tcp        0      0 127.0.0.1:81            127.0.0.1:54432         TIME_WAIT  -                   
#
tcp        0      0 127.0.0.1:81            127.0.0.1:54438         TIME_WAIT  -                   
#
tcp        0      0 127.0.0.1:81            127.0.0.1:54434         TIME_WAIT  -                   
#
tcp6       0      0 :::443                  :::*                    LISTEN     4897/sshd
similar problems:
http://www.webhostingtalk.com/showthread.php?t=633194
http://www.howtoforge.com/forums/arc...p/t-35173.html
http://search.code-head.com/F-100-cp...e-user-2051509

Last edited by Marbug; 11-12-2009 at 04:36 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FF 2.0 100% CPU Usage cexshun Slackware 12 04-05-2007 01:11 AM
CPU Usage goes to 100% when pthread_cond_wait is being used zen_buddha Linux - Software 4 10-19-2005 04:28 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
CPU usage 100% ecsfan Red Hat 17 11-19-2003 03:06 PM
100 % CPU usage ???? rolandi Linux - Newbie 1 10-07-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration