tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Kilbride" <j...@kilbride.com>
Subject Re: newbie
Date Thu, 19 Apr 2001 03:00:49 GMT
It depends on your system. If you're running Win98 with 64MB of RAM, and
your servlet has a lot of initialization code, then it might make sense.
Remember, your servlets aren't loaded and initialized until they are called
for the first time. If you want to avoid this type of delay, use the
"load-on-startup" tag inside your "servlet" tag in your web.xml file. There
are examples of this in the main web.xml file in the TOMCAT_HOME/conf
directory. This will load and initialize your servlet when Tomcat starts up
and avoid the first hit delay syndrome.

Thanks,
--jeff

----- Original Message -----
From: "Chris Nolte" <cgnolte@pacbell.net>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, April 18, 2001 6:46 PM
Subject: Re: newbie


> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
>
> ----- Original Message -----
> From: Anne Dirkse <aldirkse@uswest.net>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, April 18, 2001 6:40 PM
> Subject: Re: newbie
>
>
> > Congratulations -- Looks like you set it up correctly.
> > The lag that you notice the first time you visit a jsp is normal.
> > What is happening is that JSP is being compiled into a servlet (which is
> > what JSPs do)
> > That will only happen the first time you access the JSP (unless you
> > modify the source.)
> > Anne
> >
> > wa2n@softhome.net wrote:
> > >
> > > Hi .. I'm newbie in jakarta (tomcat)
> > >
> > > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > > but I found problems
> > > When FIRST time loading JSP,
> > > e.g lynx http://localhost/examples
> > > It's take a long time ( half a minute) to loading fisrt jsp page, but
> after
> > > that evertyng goes fine ???
> > >
> > > My conf just follow from doc in jakarta.apache.org
> > >
> > > Any body wanna help me ?
>


Mime
View raw message