Our project is running on the Google App Engine standard environment with auto-scaling configured to automatic. Warm up requests are enabled in the app and we are using Google Endpoints service. However, I am facing latency issue while scaling up. For example, it's taking more than 50 seconds for the API. From the application log I can notice that loading the AppEngineWebAppContext itself is taking upto 52 seconds. How can I reduce the latency during scaling?
Environment: Java 8, Instance type: F4_1G