My program goes thru about 15.000 lines of MySQL data and each line has about 15 variable (survey results).
Let's say I am calculating the scores and using 25 formulas for each line...
the PHP file starts executing and goes up to about 7000-7500 and then stops executing with no reason. It is not a 3 minute or 5 minute timeout issue. This happens in 15-20 seconds.
Is there a MAXIMUM number of formula executions kind of timeout in PHP? Please help, thanks...
8 1422
Heya, jaymz79. Welcome to TSDN!
the PHP file starts executing and goes up to about 7000-7500 and then stops executing with no reason. It is not a 3 minute or 5 minute timeout issue. This happens in 15-20 seconds.
Are you getting an error message? Is there any output at all? Should there be any output?
How are you gauging how far your script gets before it stops (the 7000-7500 figure)?
Does your script get to the exact same point every time before hanging, or is it fairly random?
I take it, then, that your script is executing per-row on your MySQL results, and you're not using a stored procedure?
If you're using a stored procedure, is it getting flagged as a 'slow query' by MySQL?
Speaking of which, is it possible that your script is hitting an infinite loop somewhere? Perhaps there's a single row in there that has exactly the right data to make your script crash.
Hello,
It is completely random. This is the thing that pisses me off. Sometimes it goes up to 8 thousand something, sometimes it just stops at 7 thousand something... I inserted an echo line during process showing what line it is working on to see when it quits but the thing is completely random.
There is no infinite loop because I am not doing anything that would loop back to beginning... If it is less than 5000, it works fine.
This problem really pissed me off. Any help would be really appreciated. Thanks...
Heya, jaymz79. Welcome to TSDN!
Are you getting an error message? Is there any output at all? Should there be any output?
How are you gauging how far your script gets before it stops (the 7000-7500 figure)?
Does your script get to the exact same point every time before hanging, or is it fairly random?
I take it, then, that your script is executing per-row on your MySQL results, and you're not using a stored procedure?
If you're using a stored procedure, is it getting flagged as a 'slow query' by MySQL?
Speaking of which, is it possible that your script is hitting an infinite loop somewhere? Perhaps there's a single row in there that has exactly the right data to make your script crash.
Take a look at this post and see if you get any error messages then. I suspect you have a malformed query which is failing.
So you're executing a single query per row on 15000 rows. Is this correct?
Hello guys,
I tried the show errors option, but it really doesn't show me any error about that weird thing. The thing I don't understand is, it is completelty random, sometimes it quits at 7523 sometimes at 8190... This is driving me crazy, I am modifying the code to refresh the page within selected periods, if I do that it works. for instance if I run the same file for rows 0-2000 and then refresh the file and run 2000-4000 etc. it works. I am just guessing that PHP, or the server I am using is not able to hold thousands of variables in its cache at the same time... This is the only thing I can think of. This sucks big time.
I would be glad to hear about your ideas, thanks for your help...
Hello guys,
I tried the show errors option, but it really doesn't show me any error about that weird thing. The thing I don't understand is, it is completelty random, sometimes it quits at 7523 sometimes at 8190... This is driving me crazy, I am modifying the code to refresh the page within selected periods, if I do that it works. for instance if I run the same file for rows 0-2000 and then refresh the file and run 2000-4000 etc. it works. I am just guessing that PHP, or the server I am using is not able to hold thousands of variables in its cache at the same time... This is the only thing I can think of. This sucks big time.
I would be glad to hear about your ideas, thanks for your help...
Perhaps, then, you should post some code for us to look at. Are you doing anything dumb like putting @s in front of queries so they won't return errors?
hi i have a similiar problem
Hi,
Apache stops printing php statements after looping through the multi-dimensional array, and does not reach a point where I print "hello there !" message.
i need to output beyound the print statements in array, to execute javascript in client browser. Please help !
try catch messages are not showing any error !
Note : 1. all my pages work perfectly even with huge outputs, only this multi-dimensional array output is the problem
2. always it stops when the multi-dimensional array to be printed is of certain size = 20
Thanks
Irfan Ahmed
*********
here is the code below
<?php
try{
while( $localcount < $localcountfinal ) {
if(($completeTreeLocal[$localcount]["node"]+0) != 50000 ){
print $completeTreeLocal[$localcount]["routePath"];
}
$localcount++;
}
$_SESSION['completeTreeStruct'] = serialize( $completeTreeLocal);
} catch (Exception $e) {
echo ' Caught exception: ', $e->getMessage(), "\n";
}
print "hello there !";
?>
Have you tried enabling the error messages as described at the top of this forum?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Jason |
last post by:
Hi all
I get the following error when executing a rather intense stored procedure
from an ASPX page.
I have tried:
- Increasing timeouts on IIS 5.0 (all areas that even mention timeout)
- use...
|
by: DavidS |
last post by:
First: There are several ways to confuse one regarding session timeout.
(1) web.config - <sessionState timeout="20">
(2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
|
by: bdeviled |
last post by:
I am deploying to a web environment that uses load balancing and to insure
that sessions persist across servers, the environment uses SQL to manage
sessions. The machine.config file determines how...
|
by: greenb |
last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call
several stored procedures back to back to perform updates. They don't return
any data. Sometimes the total execution...
|
by: Mike |
last post by:
Timeout Calling Web Service
I am calling a .NET 1.1 web service from an aspx page. The web service can
take several minutes to complete its tasks before returning a message to the
aspx page.
...
|
by: A.M-SG |
last post by:
Hi,
How can I increase the HTTP Timeout value at the client side?
Thank you,
Alan
|
by: Calvin KD |
last post by:
Hi everyone,
I need help urgently.
I have a C#.Net app which uses cookies for state management. Everything has
been going fine until recently we've expanded the app
and a few more screens were...
|
by: Masso |
last post by:
Hallo to the group,
my question is this: where i have to set timeout in a web application?
If i set into sessionState with property Timeout="60", after 20
minutes the session is over. Always...
|
by: Scorpion657 |
last post by:
Hey I really need help.
I have a Website coded using ASP.NET and VB and for some reason, i'm getting the following error when I try to upload or access a large file which is stored in the...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
| |