当前位置:首页>>OufOfMemoryErrors

OufOfMemoryErrors

  • JVM |Web
  • 2022-07-16 08:46:37
Why does the memory usage increase when I redeploy a web application?

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.

猜你喜欢