Hi, Well, that means some of the connections were not closed. H2 has no way of knowing by itself that a connection is no longer needed.
> Does H2 start this thread as non-daemon perhaps? No, H2 uses daemon threads. The database also uses a shutdown hook, to close all forgotten open connection when calling System.exit. > And yes if I delete the lock.db file it is recreated. I guess by H2? Yes, if the connections are not closed. > How can this be resolved? I am stuck now. Could you please help me? If you use a connection pool, you need to ensure the connection pool is disposed, so that all connections are closed. You need to check how and when the connection pool disposes connections. As an alternative, you could use another connection pool, or no connection pool at all. If you have only one application that uses the database, then you could instantiate the connection pool within the web application (open the connection pool when the web application is started, and dispose it when it is stopped). Regards, Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to h2-database@googlegroups.com. To unsubscribe from this group, send email to h2-database+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.