Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- From: jt@xxxxxxxxxxx (Jens Thoms Toerring)
- Date: 16 Mar 2009 17:24:16 GMT
John <john1949@xxxxxxxxx> wrote:
"J. Gleixner" <glex_no-spam@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:49be71fd$0$89873$815e3792@xxxxxxxxxxxxxxxxx
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 ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.
- Follow-Ups:
- References:
- Prev by Date: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Next by Date: Re: regex for finding jumbled words
- Previous by thread: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Next by thread: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Index(es):
Relevant Pages
|