Hot Deployment Exhausts the PermGen when the Application Includes Database Drivers

Solution Verified - Updated -

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 the java.sql.DriverManager system 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.