I have a service that shuts down the Derby database after it is done using it. This is because on Linux I was getting errors "too many open files" unless I did this - I use a lot of databases, and when all of them are booted it starts using up too many resources.
But now my problem is that every time I shut down a DB, and every time I boot a DB, it adds a message to the derby.log file, and over time the log file grows and grows. Is there any way to silence these messages? Here is an example: ---------------------------------------------------------------- 2010-05-10 20:35:55.703 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance a816c00e-0128-83ee-5a69-00002248f366 on database directory C:\Vontu\Protect\scan\incremental_index\MONITOR_TARGET_11 Database Class Loader started - derby.database.classpath='' 2010-05-10 20:35:56.172 GMT: Shutting down instance a816c00e-0128-83ee-5a69-00002248f366 ---------------------------------------------------------------- ---------------------------------------------------------------- 2010-05-10 20:35:56.188 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance 6839c016-0128-83ee-5a69-00002248f366 on database directory C:\Vontu\Protect\scan\incremental_index\MONITOR_TARGET_12 Database Class Loader started - derby.database.classpath='' 2010-05-10 20:35:56.235 GMT: Shutting down instance 6839c016-0128-83ee-5a69-00002248f366 ---------------------------------------------------------------- ---------------------------------------------------------------- 2010-05-10 20:35:56.235 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance 286cc01e-0128-83ee-5a69-00002248f366 on database directory C:\Vontu\Protect\scan\incremental_index\MONITOR_TARGET_11 Database Class Loader started - derby.database.classpath='' 2010-05-10 20:35:56.282 GMT: Shutting down instance 286cc01e-0128-83ee-5a69-00002248f366 ---------------------------------------------------------------- ---------------------------------------------------------------- 2010-05-10 20:35:56.297 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance e8afc026-0128-83ee-5a69-00002248f366 on database directory C:\Vontu\Protect\scan\incremental_index\MONITOR_TARGET_12 Database Class Loader started - derby.database.classpath='' 2010-05-10 20:35:56.344 GMT: Shutting down instance e8afc026-0128-83ee-5a69-00002248f366 ---------------------------------------------------------------- -- David W. Van Couvering http://www.linkedin.com/in/davidvc http://davidvancouvering.blogspot.com http://twitter.com/dcouvering
