Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Why is initial tag library request slow?

Thread view: 
Marcus Leon - 02 Oct 2005 06:42 GMT
Hi, my first request to a JSP page using a tag library (Display Tag
Library) takes about 10-15 seconds and subsequent requests are fast.
Does anyone know why the first request is slow?

I don't believe the slowness is jsp compiling as we precompile and it
seems that it is working.  We're on Weblogic 8.1.  My CPU is revving
at 100% during this start up period.

Is the container just loading the classes or is there some init routine
running?  How can I debug this?

Thanks very much for the help!
Roedy Green - 02 Oct 2005 08:51 GMT
>Is the container just loading the classes or is there some init routine
>running?  How can I debug this?

If you have a java.exe command line you can get hold of, use the
-verbose option. You can then monitor classes loading.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Marcus Leon - 03 Oct 2005 15:22 GMT
Thanks Roedy!  I do see that on the first (and only) request the JVM is
loading a lot of classes.  Is there a way I can configure Weblogic to
load these classes at system start up?

The classes are mostly common classes (Jakarta Commons, log4j, etc) and
the tag library I am using (Display Tag Library).

Marcus.
Roedy Green - 03 Oct 2005 18:28 GMT
>Thanks Roedy!  I do see that on the first (and only) request the JVM is
>loading a lot of classes.  Is there a way I can configure Weblogic to
>load these classes at system start up?
there may be a special BEA command to do it, but if you ran a custom
servlet at startup that simply looked at the serialVersionUID of the
classes of interest or called some trivial static method, that would
load the classes.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.