Performance Troubleshooting

Identify and resolve performance issues with your applications.

High CPU Usage

CPU Consistently at 100%

If CPU usage is consistently at or near 100%, your application may be under-resourced.

Solutions:

  • Upgrade to a deployment package with more CPU cores
  • Optimize application code for better CPU efficiency
  • Check for infinite loops or CPU-intensive operations
  • Increase min pods to distribute load across more containers

High Memory Usage

Memory Approaching Limit

High memory usage can cause pods to be killed by Kubernetes (OOM - Out of Memory).

Solutions:

  • Upgrade to a package with more memory
  • Identify and fix memory leaks in your application
  • Reduce data caching or buffer sizes
  • Monitor memory usage trends to identify spikes

Slow Response Times

If your application is responding slowly:

Check Resource Usage

  • Review CPU and Memory charts for bottlenecks
  • Check if pods are hitting resource limits
  • Monitor pod count - too few pods may cause slow responses under load

Application-Level Issues

  • Review application logs for slow database queries
  • Check for N+1 query problems
  • Verify database connection pooling is configured
  • Check external API call performance

Scaling Issues

  • Increase max pods to handle traffic spikes
  • Adjust min pods for baseline capacity
  • Review auto-scaling behavior in Resource Usage charts

Performance Best Practices

Code Optimization

  • Optimize database queries
  • Implement caching strategies
  • Use connection pooling

Resource Management

  • Right-size your deployment package
  • Configure appropriate scaling limits
  • Monitor and adjust based on trends