Keith
Keith

Reputation: 1133

How to reduce cycles spent on /_ah/warmup

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?

app engine instance graph

instances

Upvotes: 0

Views: 119

Answers (1)

Ryan
Ryan

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:

Article

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

Related Questions