Understanding those pesky OOM exceptions
02 Feb 2008JVM Lies : The OutOfMemory Myth
It’s also been covered (with even more comments) over on TSS.
It’s certainly beneficial for a developer to have a basic understanding of Java’s approach to memory management. This post (and comments) does provide a simple overview and discusses some of the causes and gotchas for those ever annoying OutOfMemory exceptions.
If there’s one thing to take note of, it’s that not all memory problems can be solved by an increase in the heap allocation. So please don’t do that and just walk away, it’s never a one size fits all problem and will almost certainly come back to bite you.
(If you’re like me, I’m sure you all love a good PermGen-related OOM… uhh… maybe not.)