- Newest
- Most votes
- Most comments
The credits dropped from 288 to 30 (not 0) because the instance was restarted using stop/start.
T2 Standard instances get 30 launch credits per vCPU at launch or start
and
For T2 Standard, when the instance is stopped, it loses all its accrued credits, and its credit balance is reset to zero. When it is restarted, it receives a new set of launch credits, and begins to accrue earned credits.
Documentation https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-standard-mode-concepts.html#launch-credits
answered 20 days ago
Based on the credit model for burstable instances, your observation is actually consistent with how the system works, though the documentation could be clearer about the metering granularity.
Here's what's happening:
Credit Spending Rate: The credit balance is calculated every 5 minutes, not every minute. The formula used is:
CPUCreditBalance = prior CPUCreditBalance + [Credits earned per hour * (5/60) - CPUCreditUsage]
This means credits are both earned and spent in 5-minute intervals. During those 5 minutes, if your instance bursts significantly, it can consume credits much faster than the 1-credit-per-minute theoretical maximum you calculated.
Why You Saw ~2 Credits/Minute: The CPUCreditUsage metric represents the total credits spent during a measurement period. Even though CloudWatch may show your CPUUtilization averaged at 30-45% over a 5-minute period, this average can mask brief, intense bursts. If your instance spiked to 100% CPU for portions of those 5 minutes (which aligns with your network traffic spike), it would consume credits during those bursts, and the CPUCreditUsage metric would reflect the total consumption across the entire interval.
The Network Spike Connection: The simultaneous spike in NetworkIn/NetworkOut suggests your instance was processing a significant workload that drove both CPU and network usage. This type of bursty workload is exactly what can deplete credits rapidly—the instance bursts above baseline during the intensive period, consuming accumulated credits.
What to Check:
- Look at your CPUUtilization at 1-minute granularity if available, rather than 5-minute averages, to see if there were sharper spikes
- Review application logs around that timestamp to identify what workload caused the burst
- Consider whether your workload regularly has these burst patterns
If your instance frequently depletes its credit balance, you may want to consider either switching to a larger burstable instance size (which earns credits faster) or moving to a non-burstable instance type like m, c, or r series that provides consistent baseline performance without credit constraints.
Sources
Troubleshoot high CPU utilization on my EC2 instance | AWS re:Post
Monitor CPU credits for burstable instances - Amazon Elastic Compute Cloud
Relevant content
asked a year ago
asked 2 years ago
asked 4 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago

If the instance used 2 credits per 5 minutes, it's not 288 per 5 minutes, as I see on the chart