Hot Deployment Exhausts the PermGen 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
writeDriversVector of thejava.sql.DriverManagersystem class.
Environment
- JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
