How to prevent a memory leak in quartz

后端 未结 4 676
不知归路
不知归路 2021-02-05 20:30

I\'m using quartz in my project. My web application has apparently caused a memory leak when it stops, the error is :

SEVERE: A web application appears to have          


        
4条回答
  •  执笔经年
    2021-02-05 21:12

    I see you initialize two instances... - first through org.quartz.ee.servlet.QuartzInitializerServlet - second through org.quartz.ee.servlet.QuartzInitializerListener

    Either remove QuartzInitializerServlet or QuartzInitializerListener (and also corresponding parameters)... If you want to have multiple instances (for specific reasons), go with the QuartzInitializerServlet (and do not forget to use different per instance)

提交回复
热议问题