Hi folks,
I am running a perl(5.6) program on Solaris. The main program opens 4 DB (Sybase::DBlib;) connections and gets some(250k rows of data) data from DB and then forks 6 child processes. Child processes use the data obtained by parent and also they fetch some more data from db by opening their own DB connections(4 per forked process). These forked processes write out 4 files each after doing some processing.
What is happening is, once in a while these processes are throwing "Not enough space" error in $! and continuing running. I dont see this error unless I print $!. Most of the file open,close calls are checked with die.
My question is, why is this happening? How can I debug this? Is there a way to pin point this? I probably cant run in -Dm mode as the no of passes is more than 250k * 6.
Here is the system details:
OS : Solaris
CPU : 12 ( i guess)
top shows:
load averages: 8.41, 6.44, 5.58 00:03:06
88 processes: 74 sleeping, 2 running, 12 on cpu
Memory: 8192M real, 1645M free, 10G swap in use, 2518M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
1686 jack 1 20 0 1129M 1102M cpu11 0:36 6.84% jack.pl
1685 jack 1 20 0 1129M 655M cpu6 0:35 6.40% jack.pl
1683 jack 1 20 0 1129M 655M cpu1 0:34 5.59% jack.pl
1687 jack 1 0 0 1129M 655M sleep 0:33 5.62% jack.pl
1684 jack 1 0 0 1129M 655M cpu7 0:33 5.45% jack.pl
1682 jack 1 0 0 1129M 655M sleep 0:33 5.15% jack.pl
155 jack 1 40 0 1124M 1116M sleep 10:54 0.58% jack.pl
.....
....
Enough disk space is availble in the system.
In the code, I checked there is no array indexing issues involved. Mostly hashes have been used.
appreciate your help.
cheers
Jayanta
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.