Hot Deployment Exhausts the PermGen or Metaspace when the Application Includes Database Drivers
Issue
- We're bundling our database driver in our application's WEB-INF/lib directory. After a couple hot deployments of this application, JBoss throws an "OutOfMemoryError: PermGen space".
- The heap dump shows classloaders are building up. The leaked classloaders trace back to the driver classes stored in the
writeDrivers
Vector of thejava.sql.DriverManager
system class.
Environment
- JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.