Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I am having problem with my LAMP server always over loaded by Apache processes. It's just hosting a couple of wordpress sites. My netstat output shows many self connections ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    AMT
    AMT is offline
    Just Joined!
    Join Date
    Nov 2007
    Location
    Singapore
    Posts
    3

    Apache High Load


    Hi,

    I am having problem with my LAMP server always over loaded by Apache processes. It's just hosting a couple of wordpress sites.

    My netstat output shows many self connections whenever there is high load. Is this normal? Any advice?

    1.1.1.1 = server ip

    Code:
    tcp        0      0 1.1.1.1:41272           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41236           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41284           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41286           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41265           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41175           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41292           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41239           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41264           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41230           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41167           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41158           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41157           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41160           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41161           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41241           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41285           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41300           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41165           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41163           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41291           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41297           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41162           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41296           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41233           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41232           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41231           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41235           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41166           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41271           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41288           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41247           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41227           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41279           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41240           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41289           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41164           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41242           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41258           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41287           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41283           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41266           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41155           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41294           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41256           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41156           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41282           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41295           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41170           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41169           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41293           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41273           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41281           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41234           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41298           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41277           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41237           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41255           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41238           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41274           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41280           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41299           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41260           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41159           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41290           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41229           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41248           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41253           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 1.1.1.1:41278           1.1.1.1:80              ESTABLISHED
    tcp        0      0 1.1.1.1:41254           1.1.1.1:80              FIN_WAIT2
    tcp        0      0 :::80                       :::*                        LISTEN
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41160    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41281    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41165    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41232    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41291    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41175    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41241    CLOSE_WAIT
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41274    ESTABLISHED
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41264    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41236    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41298    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41297    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41280    ESTABLISHED
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41277    ESTABLISHED
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41258    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41164    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41289    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41292    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41239    CLOSE_WAIT
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41255    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41235    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41234    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41163    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41237    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41231    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41288    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41283    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41290    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41286    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41293    ESTABLISHED
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41247    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41240    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41279    ESTABLISHED
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41256    CLOSE_WAIT
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41260    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41287    ESTABLISHED
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41266    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41238    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41282    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41166    CLOSE_WAIT
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41248    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41170    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41159    CLOSE_WAIT
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41271    ESTABLISHED
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41265    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41284    ESTABLISHED
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41300    ESTABLISHED
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41253    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41285    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41169    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41158    CLOSE_WAIT
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41278    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41229    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41157    CLOSE_WAIT
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41272    ESTABLISHED
    tcp      193      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41273    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41156    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41161    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41299    ESTABLISHED
    tcp      194      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41254    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41296    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41162    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41295    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41167    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41227    CLOSE_WAIT
    tcp      190      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41294    ESTABLISHED
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41155    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41233    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41242    CLOSE_WAIT
    tcp        1      0 ::ffff:1.1.1.1:80       ::ffff:1.1.1.1:41230    CLOSE_WAIT

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    are you experiencing performance problems?

  3. #3
    AMT
    AMT is offline
    Just Joined!
    Join Date
    Nov 2007
    Location
    Singapore
    Posts
    3
    Yes, the load always goes up very high and sometimes can't even ssh to the box..

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    I recently deployed a blog website and apache ate a lot of memory too. I recompiled it disabling some unecessary modules and it was better.

    ./configure --prefix=/usr/local/apache2 --disable-actions --disable-asis --disable-autoindex --disable-cgi --disable-cgid --disable-charset-lite --disable-imagemap --disable-userdir --enable-mods-shared="deflate ssl rewrite"

    I think there's way more things I don't need to disable. But so far this helped

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    try to use ngnix, it is fast and loghtweight web browser

  6. #6
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    you mean web server?

Posting Permissions

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