How do I pipe the Java console output to a file?

后端 未结 5 1560
误落风尘
误落风尘 2020-12-08 21:17

I found a bug in an application that completely freezes the JVM. The produced stacktrace would provide valuable information for the developers and I would like to retrieve i

5条回答
  •  眼角桃花
    2020-12-08 22:00

    A frozen console probably means a deadlock (it could also mean repeated throwing of an exception). You can get a stack dump using jstack. jps may make finding the process easier.

提交回复
热议问题