while user inactivity of 2mins getting info “This

2019-03-03 18:28发布

I deployed my application on GAE using java and GWT. when i login to my app using my app id sample.sampleappId.appspot.com. In my application there is lots of form when i filling the form like customer registration then if i filled half of form and i stop filling the form and after 2, 3 minutes i continue remaining form filling then i click on save button then in logger i am getting Info like

"This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application."

I am facing this lots of time. Why GAE throwing this info.

My appengine-web.xml:-

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>sampleappId</application>
  <version>25</version>

  <!--
    Allows App Engine to send multiple requests to one instance in parallel:
  -->
  <threadsafe>true</threadsafe>
  <instance-class>F4_1G</instance-class>


  <!-- Configure serving/caching of GWT files -->
  <static-files>
    <include path="**" />

    <!-- The following line requires App Engine 1.3.2 SDK -->
    <include path="**.nocache.*" expiration="0s" />

    <include path="**.cache.*" expiration="365d" />
    <exclude path="**.gwt.rpc" />
  </static-files>
</appengine-web-app>

any solution? any help?

1条回答
ゆ 、 Hurt°
2楼-- · 2019-03-03 18:59

These are perfectly normal INFO level logs (not WARNING or ERROR levels) from the GAE infra, indicating that the respective request triggered lauching of a new GAE Instance.

You can read more about launcing of new instances in the Scaling dynamic instances doc.

It's also possible that the previous instance life was cut short for various possible reasons. Check you app's logs in the developer console to see if it's indeed the case and, if so, get details. These you may want/need to address.

I just realized another possibility when I saw your other question How to call my app url from google app engine.

If your app makes requests to itself directly from within request handlers you can create infinite recursion loops, forcing GAE to spawn a new instance for each such request. Nothing may show up in the logs since GAE logs a request only after it serves it (at least in the python sandbox). Unless you specifically create logs before making the recursive calls. Eventually the instances blocked waiting for responses (which will never come due to the infinite recursion) will be killed as they'll exceed the request deadline.

查看更多
登录 后发表回答