John <> wrote:
> "J. Gleixner" <glex_no-> wrote in message
> news:49be71fd$0$89873$...
> > John wrote:
> >> I'm updating a MySQL table with about 2 million records. After about 100
> >> seconds the program ends with no error message. If I use LIMIT
> >> 800000,50000 the part where it stopped is OK so the UPDATE part is OK.
> >>
> >> Is there a time out parameter? Or am I running out of memory. Can the
> >> memory be increased?
> >
> > Check line 24.
> Line 24 says:-
> our $old_fh=select(STDOUT); $|=1; select($old_fh); # Make standard output
> socket hot
> Can't see how that can affect it.
I rather guess it was a gentle hint that your problem description
is too vague to allow to deduce what's going wrong. But your sub-
ject line may contain a hint: it looks as if the update is done
from within a CGI script or something similar, running on a web
server. And normally there's a CPU time limit set for such scripts
to catch e.g. script that run in an endless loop. That's what I
would check for first (note: if it's not set then an OS default
limit may be used!). If you are using Apache it might be a RLimitCPU
directive. But there could also be a limit on the memory consumption
of such scripts (RLimitMEM with Apache2)... Perhaps a look at the log
files of the web server will give you some more hints.
Regards, Jens
--
\ Jens Thoms Toerring ___
\__________________________
http://toerring.de