Memory Usage of StatisticsAwareJdbcClient #28336
Wetbikeboy2500
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few SQL server instances that have a few hundred databases each that I am setting up as catalogs for trino. I noticed that during the startup of the coordinator, it was significantly increasing in memory and would log warnings for large GC cleanups.
I investigated using the trino-server-dev setup and created 1000 catalogs with:
I ran the profiler and saw:

The ramp up in memory was when all the catalogs where being loaded in. A memory dump shows the JMXMBeamServer taking up 2.4GB
I decided to hack around the StatisticsAwareJdbcClient and remove it along with the MBeam setup from the JdbcDiagnosticModule and memory barely climbed.


I also was curious if removing the StatisticsAwareJdbcClient helped in performance for sequential queries as it would not be tracking so much data and saw requests go from 25.16 req/sec to 34.43 req/sec using a SqlServerQueryRunner set up with one catalog.
Is it possible to disable the StatisticsAwareJdbcClient per catalog? I think best case would be that I could turn on StatisticsAwareJdbcClient for a sub-set of my catalogs through a catalog config option to monitor them, but overall monitoring can be done more efficiently at the applications on top of trino or at the databases themselves.
Beta Was this translation helpful? Give feedback.
All reactions