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
webuser   4511  0.8  1.2 605948 212912 ?       S    12:48   0:12  \_ 
/usr/sbin/httpd
webuser   4512  2.8  1.2 606436 216392 ?       S    12:48   0:41  \_ 
/usr/sbin/httpd
webuser   4514  0.5  1.2 605808 213052 ?       S    12:48   0:07  \_ 
/usr/sbin/httpd
webuser   4625  2.8  1.3 619344 226044 ?       S    12:50   0:37  \_ 
/usr/sbin/httpd
webuser   4704  0.5  1.2 605720 212076 ?       S    12:51   0:06  \_ 
/usr/sbin/httpd
webuser   4729  2.8  1.2 610108 217480 ?       S    12:52   0:35  \_ 
/usr/sbin/httpd
webuser   4753  1.0  1.2 604360 213848 ?       S    12:52   0:13  \_ 
/usr/sbin/httpd
webuser   4771  3.2  2.4 804936 407680 ?       S    12:53   0:38  \_ 
/usr/sbin/httpd
webuser   4788  1.0  1.2 605960 212884 ?       S    12:53   0:12  \_ 
/usr/sbin/httpd
webuser   4852  1.2  1.2 606532 213188 ?       S    12:54   0:13  \_ 
/usr/sbin/httpd
webuser   4866  2.3  1.3 617308 222428 ?       S    12:54   0:25  \_ 
/usr/sbin/httpd
webuser   4921  1.2  1.2 608060 215604 ?       S    12:55   0:12  \_ 
/usr/sbin/httpd
webuser   4941  1.9  1.2 610628 217556 ?       S    12:56   0:19  \_ 
/usr/sbin/httpd
webuser   4954  5.0  1.7 700432 287608 ?       S    12:56   0:49  \_ 
/usr/sbin/httpd
webuser   5003  2.0  1.2 609092 216156 ?       S    12:57   0:19  \_ 
/usr/sbin/httpd
webuser   5036  1.3  1.2 605948 212944 ?       S    12:57   0:12  \_ 
/usr/sbin/httpd
webuser   5044  2.5  1.3 615872 224064 ?       S    12:58   0:22  \_ 
/usr/sbin/httpd
webuser   5068  4.2  1.3 615964 220124 ?       S    12:58   0:36  \_ 
/usr/sbin/httpd
webuser   5099  1.7  1.2 568796 213468 ?       S    12:59   0:13  \_ 
/usr/sbin/httpd
webuser   5168  5.6  1.7 708716 294096 ?       S    13:00   0:43  \_ 
/usr/sbin/httpd
webuser   5246  1.0  1.2 607856 214552 ?       S    13:01   0:07  \_ 
/usr/sbin/httpd
webuser   5277  2.1  1.2 608888 215312 ?       S    13:02   0:13  \_ 
/usr/sbin/httpd
webuser   5321  6.3  1.4 641504 246196 ?       S    13:03   0:37  \_ 
/usr/sbin/httpd
webuser   5353  2.4  1.2 605984 213340 ?       S    13:03   0:14  \_ 
/usr/sbin/httpd
webuser   5400  2.7  1.2 606144 214860 ?       S    13:04   0:13  \_ 
/usr/sbin/httpd
webuser   5441  3.1  1.2 608472 214532 ?       S    13:05   0:13  \_ 
/usr/sbin/httpd
webuser   5445  6.4  2.0 739380 343756 ?       S    13:06   0:27  \_ 
/usr/sbin/httpd
webuser   5523  8.6  1.2 611112 217044 ?       S    13:07   0:29  \_ 
/usr/sbin/httpd
webuser   5548 13.7  1.2 608692 217396 ?       S    13:07   0:42  \_ 
/usr/sbin/httpd
webuser   5579 13.1  1.2 609044 214920 ?       S    13:08   0:35  \_ 
/usr/sbin/httpd
webuser   5630 34.9  1.9 750588 334240 ?       R    13:09   1:17  \_ 
/usr/sbin/httpd
webuser   5636  3.2  1.2 606080 212628 ?       S    13:09   0:06  \_ 
/usr/sbin/httpd
webuser   5705 12.6  1.2 605864 213256 ?       S    13:10   0:18  \_ 
/usr/sbin/httpd
webuser   5717 36.1  1.7 705272 293356 ?       S    13:11   0:43  \_ 
/usr/sbin/httpd
webuser   5728 62.7  1.9 746204 334128 ?       R    13:11   0:50  \_ 
/usr/sbin/httpd
webuser   5729 52.6  1.5 652404 260488 ?       R    13:11   0:41  \_ 
/usr/sbin/httpd
webuser   5730 76.6  1.9 746996 333016 ?       R    13:11   0:58  \_ 
/usr/sbin/httpd
webuser   5732 17.8  1.2 606984 212676 ?       S    13:11   0:13  \_ 
/usr/sbin/httpd
webuser   5733 44.1  1.4 646956 253204 ?       R    13:11   0:31  \_ 
/usr/sbin/httpd
webuser   5734 45.6  1.2 611132 218544 ?       S    13:11   0:31  \_ 
/usr/sbin/httpd
webuser   5735 54.1  1.5 647352 254140 ?       R    13:11   0:35  \_ 
/usr/sbin/httpd
webuser   5784 27.5  1.3 616920 222476 ?       S    13:12   0:14  \_ 
/usr/sbin/httpd
webuser   5785 43.3  1.2 609472 216572 ?       S    13:12   0:19  \_ 
/usr/sbin/httpd
webuser   5794 35.7  1.2 605712 212216 ?       S    13:12   0:06  \_ 
/usr/sbin/httpd
webuser   5802 76.0  0.7 473628 121440 ?       R    13:12   0:00  \_ 
/usr/sbin/httpd


--- 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:00 PM


On Thu, Mar 24, 2011 at 3:25 PM, gre taguran <[email protected]> wrote:
> Not sure if it has something to do with the PHP... we are using PHP version 
> 5.2.x which I read somewhere that it has a bug(memory leak when doing a child 
> object, this will be resolved on PHP 5.3 though.)

>
> My concern for now is I want to kill those entire httpd process so that it 
> would start a new one. Unfortunately when we do a restart of httpd, the usage 
> would go up to 100% again after 3 seconds, it would be impossible that 
> someone is already accessing the server after restarting httpd.

>
> BTW I'm doing a stop and then start, there's at least a 10 seconds duration 
> before starting httpd again.

Can you paste the results of the ps axuf command? In particular, the one that 
involves the Apache process.


See below for an example from our server:

[root@manila-proxy ~]# ps axuf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

...
root      2017  0.0  0.1  10080  3488 ?        Ss   Feb09   0:00 /usr/sbin/httpd

apache   27872  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd
apache   27873  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd

apache   27874  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd
apache   27875  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd

apache   27876  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd
apache   27877  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd

apache   27878  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd
apache   27879  0.0  0.1  10080  2224 ?        S    Mar20   0:00  \_ 
/usr/sbin/httpd


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

v3sw3CH+Rhw2ln5pr6OPck5ma7u5Lw5Xm+7l7CRi2e6t5Xb7Oen4g5aIs4r3p6 hackerkey.com

    gpg --keyserver pgp.mit.edu --recv-keys 171CD03E


-----Inline Attachment Follows-----

_________________________________________________
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