Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apache/PHP eating all my CPU



Hi, I have been having a problem running php on my website. I have installed gallery2 (from gallery.sourceforge.net) and have been seeing many problems with it since I have added many images to it. When anyone accesses a gallery2 page, the server load goes way up and if I do "top -u" from a console, httpd is taking up anywhere from 75% to 95% cpu time for about 10 seconds, which is about how long the pages take to load.

I originally thought this might be a MySQL problem, since there is performance problems with OS X Server and MySQL (threading). I installed mysql on a linux server and replicated one of the gallery2 DBs, but I still get awful load times.

The next thing I tried was using a different web server. I installed lighttpd using DarwinPorts, along with the FastCGI module for php. When I access the same page using lighttpd as the server, a php process spawns and uses 75% - 95% cpu time for about 10 seconds, and the web page still takes that long to load.

So perhaps my php is causing the problem? I upgraded to php 4.4.0, same problem, then I tried the Marc Liyanage php package (4.3.11), same result.

I am at a loss as to what could be wrong. Could this be a hardware fault? The blower fans on the XServe this is hosted on have failed, but I don't see how that could affect this.

--
Jeremy Bush

begin:vcard
fn:Jeremy Bush
n:Bush;Jeremy
org:Image Management LLC
adr;dom:Suite 200;;610 Main St;Racine;Wi;53403
email;internet:email@hidden
title:Web Master
tel;work:262-898-9137
tel;fax:262-898-9138
url:http://www.imagemanagement.ws
version:2.1
end:vcard

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.