How to write GC log to named pipe

后端 未结 1 331
情书的邮戳
情书的邮戳 2021-01-27 05:09

I want to configure the gc log so that it can write to a named pipe?

Does anyone know whether it is possible?

相关标签:
1条回答
  • 2021-01-27 05:25

    A named pipe is a type of file and you can write to it like any other file.

    Try

    -Xloggc:/my/named/pipe
    

    Note: you want to make sure the pipe is being read or it could cause the JVM to stop.

    0 讨论(0)
提交回复
热议问题