High producer latency (e.g., median 7002 ms, 99th percentile 10996 ms) in org.apache.pulsar.client.impl.ProducerStatsRecorderImpl typically indicates broker or storage bottlenecks, network issues, or resource contention. Common causes include slow BookKeeper/bookie responses, broker IO thread saturation, high GC pauses, or excessive logging due to repeated exceptions, especially with unreachable clusters or replication failures. For example, excessive exception logging and thread contention can cause high publish latency and GC pauses, as seen in recent Pulsar issues and thread dumps (
see details).
To diagnose, check broker and bookie logs for errors, monitor broker IO/CPU/GC, and review network health. Also, ensure no misconfigured replication or unreachable clusters are causing repeated failures. Upgrading to the latest supported Pulsar version may resolve known performance bugs (
see here). Would you like more detail on specific troubleshooting steps or metrics to monitor?
Sources:
-
Bug: Broker seeing high latency, high CPU and high GC Pauses
-
Bug: Error while producing messages 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.