[K12OSN] OT apache troubleshoot
Todd Hackett
me at todhackett.com
Sat Mar 16 18:41:55 UTC 2013
Hi Barry
PID USER PR NI VIRT RES SHR S %cpu %Mem Time+ COMMAND
2789 daemon 30 10 261m 12m 3428 S 0.0 0.3 0:01.77httpd
2923 daemon 30 10 258m 9120 3440 S 0.0 0.2 0:00.97 httpd
3106 daemon 30 10 258m 9048 3396 S 0.0 0.2 0:01.15 httpd
3501 daemon 30 10 258m 8992 3328 S 0.0 0.2 0:00.57 httpd
3891 daemon 30 10 258m 9036 3388 S 0.0 0.2 0:00.79 httpd
3930 daemon 30 10 258m 8764 3132 S 0.0 0.2 0:00.05 httpd
4021 daemon 30 10 257m 8764 3328 S 0.0 0.2 0:00.28 httpd
4717 daemon 30 10 257m 8704 3312 S 0.0 0.2 0:01.01 httpd
4719 daemon 30 10 258m 9012 3364 S 0.0 0.2 0:00.89 httpd
4726 daemon 30 10 258m 8372 3028 S 0.0 0.2 0:00.01 httpd
uptime is 965 days
The above is a production server with many websites ... Are you sure it
is 25% and not 0.2 or 0.3%? You can limit the number of processes
to spawn; on my test server at home .. I typically use 2 to 4
depending. If it is a BIG memory concern, drop that to 1 or 2 and see
how it goes. I have seen up to 25 children running at busy times and it
doesn't seem to slow things down. ( dual 64Bit 3.6Gig Xeon's
hyper-threading; with 8Gig of memory, scsi raid )
You didn't mention your server: Memory, Disk system; and the apache
version.
todh
On 03/16/2013 05:31 AM, Barry R Cisna wrote:
> Hello All,
>
> # off topic
>
> FYI. I did search the Apache forums and couldn't really find a definite
> solution.
>
> On my home CentOS 6.x / K12Linux server I do run Apache server with
> about 6 sites running for various people I know that they maintain
> simply as a hobby type thing for themselves. I run Joomla as the CMS for
> convenience which has worked very well since the get-go.
>
> Problem:
> Without having done any updates to the server for sometime and no
> monkeying around with configuration files on the Apache part anyway.
> Some times now when running top I seen many instances of http in the mix
> and each process about 25% memory,,,which of course does make the server
> itself get eventually slow.
>
> This is about an 4 month old brand new medium grade hardware,but nothing
> 'enterprise grade" FWIW.
>
> In the past I always did see about 10-12 instances of httpd running when
> I run ' ps aux|grep httpd' but never have seen 6-8 instances running
> when I run top.
> I guess due to the fact I have never seen this in top before,(and
> consequently the server getting somewhat slow),I have never really
> looked into this or have read up any on the http 'forking process'.
>
> If I simply shut off the httpd service for 10 mins then restart
> later,,these of course disappear. I am not sure what to think in regards
> to troubleshooting and tracing what causes this behaviour. All 6
> websites have run (on my previous server hardware) and I never did have
> this happen.
> Sorry for the long post
>
> Thank You,
> Barry
>
>
>
>
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see<http://www.k12os.org>
>
--
Todd Hackett System Administrator
POBox 1168
Libby, Montana 59923 406.293.3843
http://www.todhackett.com
Network and Server Administration.
Secure Firewall management.
Antispam/antivirus eMail.
Managed Web Hosting.
Like trains? http://www.soundrail.com
Got Stuff? http://www.libbystuff.com
More information about the K12OSN
mailing list