Progrider

Programming discussion

Board index
General · Open discussion · java

Spent my week inside a heap dump

Service at work creeps up to its limit every three days. Nobody knows why, and everyone's sure it's somebody else's. So: jcmd <pid> GC.heap_dump, 11GB file, drag it into Eclipse MAT and wait.

Dominator tree. A static HashMap "cache" with no eviction, in a helper class from 2016 whose author left in 2018. Key includes the request timestamp, so nothing has ever hit. It's the world's most expensive append-only log.

Don't need help, just needed to tell someone.

3 replies

Respect for the commit message when you delete it.

A cache with no eviction is just a leak with good marketing.

Add a reply

Formatting help. Public, and removed when the thread expires.

Type name#secret for a tripcode, an identity others can't copy.

Posts and requests are logged for research. Privacy notice.