Hi all:

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-
restart 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 --
   request.count = Counter.createOrIncrement("JspTest", 1);  // using
JPA to store a counter
   forward '/test.jsp';

-- Test JSP --
<%...@page contentType="text/html;charset=UTF-8" language="java"
isELIgnored="false" %>
<%...@include file="/includes/header.jsp"%>
<link rel="stylesheet" type="text/css" media="screen, print" href="css/
list.css" />
</head>
<body>
<h1>
  <img src="img/icon_memo.png" align="absmiddle"/>
  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 [...].<stdout>: com.liyue.web.Test spend : 8341
ms  --->> SPEND 8sec FOR INIT AND EXEC
...
06-02 10:28PM 39.401 [...].<stdout>: com.liyue.web.Test spend : 56 ms
--->> VERY GOOD PERFORMANCE
...
06-02 10:30PM 03.502 [...].<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 [...].<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 write lots of code for GAE, if you have any idea could
help us please tell me.

THANKS VERY VERY MUCH in advance !!!

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to