summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
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 {