Re: hitting the limits



On Sat, 29 Apr 2006 13:40:42 +1200, "windandwaves"
<winandwaves@xxxxxxxxxxxx> wrote:

Hi Folk

I am managing a site, www.friars.co.nz that seems to be hitting the limits
and I keep getting the 500 error. According to the people from webfarm it
is because my script are too demanding or not closed properly.

I dont believe you have to "close" PHP scripts or even database connections.

Ideally you shouldn't have to do either. PHP scripts automatically
close all resources upon termination, unless you've explicitly asked
them to do otherwise.

I've rarely encountered a 500 error using PHP, typically it crops up
with Perl scripts. In most situations, PHP will throw its own errors,
which are descriptive enough to trace the source of the problem.
(Granted, I just posted a few moments ago about an exception to this
case...)

The site also accesses a 80 Megabyte database.

Database as in...? MySQL? How much traffic are you getting? Are you
using persistent database connections, or normal ones?

Do you know of a way I can find out where the problems are or improving the
performance of the site?

I'm not familiar with webfarm; with any luck, they give you a PHP
error log, or they send PHP's errors into Apache's error log. Whatever
error logs are available to you, check them religiously.

I uses ob_start and ob_end_flush, would that cause problems?

Jerry did that one justice in his response.

hth

-
Remove mypants to email.
<http://www.shaunc.com/>
.



Relevant Pages

  • Re: problem with include.
    ... include-Statement in it. ... Minimum Requirement: PHP 4.3.3 ... This error log is empty. ...
    (comp.lang.php)
  • Re: Tracking down Out of memory to request being served?
    ... It will report several hundred "Out of memory!" ... The next big suspect is PHP. ... which we assume is getting picked up in the apache error log. ...
    (comp.lang.php)
  • Re: HTML "scrape" causes loss of query string in URL
    ... in PHP with several PHP scripts interacting with one Java servlet, ... which interacted with several Java classes. ... so now I have to translate all of the PHP scripts into ... PHP to JSP, figuring that while not very "Java guru cool" to do so, ...
    (comp.lang.java.help)
  • Re: OT Favour
    ... same cart software on the same host is fine, and it's only the root page which shows this error on my site. ... I've just tried creating an account and doing a search on your site, both of which trigger your php scripts and both of which ran successfully. ... recognises Maria's pc and that it then objects because it thinks she's trying to manipulate her scripts through .htaccess. ...
    (uk.politics.misc)
  • Re: [SLE] Problems with Apache2 & PHP on 9.1
    ... I also have a similar problem when I try to compile a new version of PHP by ... In error log Ie got the same error messsage ... They were working well prior to the upgrade. ...
    (SuSE)