From 13f013f64a4bc815759e820fb72c3f85bc268329 Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 17 May 2015 06:21:12 +0200 Subject: [PATCH] Limit extra sleep of BusyThread on LowMemCycle --- source/net/yacy/kelondro/workflow/AbstractBusyThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/workflow/AbstractBusyThread.java b/source/net/yacy/kelondro/workflow/AbstractBusyThread.java index de15a0d80..898bcd435 100644 --- a/source/net/yacy/kelondro/workflow/AbstractBusyThread.java +++ b/source/net/yacy/kelondro/workflow/AbstractBusyThread.java @@ -252,7 +252,7 @@ public abstract class AbstractBusyThread extends AbstractThread implements BusyT // do a clean-up this.freemem(); // sleep a while - ratz(this.idlePause + 1000*(outofmemoryCycles++)); + ratz(this.idlePause + 1000*(outofmemoryCycles++ % 0x0F)); // limit extra sleep time (oomCycles can grow big over time) idletime += System.currentTimeMillis() - timestamp; } }