ref 7642:Portlet accounting-manager-1-6-0 requires 50 percent of VM CPU since startup steadily
https://support.d4science.org/issues/7642 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/admin/accounting-manager@146266 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7004cf1568
commit
3883f2e75d
|
@ -34,6 +34,8 @@ import org.slf4j.LoggerFactory;
|
|||
*/
|
||||
public class AccountingClientDaemon implements Runnable {
|
||||
|
||||
|
||||
|
||||
private static Logger logger = LoggerFactory
|
||||
.getLogger(AccountingClientDaemon.class);
|
||||
|
||||
|
@ -126,6 +128,12 @@ public class AccountingClientDaemon implements Runnable {
|
|||
}
|
||||
tasks.removeAll(dones);
|
||||
|
||||
} else {
|
||||
try {
|
||||
Thread.sleep(Constants.DAEMON_SLEEP_MILLIS);
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,5 +46,7 @@ public class Constants {
|
|||
public static final long SERVICE_CLIENT_TIMEOUT_DEFAULT_MILLIS = 1800000;
|
||||
public static final int CLIENT_MONITOR_PERIODMILLIS = 2000;
|
||||
public static final int CLIENT_MONITOR_TIME_OUT_PERIODMILLIS = 1800000;
|
||||
public static final int DAEMON_SLEEP_MILLIS = 1000;
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue