How to resolve OutOfMemoryError with ImageIO plugins as the cause?

后端 未结 2 1815
悲&欢浪女
悲&欢浪女 2021-01-13 14:52

At work we have some tomcat servers running several webapps, about half of which have to do some image processing.

Before doing their image processing, these webapp

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 15:22

    Looks like a ugly memory leak to me, i can't guess where it is without looking the whole code, but i know what you should check very carefully.

    Possible causes:

    _Global Variable List, adding elements, never remove them.

    _Infinite/big loops, loading lots of elements to Lists, never remove them.

    Also it would help if you use a Java profiler, such as VisualVM

    If you provide more information in order to have a better idea of how it works I i may be able to improve my answer, there's nothing i can do without more information =)

    Hope it helps!

提交回复
热议问题