> -----Messaggio originale-----
> Da: Rainer Jung [mailto:[EMAIL PROTECTED]
> Inviato: venerdì 22 agosto 2008 12.15
> A: Tomcat Users List
> Oggetto: Re: Newer version of mod_jk much slower than 1.2.13
>
> Can you throw our the load balancer and retry with only one
> direct worker? That would be helpful.
>
> Also: please post your platform (type/version) and your JK
> directives (for Apache).
>
> The 7 seconds is by far to long for 50KB.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: [email protected] To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
I get rid of the balancer and set in apache configuration file:
JkMount /eltbinj/* ajp13w_01_01
With the 1.2.13 the result is obviously the same high speed (I unset the lang
for not italian (lucky) people):
[EMAIL PROTECTED] ~]# time wget -O /dev/null
http://elenco.comune.prato.it/eltbinj/servlet/ricercaelenco
--13:13:00-- http://elenco.comune.prato.it/eltbinj/servlet/ricercaelenco
=> `/dev/null'
Resolving elenco.comune.prato.it... 193.43.107.15
Connecting to elenco.comune.prato.it|193.43.107.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=>
] 53,048 --.--K/s
13:13:00 (630.19 KB/s) - `/dev/null' saved [53048]
real 0m0.168s
user 0m0.000s
sys 0m0.002s
With the 1.2.26 the result is the same:
[EMAIL PROTECTED] ~]# time wget -O /dev/null
http://elenco1.comune.prato.it/eltbinj/servlet/ricercaelenco
--13:14:46-- http://elenco1.comune.prato.it/eltbinj/servlet/ricercaelenco
=> `/dev/null'
Resolving elenco1.comune.prato.it... 193.43.107.14
Connecting to elenco1.comune.prato.it|193.43.107.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=>
] 53,048 7.36K/s
13:14:53 (7.35 KB/s) - `/dev/null' saved [53048]
real 0m7.113s
user 0m0.020s
sys 0m0.092s
So in conclusion, it is not a matter of load balancer.
However I get a bit further with tests: it seems the slowdown happens only when
tomcat is spending some time building the answer. The "ricercaelenco" servlet
perform a query on a database. I try pulling a generic file from tomcat and the
result are pretty the same:
[EMAIL PROTECTED] ~]# time wget -O /dev/null
http://elenco.comune.prato.it/eltbinj/htdocs/test.dat
--13:18:21-- http://elenco.comune.prato.it/eltbinj/htdocs/test.dat
=> `/dev/null'
Resolving elenco.comune.prato.it... 193.43.107.15
Connecting to elenco.comune.prato.it|193.43.107.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 102,400,000 (98M) [text/plain]
100%[==================================================================================================================>]
102,400,000 8.06M/s ETA 00:00
13:18:34 (7.53 MB/s) - `/dev/null' saved [102400000/102400000]
real 0m13.034s
user 0m0.107s
sys 0m0.448s
[EMAIL PROTECTED] ~]# time wget -O /dev/null
http://elenco1.comune.prato.it/eltbinj/htdocs/test.dat
--13:18:38-- http://elenco1.comune.prato.it/eltbinj/htdocs/test.dat
=> `/dev/null'
Resolving elenco1.comune.prato.it... 193.43.107.14
Connecting to elenco1.comune.prato.it|193.43.107.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 102,400,000 (98M) [text/plain]
100%[==================================================================================================================>]
102,400,000 6.88M/s ETA 00:00
13:18:52 (6.70 MB/s) - `/dev/null' saved [102400000/102400000]
real 0m14.601s
user 0m0.097s
sys 0m0.435s
About my environment, all is running on Redhat ES4 64bit on X86_64 platform.
There are two machine running "stock redhat" apache 2.0.52 and (now) one
machine running "stock apache.org" tomcat 5.5.26. Following the java options on
starting tomcat:
JAVA_OPTS="-Xms1024M -Xmx1024M -XX:MaxPermSize=512M
-Dcom.sun.management.jmxremote -XX:GCTimeRatio=99 -verbose:gc"
Leandro
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]