Changeset 7f2bd16


Ignore:
Timestamp:
Jul 16, 2016 4:08:34 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
37ebf04
Parents:
77014843
Message:

Plugins: Add exception for HSQLDB Timer in thread check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/PluginStarter.java

    r77014843 r7f2bd16  
    912912        // Plugins start before the eepsite, and will create the static Timer thread
    913913        // in RolloverFileOutputStream, which never stops. Don't count it.
     914        // Ditto HSQLDB Timer (jwebcache)
    914915        if (rv) {
    915916            Log log = ctx.logManager().getLog(PluginStarter.class);
     
    920921                if (activeThreads[i] != null) {
    921922                    String name = activeThreads[i].getName();
    922                     if (!"org.eclipse.jetty.util.RolloverFileOutputStream".equals(name))
     923                    if (!"org.eclipse.jetty.util.RolloverFileOutputStream".equals(name) &&
     924                        !name.startsWith("HSQLDB Timer"))
    923925                        notRollover = true;
    924926                    if (log.shouldLog(Log.DEBUG))
    925                         log.debug("Found " + activeThreads[i].getState() + " thread for " + pluginName + ": " + name);
     927                        log.debug("Found " + activeThreads[i].getState() + " thread " + name + " for " + pluginName + ": " + name);
    926928                }
    927929            }
Note: See TracChangeset for help on using the changeset viewer.