tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: very slow class loading on initial JSP/servlet request after restart
Date Thu, 26 Feb 2009 17:50:07 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On 2/25/2009 4:42 AM, Mark Thomas wrote:
> Ok. To summarise when you include net.ims.jcms.* in your imports the
> page compiles quickly but takes ages to respond to the first request.
> 
> I wonder if this is related to loading a specific class in your library.
> Can you use a test JSP try and isolate which class(es) are causing the
> slow down?

At first I was tempted by the "class is loading forever" possibility,
but if the report is correct, merely adding "import net.ims.jcms.*" to
the JSP causes the problem... not actually using the classes. The
compilation (apparently) goes fast. It's the class loading that is very
slow.

You can import anything you want in a JSP (or even a .java file) but the
.class file only includes references to the classes actually used, so no
class loading would be triggered.

Sam: are you sure you're not /using/ those classes? Just importing them?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmm1k8ACgkQ9CaO5/Lv0PD9MgCfWdq67P0FAlP/+O+eeYIHd/Fm
D9kAn2NqWrEDaUKqSas8r0b8ukDrRdCN
=oE3C
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message