I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 7f2bd164 authored by zzz's avatar zzz
Browse files

Plugins: Add exception for HSQLDB Timer in thread check

parent 77014843
No related branches found
No related tags found
No related merge requests found
...@@ -911,6 +911,7 @@ public class PluginStarter implements Runnable { ...@@ -911,6 +911,7 @@ public class PluginStarter implements Runnable {
// Plugins start before the eepsite, and will create the static Timer thread // Plugins start before the eepsite, and will create the static Timer thread
// in RolloverFileOutputStream, which never stops. Don't count it. // in RolloverFileOutputStream, which never stops. Don't count it.
// Ditto HSQLDB Timer (jwebcache)
if (rv) { if (rv) {
Log log = ctx.logManager().getLog(PluginStarter.class); Log log = ctx.logManager().getLog(PluginStarter.class);
Thread[] activeThreads = new Thread[128]; Thread[] activeThreads = new Thread[128];
...@@ -919,10 +920,11 @@ public class PluginStarter implements Runnable { ...@@ -919,10 +920,11 @@ public class PluginStarter implements Runnable {
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
if (activeThreads[i] != null) { if (activeThreads[i] != null) {
String name = activeThreads[i].getName(); String name = activeThreads[i].getName();
if (!"org.eclipse.jetty.util.RolloverFileOutputStream".equals(name)) if (!"org.eclipse.jetty.util.RolloverFileOutputStream".equals(name) &&
!name.startsWith("HSQLDB Timer"))
notRollover = true; notRollover = true;
if (log.shouldLog(Log.DEBUG)) if (log.shouldLog(Log.DEBUG))
log.debug("Found " + activeThreads[i].getState() + " thread for " + pluginName + ": " + name); log.debug("Found " + activeThreads[i].getState() + " thread " + name + " for " + pluginName + ": " + name);
} }
} }
rv = notRollover; rv = notRollover;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment