Anthony Mills wrote:
> 
> Hello,
> 
> I am developing a web site using JSP and Cocoon 2.  I am running two tomcat
> web servers (3.2 and 4.0beta) on the same box at the same time.  I have a
> Pentium III 450 with 192mb ram.  I have noticed a few things.  First, it
> takes a little while to start, about 20 seconds.  A page take about 5
> seconds to load the first time.  After that, I am more limited by my
> connection (128kbps up) than I am by my web pages.  The pages come back
> within seconds.  I have JSPs being run through Cocoon 2; I assume that xsp
> would have similar speeds.  Keep in mind this is not a scientific
> measurement, just what I "notice".  Also, both web server are running about
> 34mb, with little interaction so far.  One thing to consider when deploying
> your app.  You can precompiled your jsp/xsp pages.  This would speed things
> up considerably.


The first access is from the Sitemap compiling.  It and the XSP pages can be
precompiled.  Cocoon takes roughly 15-20 seconds to start up mainly because of
the number of managed resources it is controlling, and because of the compiled
sitemap.  If you make Cocoon load on startup then most of the initialization
will have been done before the first request.

5 seconds is about right for an XSP page.

Keep in mind that XSP is a better match than JSP for Cocoon--there is less
translation and parsing that has to happen.  By doing that you will shave off
a few milliseconds per request (10-50ms depending on size of information).

> 
> Hope this helps,
> 
> Anthony Mills
> 
> ----- Original Message -----
> From: "java guru" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 20, 2001 8:33 AM
> Subject: performance inquiry
> 
> > Hi.,
> >   I am begining of developing a
> > standalone/networked/web application. But need to
> > decide what to use. C2 attracted be 'coz of many cool
> > features i might use in the future..
> >
> > But performance issues scares me.... I need advice..
> >
> > The application need to run standalone or networked
> > like web app...Considering this..
> >
> > 1. Is it better to do with servlet and jsp: In this
> > case i have problem with connection pooling and o/r
> > mapping to database
> >
> > 2. Is it better to use xml stuff with c2: In this i
> > fear for performance. I fear it might demand high end
> > configuration user systems compared to no1..
> >
> > Please advice
> > thanks
> >
> > ____________________________________________________________
> > Do You Yahoo!?
> > For regular News updates go to http://in.news.yahoo.com
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

S/MIME Cryptographic Signature

Reply via email to