Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Because the Classloader (and the Class objects it loaded) cannot be recycled. They are stored in the permanent heap generation by the JVM, and when you redepoy a new class loader is created, which loads another copy of all these classes. This can cause OufOfMemoryErrors eventually.