-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory leak #18
Comments
hi @philkunz, where do you experience the issue? on clickhouse, or the nodejs application that you're using the client with? |
node.js. -> I have a grafana dashboard showing me memory usage and cpu usage of our services. After integrating this package I noticed a steady increase in both CPU and Memory usage. I looked into the source code and noticed you are using brotli. There are other issues on Github (like here Alorel/shrink-ray#49) where Brotli is potentially responsible for memory leaks. |
I reimplemented the http client quickly, and the service is not showing any memory leaks with that: |
Have you tried explicitly setting the |
- add support for several types. - `query` return type is now `string | T`. - `queryPromise` return type is now `string | T[]`. - queries will return `T` for `JSON` formats and `string` for others. - do not allow queries with unsupported formats. - better handling of promise to avoid redundant memory fills - separate http configuration and clickhouse settings
Please try 2.0.0 and reopen the issue if still occurs. |
Monitoring revealed that there seems to be a memory leak somewhere in here. Have you monitored your services over longer periods of time?
The text was updated successfully, but these errors were encountered: