This is very strange.
Could it be that you have tied Hibernate SessionFactory creation to the
Visit object creation. In this case first attempt to access
Visit will take a long time especially if Hibernate configuration has
hbm2ddl set to create/validate DB schema.
Normally you would need only one Hibernate SessionFactory for all user
sessions.
Javier Sanchez wrote:
I am suffering the same problem on my current project (Tapestry 3.0.4,
Hibernate 2.1.8, Oracle 9iR2, JBoss 3.2.7, Tomcat 5.0). We have been
doing intensive testing on every thing for weeks without results.
Did you ever solve this problem? Any comments are welcome.
JAVIER SANCHEZ
Bogota, Colombia
On 9/3/05, Manoj Prakash <[EMAIL PROTECTED]> wrote:
We have been using tapestry for over 1.5 years now for our app and
recently we
have started performance testing of this app. There are some interesting
observations.
Background/Environment:
Server : P4 2.8 GHz,1 GB RAM, Windows xp, Tomcat 4.1.30, Tapestry 3.0
beta 4.
Clients : P4 XP/Win2k machines with 512 MB RAM, accessing the server
from
different network.
App: The first page of the app is a simplest login page, the html
template is
mostly static - has html form, refers a .css file, few images and input
validation script( using tapestry's support for validation). We create a
session ( by calling getVisit() ) on the login page itself before it is
rendered.
Problem:
One a new browser instance, this login page takes consistently 18 to 20
seconds to show up. Tomcat access log shows that it is taking upto 5
seconds
to process the login page request, another 5 seconds to process the
request
for validator.js, and almost negligible time to process the get
requests for
images and .css file. We are wondering why tomcat/tapestry is taking
5 seconds
to process the Get request for such a simple page.
To rule out the network and tomcat, and other factors for this
performance, we
added a similar static html file, and a similar .jsp file in our
webapp, and
both show up within 3-4 seconds. Tomcat log in those cases show that
it took
only milliseconds to process the get request for .html and .jsp file.
Any idea why this could be happening ? Is tapestry doing some heavy
initialization work when a session is created? ( View source of the
page in
browser has 0 millisecond at the bottom as the render time).
Thanks,
Manoj
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Thanks,
Konstantin Ignatyev
http://www.kgionline.com
PS: If this is a typical day on planet earth, humans will add fifteen million
tons of carbon to the atmosphere, destroy 115 square miles of tropical
rainforest, create seventy-two miles of desert, eliminate between forty to one
hundred species, erode seventy-one million tons of topsoil, add 2.700 tons of
CFCs to the stratosphere, and increase their population by 263.000
Bowers, C.A. The Culture of Denial:
Why the Environmental Movement Needs a Strategy for Reforming Universities and Public Schools.
New York: State University of New York Press, 1997: (4) (5) (p.206)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]