473,396 Members | 1,914 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,396 software developers and data experts.

Interesting Timeout Problem - Please Help

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...
May 23 '07 #1
8 1426
pbmods
5,821 Expert 4TB
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.
May 24 '07 #2
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.
May 24 '07 #3
Motoma
3,237 Expert 2GB
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.
May 24 '07 #4
pbmods
5,821 Expert 4TB
So you're executing a single query per row on 15000 rows. Is this correct?
May 25 '07 #5
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...
May 25 '07 #6
Motoma
3,237 Expert 2GB
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?
May 25 '07 #7
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 !";

?>
May 29 '07 #8
Motoma
3,237 Expert 2GB
Have you tried enabling the error messages as described at the top of this forum?
May 29 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
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...
4
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...
8
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...
10
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...
3
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. ...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
0
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...
5
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...
1
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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.