WebSphere interview question

The server's memory grows after every application redeploy until it runs out of memory. Why?

Scenario

Members can save this page, take notes and track progress. See membership · Sign in

Summary

A class loader leak: something outside the application (a server thread, a static field in a shared library, a JDBC driver registered with DriverManager, a ThreadLocal on a pooled thread, an unstopped timer) still references the old application's class loader, so none of the old classes can be garbage collected. Each redeploy adds a full copy.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More WebSphere questions

← All WebSphere questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake