You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Alexander Förster <al...@als-welt.de> on 2000/11/06 23:25:27 UTC
how do I really proof, that my script is running under apaches mod_perl?
Hi all,
maybe this one is a rookie-question ;)
Q:Is it normal, that under linux, running apache with mod_perl, for requests
on a script a separate system process is starting ?
I saw a lot of processes (via `top`), all running separate my script, as I
made some benchmark tests...
- I thought, that everything would be handled by apaches "httpd", if
mod_perl is installed...
History:
I wrote a script, included it via ssh in most of *.shtml - files of my site.
Everything is working fine, but the benchmark tests.
I really got some frustrating request/seconds - rates (about 6 req/s), while
testing the sites.
So I would really love to know, which way to go:
should I try to optimise that script (a lot) more or
should I configure that apache server in the right way for mod_perl?
Some Information:
I use these modules in my script:
use Apache::Registry;
use CGI::FastTemplate;
use strict;
some httpd.conf snippets of my test server running on linux:
..
KeepAlive On
MaxKeepAliveRequests 100
..
MaxClients 150
..
AddModule mod_perl.c
..
Alias /cgi-bin/ ....
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</files>
...
well, printing the environment with a cgi:
..
SERVER_SOFTWARE = Apache/1.3.12 (Unix) (SuSE/Linux) mod_fastcgi/2.2.2
mod_perl/...
...
I made those benchmark test from an NT-PC, via LAN, using Microsoft's
freeware: "Web Application Stress 1.1" from
http://homer.rte.microsoft.com/! - is there a better free tool? - (well I
don't really looked out for a better one)
Thanks 4 reading,
any remarks would be great,
alex.
Re: how do I really proof, that my script is running under apaches mod_perl?
Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,
On Mon, 6 Nov 2000, [iso-8859-1] Alexander F�rster wrote:
> Q:Is it normal, that under linux, running apache with mod_perl, for
> requests on a script a separate system process is starting ?
Not unless you intentionally start one from your script.
> I wrote a script, included it via ssh
Secure shell?
> I really got some frustrating request/seconds - rates (about 6 req/s)
Well it depends what was served...
> some httpd.conf snippets of my test server running on linux:
[snip]
> PerlHandler Apache::Registry
Why Registry? Not fast. Read the Guide. http://perl.apache.org/guide
73,
Ged.