Open
Description
With the introduction of the metaspace replacing the perm gen space in java 8, the way I understand it, that now native memory outside of the heap is used for this area. Also it is configured to be unbounded by default, so if a classloader is leaky (main question is, can this happen, potentially by plugins?), we might not only go OOM with the VM, but with the whole operating system/container.
We might want to check if we can configure -XX:MaxMetaspaceSize
on startup. Maybe there are other tools like a leak detector (I've seen once on github, not sure how useful, seemed to be for servlets) or this is not a problem at all the way we do things.
Putting it up for discussion thus.