do some extra sleep while running low on memory

(1 sec. per outofmemoryCycle)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7879 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
sixcooler 13 years ago
parent 6361f1d875
commit 411ed159f8

@ -198,9 +198,8 @@ public abstract class AbstractBusyThread extends AbstractThread implements BusyT
// do a clean-up
this.freemem();
// sleep a while
ratz(this.idlePause);
ratz(this.idlePause + 1000*(outofmemoryCycles++));
idletime += System.currentTimeMillis() - timestamp;
outofmemoryCycles++;
}
}
this.close();

Loading…
Cancel
Save