Status of 5.0.30

2005-01-20 Thread Gary Benson
Hi all,

What's the story behind 5.0.30?  Was it ever released?

Cheers,
Gary

[ [EMAIL PROTECTED] ][ I am Red Hat ][ http://inauspicious.org/ ]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Benchmarking gcj-built Tomcat

2003-10-17 Thread Gary Benson
Costin Manolache wrote:
 My benchmarks (  1 yr ago ) showed GCJ-based tomcat to be as fast
 as the IBM JDK1.3 ( the fastest VM at that time ). There were small
 differences under different loads - but the garbage collector seemed
 like the biggest factor ( GCJ performed worse on JSP pages where
 more objects were created if I remember correctly ).

Do you still have the benchmark code around?  I'd love to see it...

 The amazing thing was the startup time - almost 0 ( it felt more
 like apache :-).

It does start up fast :)  The compiler we're using has a funky
experimental optimiser (the same as used in the fast free eclipse
project), and the startup became perhaps twice as fast when I switched
from gcj 3.3.  It compiles JSPs pretty fast too.  That's one reason
why I'd like to benchmark it.

 BTW - GCJ is not a virtual machine and doesn't have a JIT - it is a
 ahead-of-time compiler, just like C and C++ compilers.

This may have been true a while back, but it isn't now -- gcj can
interpret bytecode just like any other JVM.  In my Tomcat package this
is exactly what it does when executing servlets (everything else is
built to native code).  You're right in that doesn't have a JIT
though.

 The biggest problem at that time was dynamic class loading. GCJ has
 a small interpretor and could load servlets - but the difference in
 performance between precompiled code and interpretor was
 significant.

It probably still is, though not as bad.  But it's not such a big
problem as it seems, as most of the calls that a given servlet makes
will be to native-compiled methods.

Gary

[ [EMAIL PROTECTED] ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Benchmarking gcj-built Tomcat

2003-10-14 Thread Gary Benson
Hi all,

I've been working on building Tomcat and its dependencies to native
code with gcj, and I'm interested to see how it compares against
Tomcat running under a 'normal' JVM.  Now, I'm well aware that
benchmarks are not a real-world indicator of performance, but I don't
have any particular web application to test and I was wondering if
anyone has a benchmarking suite that they can point me at.

In case you are interested in the gcj-built packages, they are
available at http://people.redhat.com/gbenson/naoko/ as source rpms
and as binary rpms compiled for Red Hat Linux 9.  Everything except
the webapps is compiled to native code; the webapps are basically
unmodified and are interpreted just as they would be with a normal JVM.

Thanks,
Gary

[ [EMAIL PROTECTED] ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Benchmarking gcj-built Tomcat

2003-10-14 Thread Gary Benson
Chad Johnson wrote:
 I can't help with the benchmark software but I've got a question for
 you.  Generally speaking, how well does the gcj bytecode interpreter
 perform?  Is it purely and interpreter or does it do some jit'ing?

As far as I know, it's just an interpreter, but I may be wrong.
However, any calls to native-code stuff will execute as native code so
it's perhaps not quite as bad as it may seem.

Gary

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[PATCH] mod_webapp tweak

2002-09-30 Thread Gary Benson

Hi,

I've tripped over the 'you need to set a ServerName before you
configure mod_webapp' a couple of times in the past so I had a go at
fixing it.  The stored hostname and port number are only used for
informational purposes, and the attached patch makes them optional
(they get replaced by '*' wherever used).

Cheers,
Gary

[ [EMAIL PROTECTED] ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]


Work without a ServerName being specified.

diff -ru mod_webapp-1.2.0_dev.orig/lib/pr_info.c mod_webapp-1.2.0_dev/lib/pr_info.c
--- mod_webapp-1.2.0_dev.orig/lib/pr_info.c Tue Sep 24 09:44:14 2002
+++ mod_webapp-1.2.0_dev/lib/pr_info.c  Mon Sep 30 11:54:58 2002
@@ -152,7 +152,10 @@
 wa_rprintf(r,  table width=\80%%\ border=\1\ cellspacing=\0\\n);
 wa_rprintf(r,   tr\n);
 wa_rprintf(r,td bgcolor=\#ff\ colspan=\2\\n);
-wa_rprintf(r, bHost %s:%d/b\n,h-name,h-port);
+if(h-port)
+   wa_rprintf(r, bHost %s:%d/b\n,h-name?h-name:*,h-port);
+else
+   wa_rprintf(r, bHost %s:*/b\n,h-name?h-name:*);
 wa_rprintf(r,/td\n);
 wa_rprintf(r,   /tr\n);
 wa_rflush(r);
diff -ru mod_webapp-1.2.0_dev.orig/lib/wa_config.c mod_webapp-1.2.0_dev/lib/wa_config.c
--- mod_webapp-1.2.0_dev.orig/lib/wa_config.c   Tue Sep 24 09:44:14 2002
+++ mod_webapp-1.2.0_dev/lib/wa_config.cMon Sep 30 11:51:21 2002
@@ -109,8 +109,7 @@
 
 /* Check parameters */
 if (h==NULL) return(Invalid virtual host storage location);
-if (n==NULL) return(Invalid virtual host name);
-if (p1) return(Invalid port number (p1) No \Port\ statement found);
+if (p0) return(Invalid port number (p1));
 if (p65535) return(Invalid port number (p65535));
 
 /* Allocate some memory */
@@ -118,7 +117,7 @@
 if (host==NULL) return(Cannot allocate memory);
 
 /* Set up parameters */
-host-name=apr_pstrdup(wa_pool,n);
+host-name=n?apr_pstrdup(wa_pool,n):NULL;
 host-port=p;
 host-apps=NULL;
 
diff -ru mod_webapp-1.2.0_dev.orig/lib/wa_main.c mod_webapp-1.2.0_dev/lib/wa_main.c
--- mod_webapp-1.2.0_dev.orig/lib/wa_main.c Tue Sep 24 09:44:14 2002
+++ mod_webapp-1.2.0_dev/lib/wa_main.c  Mon Sep 30 11:53:32 2002
@@ -189,7 +189,7 @@
 
 /* Done */
 wa_debug(WA_MARK,Application %s deployed for http://%s:%d%s (Conn: %s),
- a-name,h-name,h-port,a-rpth,c-name);
+ a-name,h-name?h-name:*,h-port,a-rpth,c-name);
 return(NULL);
 }
 



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]