liaoyt opened a new issue, #4014:
URL: https://github.com/apache/amoro/issues/4014

   ### Search before asking
   
   - [x] I have searched in the 
[issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### What would you like to be improved?
   
   In our long-running ams process we see too many OSS/HTTP connection pools. 
Heap analysis shows a very large number of 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager, which suggests 
Iceberg FileIO (or its underlying HTTP client) is being created per table and 
not reused.
   Since FileIO is expected to be thread-safe, we think FileIO (or at least the 
underlying HTTP/OSS client) should be shared across tables within the same 
catalog to avoid excessive pools, memory usage, and sockets.
   
   ### How should we improve?
   
   Add catalog-scoped reuse/caching of FileIO (or its internal HTTP 
client/connection manager), so tables with the same catalog/config share the 
same instance and it’s closed only on catalog/service shutdown.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Subtasks
   
   _No response_
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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