Stats interval fixes
This commit is contained in:
parent
e563939c66
commit
57eeff3c12
@ -295,7 +295,7 @@ public class ActorSystemContext {
|
||||
@Getter
|
||||
private final AtomicInteger jsInvokeFailuresCount = new AtomicInteger(0);
|
||||
|
||||
@Scheduled(fixedDelayString = "${js.remote.stats.print_interval_ms}")
|
||||
@Scheduled(fixedDelayString = "${actors.statistics.js_print_interval_ms}")
|
||||
public void printStats() {
|
||||
if (statisticsEnabled) {
|
||||
if (jsInvokeRequestsCount.get() > 0 || jsInvokeResponsesCount.get() > 0 || jsInvokeFailuresCount.get() > 0) {
|
||||
|
||||
@ -70,7 +70,7 @@ public abstract class AbstractNashornJsInvokeService extends AbstractJsInvokeSer
|
||||
@Value("${js.local.stats.enabled:false}")
|
||||
private boolean statsEnabled;
|
||||
|
||||
@Scheduled(fixedDelayString = "${js.remote.stats.print_interval_ms:10000}")
|
||||
@Scheduled(fixedDelayString = "${js.local.stats.print_interval_ms:10000}")
|
||||
public void printStats() {
|
||||
if (statsEnabled) {
|
||||
int pushedMsgs = jsPushedMsgs.getAndSet(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user