Discussion topics on java.io.PrintStream

I use Java Mission Control to profile my application for performance issues. JMC highlighted java.io.PrintStream in the "Context and Conflict Blocking" sections.

Why am I having disagreement issues regarding JDK packages?

enter image description here enter image description here

+6
source share
1 answer

It looks like your application produces a lot of output to stdout or stderr from multiple threads at the same time ( System.out and System.err - PrintStream s). Records and flushes on PrintStream cannot be processed in parallel, they are all synchronized, so you are faced with a disagreement.

+7
source

All Articles