I bet you have a permgen leak in your application

by Nikita Salnikov- Tarnovski, Plumbr 

Friday, 14 June 2013 15:00 @ Room 2

I will present a fairly simple web application, written using standard Java frameworks and libraries. What makes this application special is that it contains ten different Permanent Generation memory leaks. They all are pretty standard, nothing obscure or weird. Each of them has a high chance to exist in your application as well. In fact the chances are so high I can bet a beer on the outcome.
I will describe each of these leaks explaining why this particular code leaks class loaders. I will also reason, if this was a deliberate technical decision and/or the implementation was just sloppy. I will also show how to fix it.