in reply to Re: Why does my script exit with "Killed" - that's all...
in thread Why does my script exit with "Killed" - that's all...

I found it!!

Something in the OS - that was also my first thought, as I did not write such a silly error msg into my script.

I am running Debian/Linux (Ubuntu). And the hint to var log was right: I found in var/log/kern.log an entry which sais "Out of memory: Killed process 2832 (perl)", which is what triggered the event!

What my server-script does: it consumes (and needs) quite an amount of memory (about 200MB of 1Gig system dram total). The log also tells some swapping happened before the event, I think that swap, plus system plus my script was just too much... Now, I will insert some tweaks to reduce ram usage, until the system receives more physical ram. Thanks again!
(although I am not yet such an ace to know what oom and ulimit exactly is..;) )
  • Comment on Re^2: Why does my script exit with "Killed" - that's all...

Replies are listed 'Best First'.
Re^3: Why does my script exit with "Killed" - that's all...
by Mutant (Priest) on Jul 20, 2007 at 11:49 UTC
    One thing you might want to try is restarting your server periodically (if that's practical). perl has a habit of accumulating memory over long periods of time. Restarting the process should reset all that.
Re^3: Why does my script exit with "Killed" - that's all...
by samizdat (Vicar) on Jul 20, 2007 at 13:42 UTC
    Out Of Memory and User||Usage (depending on which flavor) Limit :D

    Don Wilde
    "There's more than one level to any answer."