Faced a problem with Java going out of memory:permgen (Young/Tenured/Perm)
The deployment to Jboss succeeded, but when the system would start the app was going out of memory. This happened primarily because the app while initializing was invoking a JDBC call, and the drivers of JDBC were being loaded when a call was invoked – which primarily required more memory as class files related to JDBC drivers came into memory.
Permanent generation holds meta-data describing classes which are not part of JRE. for example classes and methods – applications with large code bases can quickly fill up this segment of heap which causes OutOfMemoryError.