Matt,

The process is now stable after blocking and restarting httpd. I guess that 
temporarily solved the problem, hmmm... We need to move to PHP 5.3 :)

Thanks Matt.


--- On Wed, 3/23/11, Matt Baluyos <[email protected]> wrote:

From: Matt Baluyos <[email protected]>
Subject: Re: [klug] 100% CPU/Memory Usage for HTTPD
To: "Kagay-Anon Linux Users' Group (KLUG) Mailing List" 
<[email protected]>
Date: Wednesday, March 23, 2011, 10:48 PM

Since you don't have physical access to the server and we're testing
if the high CPU/memory usage is coming from outside requests, try
temporarily blocking access to the HTTP port:

1. Block port 80 access:
# iptables -A INPUT -p tcp --dport 80 -j DROP

2.Restart your Apache server. Monitor again for the high CPU/memory issue.

3. Flush your firewall rules (to restore port 80 access)
# iptables -F

Note: This assumes you don't have any existing firewall rules

On Thu, Mar 24, 2011 at 4:36 PM, gre taguran <[email protected]> wrote:
>
> Haven't tried it... I don't have the physical access of the server, so what I 
> can do is just on the linux side.
>
> --- On Wed, 3/23/11, Jon Doblados <[email protected]> wrote:
>
> From: Jon Doblados <[email protected]>
> Subject: Re: [klug] 100% CPU/Memory Usage for HTTPD
> To: "Kagay-Anon Linux Users' Group (KLUG) Mailing List" 
> <[email protected]>
> Date: Wednesday, March 23, 2011, 10:21 PM
>
>
> On Thu, Mar 24, 2011 at 1:13 PM, gre taguran <[email protected]> wrote:
>
> Hi Matt,
>
> Here's the result... There's a lot of record... :)
>
> root      4332  0.2  0.1 362060 33000 ?        Ss   12:47   0:03 
> /usr/sbin/httpd
> webuser   4340  0.8  1.2 609084 215944 ?       S    12:47   0:12  \_ 
> /usr/sbin/httpd
> webuser   4357  1.1  1.2 606996 213896 ?       S    12:47   0:18  \_ 
> /usr/sbin/httpd
> webuser   4465  1.2  1.2 603080 213268 ?       S    12:48   0:18  \_ 
> /usr/sbin/httpd
> webuser   4466  2.2  1.7 707184 290944 ?       S    12:48   0:33  \_ 
> /usr/sbin/httpd
> webuser   4484  1.6  1.2 608032 214332 ?       S    12:48   0:24  \_ 
> /usr/sbin/httpd
>
> <snip>
> This is because of your httpd.conf setting which creates 50 apache instances 
> to handle connections. It should be fine. If you detach the network cable on 
> boot, do you get the same CPU utilization?


--
Matt Arnilo S. Baluyos
http://www.onxiam.com/people/mbaluyos/

v3sw3CH+Rhw2ln5pr6OPck5ma7u5Lw5Xm+7l7CRi2e6t5Xb7Oen4g5aIs4r3p6 hackerkey.com
    gpg --keyserver pgp.mit.edu --recv-keys 171CD03E
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://lists.linux.org.ph/mailman/listinfo/klug)
Searchable Archives: http://archives.free.net.ph


      
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://lists.linux.org.ph/mailman/listinfo/klug)
Searchable Archives: http://archives.free.net.ph

Reply via email to