473,414 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

ISE 500 due to overloading / time-out

Hi Folk

I have a long script that sends a bunch of emails (between 5 and 20). At
the end of the script, it creates a Internal Server Error 500 - sometimes
only. The more emails I send , the more likely it seems that I get the
error. The whole script runs though - it seems (error occurs somewhere
near or at the end).

I imagine it either to be server overload OR a time-out (it takes about 30
seconds for the script to run (which I think relates the email send part...)

Any hints? I am a little lost.
Jul 21 '05 #1
8 1319
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Folk

I have a long script that sends a bunch of emails (between 5 and 20). At
the end of the script, it creates a Internal Server Error 500 - sometimes
only. The more emails I send , the more likely it seems that I get the
error. The whole script runs though - it seems (error occurs somewhere
near or at the end).

I imagine it either to be server overload OR a time-out (it takes about 30
seconds for the script to run (which I think relates the email send part...)

Any hints? I am a little lost.


Sounds likely that this is a script timeout. Your server error log
would confirm that for you. Even so you might find this page
useful - http://www.php.net/set_time_limit

--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)
Jul 21 '05 #2
Dave wrote:
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Folk

I have a long script that sends a bunch of emails (between 5 and
20). At the end of the script, it creates a Internal Server Error
500 - sometimes only. The more emails I send , the more likely it
seems that I get the error. The whole script runs though - it
seems (error occurs somewhere near or at the end).

I imagine it either to be server overload OR a time-out (it takes
about 30 seconds for the script to run (which I think relates the
email send part...)

Any hints? I am a little lost.


Sounds likely that this is a script timeout. Your server error log
would confirm that for you. Even so you might find this page
useful - http://www.php.net/set_time_limit


Hi Dave,

Thank you for your answer. I tried it, but it unfortunately it did not
solve the problem.

This is what I added to my script:

ini_set('max_execution_time', 120);
set_time_limit(120);

But still ISE500....

I even changed the same parameters on the php.ini file, but still no luck.

What do else can it be, or how can i find out?

Jul 21 '05 #3
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Dave wrote:
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Folk

I have a long script that sends a bunch of emails (between 5 and
20). At the end of the script, it creates a Internal Server Error
500 - sometimes only. The more emails I send , the more likely it
seems that I get the error. The whole script runs though - it
seems (error occurs somewhere near or at the end).

I imagine it either to be server overload OR a time-out (it takes
about 30 seconds for the script to run (which I think relates the
email send part...)

Any hints? I am a little lost.


Sounds likely that this is a script timeout. Your server error log
would confirm that for you. Even so you might find this page
useful - http://www.php.net/set_time_limit


Hi Dave,

Thank you for your answer. I tried it, but it unfortunately it did not
solve the problem.

This is what I added to my script:

ini_set('max_execution_time', 120);
set_time_limit(120);

But still ISE500....

I even changed the same parameters on the php.ini file, but still no luck.

What do else can it be, or how can i find out?


I was betting on timeout since PHP's default is 30 seconds and thats
the time you mentioned it usually failed at, but if its *not* that
then I'm afraid I couldn't really guess at anything else.

In order to find out more you should first look at the server error
log (for apache on unix the file is usually something like
/var/log/httpd/error_log). Have you also tried increasing the
level of error reporting (see http://www.php.net/error-reporting)

HTH
--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)
Jul 21 '05 #4
Dave wrote:
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Dave wrote:
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Folk

I have a long script that sends a bunch of emails (between 5 and
20). At the end of the script, it creates a Internal Server Error
500 - sometimes only. The more emails I send , the more likely it
seems that I get the error. The whole script runs though - it
seems (error occurs somewhere near or at the end).

I imagine it either to be server overload OR a time-out (it takes
about 30 seconds for the script to run (which I think relates the
email send part...)

Any hints? I am a little lost.

Sounds likely that this is a script timeout. Your server error log
would confirm that for you. Even so you might find this page
useful - http://www.php.net/set_time_limit


Hi Dave,

Thank you for your answer. I tried it, but it unfortunately it did
not solve the problem.

This is what I added to my script:

ini_set('max_execution_time', 120);
set_time_limit(120);

But still ISE500....

I even changed the same parameters on the php.ini file, but still no
luck.

What do else can it be, or how can i find out?


I was betting on timeout since PHP's default is 30 seconds and thats
the time you mentioned it usually failed at, but if its *not* that
then I'm afraid I couldn't really guess at anything else.

In order to find out more you should first look at the server error
log (for apache on unix the file is usually something like
/var/log/httpd/error_log). Have you also tried increasing the
level of error reporting (see http://www.php.net/error-reporting)


Hi Dave

Thank you for your great help. Awesome.

I tried to increase the error reporting - no luck there (yet, may try it
again - all I am missing is notices at present).

Will search for the error log (my isp is not very user friendly).

I have also asked the ISP, but no answer there.

Cheers

Nicolaas
Jul 21 '05 #5
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Dave

Thank you for your great help. Awesome.
No problem :)
I tried to increase the error reporting - no luck there (yet, may try it
again - all I am missing is notices at present).

Will search for the error log (my isp is not very user friendly).

I have also asked the ISP, but no answer there.

Cheers

Nicolaas


Shame your ISP doesn't sound too helpful. Hopefully you can get a
hold of the error log somehow - an ISE500 will certainly show at
least one message in there to give you a clue as to whats going
on.

If you happened to be using cPanel or something similar there is
more than likely a view-error-log option on the menu. Failing that
if you're on some other kind of virtual-server type setup then I
imagine the error log is split and you would have to locate the
specific one related to you but names and locations would depend
on how it was all setup, so I couldn't make a guess in that case.

--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)
Jul 22 '05 #6

"Dave" <da**@REMOVEbundook.com> wrote in message
news:rr************@fawlty.homelinux.net...
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Dave

Thank you for your great help. Awesome.


No problem :)

I tried to increase the error reporting - no luck there (yet, may try it
again - all I am missing is notices at present).

Will search for the error log (my isp is not very user friendly).

I have also asked the ISP, but no answer there.

Cheers

Nicolaas


Shame your ISP doesn't sound too helpful. Hopefully you can get a
hold of the error log somehow - an ISE500 will certainly show at
least one message in there to give you a clue as to whats going
on.

If you happened to be using cPanel or something similar there is
more than likely a view-error-log option on the menu. Failing that
if you're on some other kind of virtual-server type setup then I
imagine the error log is split and you would have to locate the
specific one related to you but names and locations would depend
on how it was all setup, so I couldn't make a guess in that case.

Hi Dave

They told me to load it on my local machine and try if I got an error there.

I dont have a local machine and I am wondering if I would get an error there
anyway (the error occurs only in about 50% of the times that I run the
script).

Jul 24 '05 #7
windandwaves (wi**********@coldmail.com) decided we needed to hear...

"Dave" <da**@REMOVEbundook.com> wrote in message
news:rr************@fawlty.homelinux.net...
windandwaves (wi*********@coldmail.com) decided we needed to hear...
Hi Dave

Thank you for your great help. Awesome.


No problem :)

I tried to increase the error reporting - no luck there (yet, may try it
again - all I am missing is notices at present).

Will search for the error log (my isp is not very user friendly).

I have also asked the ISP, but no answer there.

Cheers

Nicolaas


Shame your ISP doesn't sound too helpful. Hopefully you can get a
hold of the error log somehow - an ISE500 will certainly show at
least one message in there to give you a clue as to whats going
on.

If you happened to be using cPanel or something similar there is
more than likely a view-error-log option on the menu. Failing that
if you're on some other kind of virtual-server type setup then I
imagine the error log is split and you would have to locate the
specific one related to you but names and locations would depend
on how it was all setup, so I couldn't make a guess in that case.

Hi Dave

They told me to load it on my local machine and try if I got an error there.

I dont have a local machine and I am wondering if I would get an error there
anyway (the error occurs only in about 50% of the times that I run the
script).


By your local machine they mean your own computer where you would need
to have PHP, Apache and (probably) MySQL installed. I have a seperate
Linux server here that I use to test my own scripts, but its certainly
possible to set up the required software on your windows machine (if
thats what you're using).

One such package which might help can be found here -
http://www.easyphp.org/ - but there are quite a few like this so its
up to you which you want to use.

Of course if your script runs fine on your local machine then the
reason could be version related, or any number of other things so
it still comes down to you needing to see the error log on your
ISPs server...

--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)
Jul 24 '05 #8

"Dave" <da**@REMOVEbundook.com> wrote in message
news:jc************@fawlty.homelinux.net...
windandwaves (wi**********@coldmail.com) decided we needed to hear...

"Dave" <da**@REMOVEbundook.com> wrote in message
news:rr************@fawlty.homelinux.net...
windandwaves (wi*********@coldmail.com) decided we needed to hear...
> Hi Dave
>
> Thank you for your great help. Awesome.

No problem :)
>
> I tried to increase the error reporting - no luck there (yet, may try it > again - all I am missing is notices at present).
>
> Will search for the error log (my isp is not very user friendly).
>
> I have also asked the ISP, but no answer there.
>
> Cheers
>
> Nicolaas

