@ -236,7 +232,6 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
publicdoubletotalQPM=0d;
publicTreeMap<String,String>clusterhashes;// map of peerhash(String)/alternative-local-address as ip:port or only ip (String) or null if address in seed should be used
MemoryControl.gc(10000,"plasmaSwitchboard, help for profiler");// help for profiler - thq
deployThread(plasmaSwitchboardConstants.CLEANUP,"Cleanup","simple cleaning process for monitoring information",null,
newserverInstantBusyThread(this,plasmaSwitchboardConstants.CLEANUP_METHOD_START,plasmaSwitchboardConstants.CLEANUP_METHOD_JOBCOUNT,plasmaSwitchboardConstants.CLEANUP_METHOD_FREEMEM),600000);// all 5 Minutes, wait 10 minutes until first run
@ -1089,7 +1074,6 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
publicvoidclose(){
log.logConfig("SWITCHBOARD SHUTDOWN STEP 1: sending termination signal to managed threads:");
serverProfiling.stopSystemProfiling();
moreMemory.cancel();
terminateAllThreads(true);
log.logConfig("SWITCHBOARD SHUTDOWN STEP 2: sending termination signal to threaded indexing");
// closing all still running db importer jobs
@ -1150,14 +1134,10 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
publicvoiddeQueueFreeMem(){
// flush some entries from the RAM cache
webIndex.flushCacheFor(3000);
webIndex.flushCacheFor(5000);
// empty some caches
webIndex.clearCache();
plasmaSearchEvent.cleanupEvents(true);
// adopt maximum cache size to current size to prevent that further OutOfMemoryErrors occur