Replies: 1 comment 3 replies
-
I'm curious why are you opening and closing the connection so many times ? Your solution seems fine, but usually apps just re-use connections so this is not an issue |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am interested why instances of org.postgresql.jdbc.PgConnection keep links to org.postgresql.core.QueryExecutor
after successful close() method?
It causes bigger consumption in old gen memory, because PgConnection is stored in Finalizer queue
So it causes more long pauses in full GC.
I see solution like this: org.postgresql.jdbc.PgConnection#close
Beta Was this translation helpful? Give feedback.
All reactions