Shame your ISP doesn't sound too helpful. Hopefully you can get a
hold of the error log somehow - an ISE500 will certainly show at
least one message in there to give you a clue as to whats going
on.

If you happened to be using cPanel or something similar there is
more than likely a view-error-log option on the menu. Failing that
if you're on some other kind of virtual-server type setup then I
imagine the error log is split and you would have to locate the
specific one related to you but names and locations would depend
on how it was all setup, so I couldn't make a guess in that case.

Hi Dave

They told me to load it on my local machine and try if I got an error there.
I dont have a local machine and I am wondering if I would get an error there anyway (the error occurs only in about 50% of the times that I run the
script).


By your local machine they mean your own computer where you would need
to have PHP, Apache and (probably) MySQL installed. I have a seperate
Linux server here that I use to test my own scripts, but its certainly
possible to set up the required software on your windows machine (if
thats what you're using).

One such package which might help can be found here -
http://www.easyphp.org/ - but there are quite a few like this so its
up to you which you want to use.

Of course if your script runs fine on your local machine then the
reason could be version related, or any number of other things so
it still comes down to you needing to see the error log on your
ISPs server...

--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)


That is what I am thinking. I am going to try to install it on a different
ISP I think before nuking my own windows machine with PHP...Thank you for
all your help

Much appreciated.

