zyj5340 opened a new issue, #25138:
URL: https://github.com/apache/pulsar/issues/25138

   ### Search before reporting
   
   - [x] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Read release policy
   
   - [x] I understand that [unsupported 
versions](https://pulsar.apache.org/contribute/release-policy/#supported-versions)
 don't get bug fixes. I will attempt to reproduce the issue on a supported 
version of Pulsar client and Pulsar broker.
   
   
   ### User environment
   
   Pulsar Proxy version: 2.11.0
   Java version: java17
   
   ### Issue Description
   
   When process a PRODUCER request  in ParserProxyHandler, it will add an 
element in ParserProxyHandler.producerHashMap, but when the producer closed it 
still maintain in this map, it cause memory leak in pulsar proxy. This type of 
leakage also exists when processing SUBSCRIBE request.
   
   ### Error messages
   
   ```text
   
   ```
   
   ### Reproducing the issue
   
   Use different pulsar client to create Producer or Consumer through Pulsar 
Proxy.
   
   ### Additional information
   
   ParserProxyHandler should remove the element related to the producer or 
consumer once they are closed or channelInactive.
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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]

Reply via email to