Skip to content
Advertisement

What does “Other” mean in Java GC log?

I have such setup

  • Java 11 Corretto inside Docker running on EC2
  • Java options: -Xms1200m -Xmx1200m -XX:+UseG1GC -Xlog:gc*

In log I see that usually GC takes ~100-200ms, but for some timeslots, I see some weird behavior:

[2074.114s][info][gc,phases ] GC(39) Other: 4082.5ms

JavaScript

What does this “other” step mean?

Advertisement

Answer

This is most likely due to time spent writing the log out to disk which is considered an “other” task. A simple solution is to write the log out to ramdisk (/tmp on most distros).

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement