summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-07-17 13:58:53 +0200
committerBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-07-17 14:23:36 +0200
commit01f124796825603023cc46336c68847b8c7ead01 (patch)
treeeb0ee206144d6ba2aa1f1a7f365173cafc440fe0 /jdisc_core
parentb6dad48c95c475cc3dfb6801db3563c300e57328 (diff)
Log when scheduled tasks are triggered
Diffstat (limited to 'jdisc_core')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainerDeactivationWatchdog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainerDeactivationWatchdog.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainerDeactivationWatchdog.java
index 83388df3b09..2438edd101a 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainerDeactivationWatchdog.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ActiveContainerDeactivationWatchdog.java
@@ -112,6 +112,7 @@ class ActiveContainerDeactivationWatchdog implements ActiveContainerMetrics, Aut
}
private void warnOnStaleContainers() {
+ log.log(Level.FINE, "Checking for stale containers");
try {
List<DeactivatedContainer> snapshot = getDeactivatedContainersSnapshot();
if (snapshot.isEmpty()) return;
@@ -122,11 +123,13 @@ class ActiveContainerDeactivationWatchdog implements ActiveContainerMetrics, Aut
}
private static void triggerGc() {
+ log.log(Level.FINE, "Triggering GC");
System.gc();
System.runFinalization(); // this is required to trigger enqueuing of phantom references on some Linux systems
}
private void enforceDestructionOfGarbageCollectedContainers() {
+ log.log(Level.FINE, "Enforcing destruction of GCed containers");
ActiveContainerPhantomReference reference;
while ((reference = (ActiveContainerPhantomReference) garbageCollectedContainers.poll()) != null) {
try {