I observe that there are 15 instances of
objects. But, the instance variable physicalConnection
in NewPooledConnection is retaining 18,942 objects.
I did some simple load tests and profiled the
application, left the server running for 12 hours and
when I took a snapshot again, I see that the
physicalConnection field is retaining enormous amounts
of Connection objects totalling to 2.5 MB.
My pool max size is default, 15 connected to MySql.
I've attached the screenshot of the profiling snapshot
for a better picture.
Any thoughts are greatly appreciated.
Log in to post a comment.