Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6

    Exclamation 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

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,497
    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.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6
    Quote Originally Posted by elija View Post
    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.
    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

Posting Permissions

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