Hi All,
I am using Fedora Core 5, Apache webserver, and ISPconfig with Multi-threaded PERL.
I have a script that uses a low (10) number of PERL threads to go through each of my websites and edit various .php pages that are designated by using grep and "foreaching" them into an array for processing.
When I run the script from shell, I see that it takes up about 105% CPU power, but the server generally continues to function and the script continues to run.
Until... about 5 hours later it abruptly stops and disappears from my "top" processes.
I don't see any PERL error displayed on my shell screen...
Also, I know that it hasn't finished going through each website since I built in a log function that outputs progress to a .txt. file. Further, I told PERL to output "SCRIPT COMPLETE" to my text file when finished, but this doesn't happen!
Is it because my server's CPU is under 105% + load (in addition to serving web requests) for 5 hours that causes the script to stop?
How can I make this "unlimited" temporarily so that the script can run and finish the tasks I need?
Here is my ulimit -a output - everything appears to be max:
Code:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 100000
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 2000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
max rt priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 100000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
file locks (-x) unlimited
Thanks for any help!
