lhotari opened a new pull request #10192:
URL: https://github.com/apache/pulsar/pull/10192


   ### Motivation
   
   There's a memory leak in tests via Prometheus client default 
CollectorRegistry.
   
   ### Modifications
   
   - Unregister JettyStatisticsCollector from Prometheus client's default
     Collector registry at shutdown
   
   - Clear metricsServlet reference at shutdown of PulsarService
     - Unrelated to the collector unregister fix. 
     - In tests: helps release the Jetty webserver parts for GC when there are 
references preventing PulsarService from being GCed.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to