Performance Flashcards
1
Q
General OutOfMemoryCause
A
General OutOfMemoryCause
- Memory leak
- Memory Over Consumption
How to Investigate where is wrong?
- attach Jprofiler - the ones survive most generations/occupy most memory
- take memory dump
- XX heapdumpuro memoryerror I-XXheapdumpurofmemoryerrorPath
Strategy to resolve?
- NFT stress testing for application
- Bug - equals() not overriden
- Using batch rather than load everything in one go
- Trade-off between re-compute and caching (Keep only necessary data in caching, most costly to compute, long SQL loading)
- Increase JVM memory
Object allocate rate issue?
Latency - how long to process 1 request
Throughput - how many request my app can handle at peak time