Basically the perl cgi is called upon from an html form and it does some expensive database operations based on batch file input. The program is working fine with relatively smaller input (say 10000 input sequence). The children are doing their bit of work properly and upon termination the main process starts again and do the final bit of calculation. Problem happens for larger batch files. I tested with 50000 input sequences and found out that all the children are created properly and finish their job accordingly. but during their run, parent dies abruptly. The result is the html page that is waiting for the result from the cgi is waiting forever, because the original process is no longer active.
Not getting any error message, the main process simply dies while some children are still active. I didnt use any signal handler in the parent. For the larger bach processing, the main cgi does not reach the line after
wait_all_children, but for the smaller batch processing, it indeed does and finishes the job.
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.