Liste des Groupes | Revenir à co vms |
In article <vd6dh4$nrif$1@dont-email.me>,With static content yes.
Arne Vajhøj <arne@vajhoej.dk> wrote:On 9/27/2024 9:18 AM, Craig A. Berry wrote:Almost certainly not; this is an IO bound application, not CPUThe only thing I can think of that hasn't already been mentioned>
is that Tomcat code is JIT-compiled, which is likely to be pretty good,
optimized code, whereas Apache is probably either cross-compiled or
native-compiled with an early enough field test compiler that there are
no optimizations.
That is a possible explanation.
>
But the difference in numbers are crazy big.
>
Apache getting a static text file with 2 bytes: 22 req/sec
>
Tomcat with Quercus and PHP getting data out of a MySQL database on
Windows and outputting HTML: over 200 req/sec
>
Tomcat using JSP (which get triple compiled) getting data out of a MySQL
database on Windows (with db connection pool) and outputting HTML: over
600 req/sec.
>
My gut feeling is that cross-compilation may contribute to but not
fully explain the difference.
bound.
My strong suspicion is that what you're seeing is the result ofYes.
a serious impedance mismatch between the multi-process model
Apache was written to use, and its realization using the event
signalling infrastructure on VMS.
Again, I would try to establish a baseline. Cut out the MPMMPM is the core of the server.
stuff as much as you can;
ideally, see what kind of numbers youIt increases but not enough.
can get fetching your text file from a single Apache process.
Simply adding more threads or worker processes is unlikely to
significantly increase performance, and indeed the numbers you
posted are typical of performance collapse one usually sees due
to some kind of contention bottleneck.
Some things to consider: are you creating a new networkYes. Having the load test program keep connections alive
connection for each incoming request?
It's possible that that'sThat is the typical web server model.
hitting a single listener, which is then trying to dispatch the
connection to an available worker,
using some mechanism that isIt is a good question how Apache on VMS is actually doing that.
slow on VMS.
Is there a profiler available? If you can narrowOr I take another path.
down where it's spending its time, that'd provide a huge clue.
Les messages affichés proviennent d'usenet.