5 Replies Latest reply on Jun 6, 2012 3:01 AM by Galder Zamarreño

    how to use shutdownHookBehavior

    dex chen Novice

      There is 3 options for shutdownHookBehavior (default, register, dont_register). which one I should use? or what are the differences of those options?

       

      I need to properly shutdown H2 db when I stop the application. I saw a lot of the following SEVER logs in catalina.out when I stop the application:

       

      SEVERE: The web application [] appears to have started a thread named [H2 File Lock Watchdog /test/data/user_10.200.22.22/UserProfile.lock.db] but has failed to stop it. This is very likely to create a memory leak.