Please help: resource limit for running Perl under Apache?

"ST Wong (ITSC)" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <KL1PR01MB13657A5103DA3A84A18DB1D7BCF80@KL1PR01MB1365.apcprd01.prod.exchangelabs.com>
Hi, I've a Perl script that does following:

-          Ssh to a device and get information, e.g.:  open(DEV, "/usr/bin/ssh -v statuser\@192.168.11.1 sh get client list| ");

-          Loop through the result and display as html.

The Perl script can complete without problem when run in bash or in Apache 2.2.

However, when I put it on a new Apache 2.4 server, the script can't display all output - the output table expected to be 1000 lines now ends at ~300.   Checked that it seems the ssh command terminated prematurely.  The "while (<DEV>)" loop exists as there is no more input data.   The Perl can also complete without problem when run in bash on the same server running Apache 2.4.

I wonder if there is any resource limit for CGI/Perl when running under Apache 2.4.   Default OS resource limit looks alright:

stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15014
virtual memory          (kbytes, -v) unlimited

Sorry that I'm not web admin and don't have access to Apache logs.

Would anyone please help?   Thanks a lot.

Regards
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.