File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes GAE Auto Restarting Every 30 to 60 seconds. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GAE Auto Restarting Every 30 to 60 seconds." Watch "GAE Auto Restarting Every 30 to 60 seconds." New topic
Author

GAE Auto Restarting Every 30 to 60 seconds.

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1


Howdy all. I wrote a little article on Google Guice at TheServerSide.com, and a user posted the following questions about the google app engine. I know this is the GWT forum, but I'm assuming the people with the big brains in here might know a thing or two about GAE as well. Here's the question. Let me know if you have any insight:


******************

We're using GAE to develop our project, but I found I have a performance issue, when checking the logs I found the GAE will auto- restarting every 30-60 sec.

Someone tell me this's because if the web app wasn't used much, GAE will dispose the instances, and after that made a load request to spin up a new VM and servlet container. So I write a very simple testing for confirm this:

-- Test Servlet -- // using JPA to store a counterrequest.count = Counter.createOrIncrement("JspTest", 1);
forward '/test.jsp';

-- Test JSP --
<%@include file="/includes/header.jsp"%>
</head>
<body>
<h1>
Count: ${count} <!-- GET THE COUNT FROM REQUEST FOR VIEW -->
</h1>
<%@include file="/includes/footer.jsp"%>

-- Log Messages --
06-02 10:27PM 57.036 com.liyue.web.ContextListener contextInitialized: Web context inited. --->> FIRST REQUEST
06-02 10:27PM 58.036 javax.servlet.ServletContext log: Action servlet initialized.
06-02 10:28PM 06.379 http://....<stdout>: com.liyue.web.Test spend : 8341 ms --->> SPEND 8sec FOR INIT AND EXEC ...
06-02 10:28PM 39.401 http://....<stdout>: com.liyue.web.Test spend : 56 ms --->> VERY GOOD PERFORMANCE ...
06-02 10:30PM 03.502 http://....<stdout>: com.liyue.web.Test spend : 60 ms --->> VERY GOOD PERFORMANCE ...
06-02 10:32PM 52.688 com.liyue.web.ContextListener contextInitialized: Web context inited. --->> AUTO-RELOAD !!!
06-02 10:32PM 53.636 javax.servlet.ServletContext log: Action servlet initialized.
06-02 10:33PM 01.669 http://....<stdout>: com.liyue.web.Test spend : 8032 ms --->> VERY POOR PERFORMANCE ...

I have no idea for how to solve this issue, but this may make us give up using GAE, because our boss and customers couldn't accept this poor performace. But we have wrote lots of code for GAE, if you have any idea could help us please tell me.


http://code.google.com/p/googleappengine/issues/detail?id=2931 --->> PLEASE STAR IT !!

***********************
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GAE Auto Restarting Every 30 to 60 seconds.