Synchronization in audit endpoint implementations leads to a great performance drop.
We see the issue in FileAuditEndpoint.accept(EventPriority, String), but similar code is also in the SyslogAuditEndpoint.
Check the attached recording (FlightRecorder) in jmc (Java Mission Control).
It can be seen in these tabs
- Threads > Contention
- Threads > Thread Dumps
- Threads > Lock Instances