@ -2015,6 +2015,25 @@ public final class Switchboard extends serverSwitch {
// do nothing
}
publicstaticvoidclearCaches(){
// flush caches in used libraries
pdfParser.clean_up_idiotic_PDFParser_font_cache_which_eats_up_tons_of_megabytes();// eats up megabytes, see http://markmail.org/thread/quk5odee4hbsauhu
Digest.cleanup();// don't let caches become permanent memory leaks
}
publicintcleanupJobSize(){
intc=1;// "es gibt immer was zu tun"
if((this.crawlQueues.delegatedURL.size()>1000)){
@ -2040,21 +2059,7 @@ public final class Switchboard extends serverSwitch {
ConcurrentLog.ensureWorkerIsRunning();
try{
// flush caches in used libraries
pdfParser.clean_up_idiotic_PDFParser_font_cache_which_eats_up_tons_of_megabytes();// eats up megabytes, see http://markmail.org/thread/quk5odee4hbsauhu