gaozhangmin opened a new issue, #16002:
URL: https://github.com/apache/pulsar/issues/16002
Our environment encountered a producer client with memory limit set to 8MB
stuck.
the jstack info:
```
cpu=60340268.05ms elapsed=5024193.73s tid=0x00007fbbc4001000 nid=0x427cc
waiting on condition [0x00007fbcd6eba000]
java.lang.Thread.State: WAITING (parking)
at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
- parking to wait for <0x0000000760d3c3a0> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at
java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:194)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await([email protected]/AbstractQueuedSynchronizer.java:2081)
at
org.apache.pulsar.client.impl.MemoryLimitController.reserveMemory(MemoryLimitController.java:58)
at
org.apache.pulsar.client.impl.ProducerImpl.canEnqueueRequest(ProducerImpl.java:811)
at
org.apache.pulsar.client.impl.ProducerImpl.sendAsync(ProducerImpl.java:426)
at
org.apache.pulsar.client.impl.ProducerImpl.internalSendAsync(ProducerImpl.java:321)
at
org.apache.pulsar.client.impl.ProducerImpl.internalSendWithTxnAsync(ProducerImpl.java:392)
at
org.apache.pulsar.client.impl.PartitionedProducerImpl.internalSendWithTxnAsync(PartitionedProducerImpl.java:243)
at
org.apache.pulsar.client.impl.PartitionedProducerImpl.internalSendAsync(PartitionedProducerImpl.java:190)
at
org.apache.pulsar.client.impl.TypedMessageBuilderImpl.sendAsync(TypedMessageBuilderImpl.java:103)
at
```
Then, We dumped the client memory for analysis, found the whole size is less
than 8MB。Did we miss release memory limit somewhere?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]