Memory allocation
marcinprositno opened this issue · 2 comments
marcinprositno commented
When there is a big chunk of data being changed in PG this library before starts sending the data it allocates lots of memory.
- Update table or insert data into a table, at lease 3M rows in one transaction.
- Monitor how memory is growing in your application when this package is listening to WAL changes.
I noticed it when I setup and app with this package which was hosted as a pod in k8s. k8s was killing the pod over and over because it was reaching memory limit very fast.
ihippik commented
Thanks for letting me know! I will check this one.
ihippik commented
@marcinprositno hey, try this release: https://github.com/ihippik/wal-listener/releases/tag/v2.5.2
reduce memory allocation almost 2 times