tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <>
Subject Re: Performance problem with Tomcat?
Date Thu, 15 Feb 2007 12:14:41 GMT
En l'instant précis du 02/15/07 13:02, Michal Glowacki s'exprimait en
ces termes:
> Thank you for your fast response!
>> Which version of EJB. Local EJB of remote EJB? With or without security?
>> EJBs have the bad reputation to be slow, and cubersome to develop
>> (probably improved in version 3, this was an aim at sun)
> It's EJB 2.1 (JBoss 4). I'm using remote interfaces everywhere, that's
> what I read in the books - local interfaces are used very seldom. For
> read-only data I'm creating DAOs, but it doesn't improves performance
> significantly.
Remote EJBs means network operations, serialization, and other slow stuffs.
>> 1) JSF servlet startup, that may take a few seconds and occurs at first
>> jsf operation after webapp startup
> Ok, that means that I can experience latency during development as I
> redeploy app very often, but when finished and deployed to target
> server it should not happen?
JSF startup prints out message in console, so you should notice this
part when it occurs.
Just try to access same page several times and see it it's only the
first time you get the slowness. It's it's the case, probably due to
initialization steps. Those occur only once after application startup.
>> 2) JSP compilation, which occurs if your jsp did change
> It's deployed as war file, probably extracted to
> jboss/server/default/temp directory, and I do not change there
> anything. I believe this is not the cause as I'm changing JSPs only in
> IDE before deploy.
After redeploy, JSPs will need to be recompiled by server as their
timestamps did change.
>> 3) JSP initialisation, which occur during first access of JSP, after
>> compilation, like any other servlet. Depending on how much taglibs are
>> referenced, and complexity of JSP, this can take a bit of time too.
> Like 1)
>> 4) The operations you do inside your JSF backing beans
> Yes, but this I can measure and reduce, this part is understable for me.
> Regards,
> Michal
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message