cloudfoundry / jvmkill

Terminate the JVM when resources are exhausted
Apache License 2.0
30 stars 11 forks source link

Unexpected output during jvmkill #7

Closed glyn closed 7 years ago

glyn commented 7 years ago

The logs when an application is being killed by jvmkill sometimes include the following kind of output:

2017-03-20T09:10:32.91+0000 [APP/PROC/WEB/0]OUT | 300            | 7200        | Ljava/util/concurrent/CopyOnWriteArrayList;                                                                      |
2017-03-20T09:10:32.99+0000 [APP/PROC/WEB/0]ERR Killing current process
2017-03-20T09:10:33.03+0000 [APP/PROC/WEB/0]OUT | 22Exit status 137

Notice the strange output | 22 just before Exit status 137. It looks like the start of a histogram line.

glyn commented 7 years ago

The strange output is probably due to the histogram lines not being properly flushed. Commit 12b72f206be fixes that and the strange output was not observed with that fix in place.