LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-19-2007, 07:56 PM   #1
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
Measuring some Apache-PHP load issues


Hello.

I was asked to intall a PHP application on our web hosting service, which is located on some server farm outside our walls. The app runs
fine on our corporate LAN and I also tested it at home on a 2.4 GHz P4, with a humble 256 Mbs of memory but disk space to spare, running MySQL 5 and PHP 5. But a critical of part of the program doesn't run on the server farm. Any request to it just leaves an empty white page. Every type of error reporting has been turned on.

I suspect the latter to have limited ressources. I've been getting but I'm trying to get real numbers out of the load it produces before confronting the farm's owner.

Is it possible that PHP limits the number of "includes" ?

How do I know how much RAM a single request to the web server has required ? How about the disk space ?

If a request fails because of memory shortage, is there a log trapping this ? While "successful" requests (including common errors like 404's etc.) left a trace in the apache log, I could find no trace of the request when that particular problem occurs. Could a memory failure causes by PHP or MySQL cut the request in such a way that Apache drops any logging at this point ?

Thanks for any additionnal suggestions.
 
Old 05-24-2007, 05:26 AM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
1. Check for following directives in php.ini for enabling error display.
report_memleaks
display_errors
display_startup_errors
error_reporting

2. Enable Server status directive in httpd.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
Try to find out if any particular page is creating problem.

3. Enable mysql slow query log by modifying my.conf. Check if any query is taking too much time to execute.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 2.0 + PHP 5 + heavy cpu load nyttoc Linux - Server 1 04-26-2007 06:59 AM
PHP 5.1.2 module causing apache to not load Jalalabee Linux - Newbie 3 03-31-2006 04:35 PM
configuring apache to load with php support jomy Linux - Networking 1 03-06-2005 08:38 AM
Server load code Apache+PHP mindfrost82 Linux - Software 1 01-03-2005 10:43 AM
Can't load php module in Apache pepino Linux - Newbie 2 10-21-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration