Hi,

I'm having problems with my web application initialization process and
the 30s per request limit. So I wonder what does everybody else do in
this situation, because I think it should be quite common to everyone
using GAE with Spring.

First of all, sometimes, the delay between the request being accepted
by the server, and the application being called sums up to several
seconds.
For example, here is a log, in which the application is being started,
and the GAE waits 16 seconds to start my application from the moment
the request has been received

03-12 07:47PM 22.698 / 500 30232ms 23651cpu_ms 65api_cpu_ms 0kb
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe)
58.61.164.40 - - [12/Mar/2010:19:47:52 -0800] "GET / HTTP/1.1" 500 0 -
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1),gzip(gfe),gzip(gfe)" "XXXX"
I 03-12 07:47PM 38.041
javax.servlet.ServletContext log: Initializing Spring root WebApplicationContext

So, that leaves my application 15s to initialize and handle the
request. Something easy in my local computer, but rather difficult in
GAE, don't know why.

Is there a way to improve this? Why does it happen? Why is so big the
delay?? It bothers me, in other situations too; when I wan to improve
my app total request/second capability. I have, on one side the 30
simultaneous request limit, and the time a request takes to complete.



My second concern, is how to improve spring startup time. We tried
setting default-lazy-init=true; also we have 2 servlets, and we set
web.xml: <load-on-startup> to false. But we are still receiving the
DeadlineExceededException sometimes. Any ideas or strategies to
improve the startup time??

Finally, I was wondering if it is possible to handle within spring the
DeadlineExceededException, and show a nicer error page. Is it enough
to use the Spring HandlerExceptionResolver mechanism? Or maybe GAE
won't give enough time to finish the exception processing?

Any help or ideas will be greatly appreciated!!!
Thanks in advance

Mariano

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to