Results 1 to 3 of 3
Hi,
I am facing a problem with httpd. I found, several httpd are running, when I use this command ps –e. I got
5779 ? 00:00:00 httpd
25780 ? 00:00:00 ...
- 07-20-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 6
Several httpd are running
Hi,
I am facing a problem with httpd. I found, several httpd are running, when I use this command ps –e. I got
5779 ? 00:00:00 httpd
25780 ? 00:00:00 httpd
25785 ? 00:00:00 httpd
25792 ? 00:00:00 httpd
25793 ? 00:00:00 httpd
25794 ? 00:00:00 httpd
25795 ? 00:00:00 httpd
25798 ? 00:00:00 httpd
25803 ? 00:00:00 httpd
25806 ? 00:00:00 httpd
25807 ? 00:00:00 httpd
25808 ? 00:00:00 httpd
25839 ? 00:00:00 httpd
25844 ? 00:00:00 httpd
25845 ? 00:00:00 sshd
25849 ? 00:00:00 sshd
25850 pts/0 00:00:00 bash
25878 pts/0 00:00:00 su
25879 pts/0 00:00:00 bash
25900 pts/0 00:00:00 strace
25905 pts/0 00:00:00 ps
27568 ? 00:00:17 java
Above I have listed less. But, I got more than 80 httpd are running. And, then I use strace and got
strace -p 25785
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
But, when I try another as
strace -p 25806
Process 25806 attached - interrupt to quit
interrupt to quit
poll(
[{fd=20, events=POLLOUT, revents=POLLERR|POLLHUP}], 1, 120000) = 1
getsockopt(20, SOL_SOCKET, SO_ERROR, [110], [4]) = 0
close(20) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 20
fcntl64(20, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(20, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(20, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("93.186.224.238")}, 16) = -1 EINPROGRESS (Operation now in progress)
poll( <unfinished ...>
Process 25806 detached.
I am new to linux. I have fewer users to my website. But, the bandwidth usage is very high, I think, it’s due to several httpd. I am using apache-tomcat-5.5.27 and red hat enterprise linux 5 ES. I don’t know how to minimize no. of httpd running on my server.
Thank you
- 07-20-2009 #2
It is normal to get multiple apache (httpd) processes running. You will get one for each concurrent request.
You can set the limits by editing the appropriate information in /etc/httpd/conf/httpd.conf and restarting the service.
- 07-20-2009 #3Just Joined!
- Join Date
- Jul 2009
- Posts
- 6
Hi,
Thank you for your reply. The bandwidth usage of the website is 1367396 GB. I know it’s very high. I have a log, which shows, only 38 visits. But, how this visits makes higher bandwidth usage. I didn’t meet this as before. As I saw in the services, I blame on httpd daemons.
Please, help me to detect, why this higher bandwidth is occurred and why it’s continuing?
Thank you


Reply With Quote

