Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread Alan Bateman
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes: > - Using println rather than format when pri

Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread Jaikiran Pai
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes: > - Using println rather than format when pri

Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread Alex Menkov
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes: > - Using println rather than format when pri

Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread Mandy Chung
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes: > - Using println rather than format when pri

Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread David Schlosnagle
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes: > - Using println rather than format when pri

Re: RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread David Schlosnagle
On Wed, 6 Sep 2023 07:02:53 GMT, Alan Bateman wrote: > `HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow > when there is a large number of threads. > > The thread dump can be sped up significantly with some small changes > - Using println rather than format when prin

RFR: 8315702: jcmd Thread.dump_to_file slow with millions of virtual threads

2023-09-07 Thread Alan Bateman
`HotSpotDiagnosticMXBean.dumpThreads` and `jcmd Thread.dump_to_file` are slow when there is a large number of threads. The thread dump can be sped up significantly with some small changes - Using println rather than format when print thread info and thread stacks - Create the print stream without