LorCo has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl print "Content-type: text/html; charset=UTF-8\n\n" ; ++$i ; print "i=$i, $ENV{MOD_PERL}, pid is $$<br>\n" ; exit ;
When I run it repeatedly(F5) using browser( http://www.xx...x.com/cgi-bin/test.cgi )
I got:
i=1, mod_perl/2.0.8, pid is 17578
i=2, mod_perl/2.0.8, pid is 17578
i=3, mod_perl/2.0.8, pid is 17578
i=1, mod_perl/2.0.8, pid is 467
i=2, mod_perl/2.0.8, pid is 467
i=4, mod_perl/2.0.8, pid is 17578
i=1, mod_perl/2.0.8, pid is 24789
i=2, mod_perl/2.0.8, pid is 24789
i=3, mod_perl/2.0.8, pid is 24789
i=5, mod_perl/2.0.8, pid is 17578
i=3, mod_perl/2.0.8, pid is 467
i=1, mod_perl/2.0.8, pid is 24378
i=2, mod_perl/2.0.8, pid is 24378
i=1, mod_perl/2.0.8, pid is 2742
i=2, mod_perl/2.0.8, pid is 2742
The script re-compiled every time for new pid ( i=1 ) .
Is it something wrong with server/mod_perl or with my knowledge in mod_perl?
Is it Apache recompile a script for every new child/process?
Please help understand this.
Thank you, Alex
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: mod_perl children process
by LanX (Saint) on Oct 07, 2017 at 00:39 UTC | |
by LorCo (Initiate) on Oct 07, 2017 at 06:40 UTC | |
by LanX (Saint) on Oct 07, 2017 at 07:47 UTC | |
by LorCo (Initiate) on Oct 07, 2017 at 16:48 UTC | |
by LanX (Saint) on Oct 07, 2017 at 19:08 UTC | |
by LanX (Saint) on Oct 08, 2017 at 03:02 UTC | |
by Anonymous Monk on Oct 07, 2017 at 07:37 UTC | |
Re: mod_perl children process
by talexb (Chancellor) on Oct 07, 2017 at 19:43 UTC | |
Re: mod_perl children process
by CountZero (Bishop) on Oct 08, 2017 at 11:44 UTC | |
by KurtZ (Friar) on Oct 08, 2017 at 13:34 UTC | |
by hippo (Bishop) on Oct 08, 2017 at 13:47 UTC | |
Re: mod_perl children process
by afoken (Chancellor) on Oct 07, 2017 at 13:23 UTC | |
by Anonymous Monk on Oct 07, 2017 at 19:12 UTC | |
Re: mod_perl children process
by sundialsvc4 (Abbot) on Oct 08, 2017 at 20:38 UTC | |
by hippo (Bishop) on Oct 09, 2017 at 08:02 UTC | |
by RonW (Parson) on Oct 10, 2017 at 00:08 UTC | |
by LorCo (Initiate) on Oct 11, 2017 at 00:04 UTC | |
by huck (Prior) on Oct 11, 2017 at 02:15 UTC |