Reputation: 1133
My app is spending a lot of time (about 30% of all CPU) in /_ah/warmup
. Sounds like my app is not managing instances well! My app has little spikes but nothing major.
Why is GAE constantly spinning up these new instances when there are already old instances lying around? In the screenshot below, one instance is 5 seconds old, and another is 5 minutes old.
How can I improve this and reduce costs?
Upvotes: 0
Views: 119
Reputation: 2542
Java is known to be heavy on the start up. There are a few things to you can do to help but not eliminate the issue:
Load on startup. If you don't mind the initial calls to your site taking a little longer perhaps only loading the servlets you need.
Having more idle instances would also help.
Upvotes: 2