Why is initial tag library request slow?

M

Marcus Leon

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!
 
R

Roedy Green

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.
 
M

Marcus Leon

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.
 
R

Roedy Green

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top