简体   繁体   中英

Extremely slow GAE java response time

I'm hosting a java app app on app engine, or some reason i see that from today the response times are extremely slow - 10kms + !!! the gae status page shows everything is ok, Does anyone have an answer or similar experience ?

Second issue, i see that many request starts only a few seconds after it has been received, there is a delay in executing the request, does anyone know how i can fix it ?

ps I changed my instances from f1 to f2 to see if maybe it will help but the result is the same.

Thank you

The GAE Google group is likely still the best place to ask questions like this.

Could it be that you are just seeing an increased number of warmup requests ? In this case going from F1 to F2 will not make a huge difference. Depending on your application instance startup can be reduced by changing the instance class. But this change alone will not reduce the time to a more reasonable response time of ~1 second.

The following best practices allow you to reduce the duration of loading requests:

  • Load only the code needed for startup.
  • Access the disk as little as possible.
  • In some cases, loading code from a zip or jar file is faster than loading from many separate files.

You can also try to add a few resident instances . The GAE scheduler will then put extra traffic on resident instances and launch new dynamic instances in the background. Since residents are started ahead of time this will hide some latency from users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM