--90e6ba4fc308eab2f4049c57d2ba
Content-Type: text/plain; charset=ISO-8859-1
Greetings,
I have a mod_perl handler (that is intended to run on a proxy server)
written like so:
package Handler;
sub handler { return -1 }
1;
I am testing this handler by registering it as a Trans handler like so:
PerlTransHandler Handler
*I have also tried testing by registering as a Fixup handler:*
*
*
*<Location />*
* SetHandler perl-script*
* PerlFixupHandler Handler*
*</Location>*
Before I register this handler, my average response time serving a static
document is about 20 milli seconds. When i register this handler as either a
Trans or Fixup handler, my performance degrades to 2 whole seconds.
I am using the worker.c threaded version, here are my settings:
<IfModule worker.c>
ServerLimit 100
StartServers 16
MaxClients 1025
MinSpareThreads 25
MaxSpareThreads 100
ThreadsPerChild 25
MaxRequestsPerChild 2048
</IfModule>
# Put this here to fix broken pipe from mod_perl (?)
ProxyReceiveBufferSize 217088
ProxyIOBufferSize 217088
Can anyone see the reason why my performance is being degraded
significantly? Is this normal? Any suggestions or recommendations are
greatly appreciated. Thank you in advance, and please let me know if you
need any more details in case i left them out.
Thanks!
jeffa
--90e6ba4fc308eab2f4049c57d2ba
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Greetings,<div><br></div><div>I have a mod_perl handler (that is intended t=
o run on a proxy server) written like so:</div><div><br></div><div><div><fo=
nt class=3D"Apple-style-span" face=3D"'courier new', monospace">pac=
kage Handler;</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace"><br></font></div><div><font class=3D"Apple-style-span" face=3D"'co=
urier new', monospace">sub handler { return -1 }</font></div><div><font=
class=3D"Apple-style-span" face=3D"'courier new', monospace"><br>
</font></div><div><font class=3D"Apple-style-span" face=3D"'courier new=
', monospace">1;</font></div><div><br></div><div>I am testing this hand=
ler by registering it as a Trans handler like so:</div><div><br></div><div>
<font class=3D"Apple-style-span" face=3D"'courier new', monospace">=
PerlTransHandler Handler</font></div><div><br></div><div><i>I have also tri=
ed testing by registering as a Fixup handler:</i></div><div><i><br></i></di=
v>
<div><div><font class=3D"Apple-style-span" face=3D"'courier new', m=
onospace"><i><Location /></i></font></div><div><font class=3D"Apple-s=
tyle-span" face=3D"'courier new', monospace"><i>=A0=A0 =A0SetHandle=
r perl-script</i></font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace"><i>=A0=A0 =A0PerlFixupHandler Handler</i></font></div><div><font class=
=3D"Apple-style-span" face=3D"'courier new', monospace"><i></Loc=
ation></i></font></div>
</div><div><br></div><div>Before I register this handler, my average respon=
se time serving a static document is about 20 milli seconds. When i registe=
r this handler as either a Trans or Fixup handler, my performance degrades =
to 2 whole seconds.</div>
<div><br></div><div>I am using the worker.c threaded version, here are my s=
ettings:</div><div><br></div><div><div><font class=3D"Apple-style-span" fac=
e=3D"'courier new', monospace"><IfModule worker.c></font></di=
v>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace">ServerLimit =A0 =A0 =A0 =A0 =A0 100</font></div><div><font class=3D"Ap=
ple-style-span" face=3D"'courier new', monospace">StartServers =A0 =
=A0 =A0 =A0 =A0 16</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace">MaxClients =A0 =A0 =A0 =A0 =A0 1025</font></div><div><font class=3D"Ap=
ple-style-span" face=3D"'courier new', monospace">MinSpareThreads =
=A0 =A0 =A0 =A025</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace">MaxSpareThreads =A0 =A0 =A0 100</font></div><div><font class=3D"Apple-=
style-span" face=3D"'courier new', monospace">ThreadsPerChild =A0 =
=A0 =A0 =A025</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace">MaxRequestsPerChild =A02048</font></div><div><font class=3D"Apple-styl=
e-span" face=3D"'courier new', monospace"></IfModule></font><=
/div></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace"><br></font></div><div><div><font class=3D"Apple-style-span" face=3D"=
39;courier new', monospace"># Put this here to fix broken pipe from mod=
_perl (?)</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace">ProxyReceiveBufferSize 217088</font></div><div><font class=3D"Apple-st=
yle-span" face=3D"'courier new', monospace">ProxyIOBufferSize =A0 =
=A0 =A0217088</font></div>
<div><font class=3D"Apple-style-span" face=3D"'courier new', monosp=
ace"><br></font></div></div><div><br></div><div>Can anyone see the reason w=
hy my performance is being degraded significantly? Is this normal? Any sugg=
estions or recommendations are greatly appreciated. Thank you in advance, a=
nd please let me know if you need any more details in case i left them out.=
</div>
<div><br></div><div>Thanks!</div>jeffa<br>
</div>
--90e6ba4fc308eab2f4049c57d2ba--