Nicolaas

Jul 25 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Terje Slettebø | last post by:
To round off my trilogy of "why"'s about PHP... :) If this subject have been discussed before, I'd appreciate a pointer to it. I again haven't found it in a search of the PHP groups. The PHP...
4
by: Dave Theese | last post by:
Hello all, I'm trying to get a grasp of the difference between specializing a function template and overloading it. The example below has a primary template, a specialization and an overload. ...
16
by: gorda | last post by:
Hello, I am playing around with operator overloading and inheritence, specifically overloading the + operator in the base class and its derived class. The structure is simple: the base class...
51
by: Jojo | last post by:
Is there any way to get to the left-hand side of an operator? Consider the following (this is not meant to be perfect code, just an example of the problem): class Matrix { public: int data;...
39
by: zeus | last post by:
I know function overloading is not supported in C. I have a few questions about this: 1. Why? is it from technical reasons? if so, which? 2. why wasn't it introduced to the ANSI? 3. Is there any...
45
by: JaSeong Ju | last post by:
I would like to overload a C function. Is there any easy way to do this?
9
by: Karahan Celikel | last post by:
Here are three simple classes: class A { public void DoIt(B b) { DoSomething(b); } public void DoSomething(B b) {
15
by: Brian Haynes | last post by:
I am having a problem with overloading. An example: Public Class Base ... End Class Public Class Derived Inherits Base ... End Class
3
by: Chameleon | last post by:
What is better if you want upcasting in intermediate classes like below? Multiple Inheritance and Overloading or simply RTTI? RTTI wants time but MI and Overloading create big objects (because of...
1
by: Zach | last post by:
Consider the following code: void Test(int i) { System.Console.WriteLine("int function"); } void Test(object o) { System.Console.WriteLine("object function");
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.