Load Aggregate Query seems not getting closed

While we are loading aggregate for update, it seems not able to close the statement/connection for unknown reasons.
When we analysed the axon codebase (ver. 2.3.1), it seems to be closing the prepared statement and connection properly.
But when we analysed the same from Yourkit Profiler (attaching the snapshot for reference), we are getting this error multiple times which is bringing down the application .


There are can be some other possible problem as well which we are not able to point to very specific area.

It will be great if someone have some pointers to look into…

Amol Umate


Can you provide some details about the infrastructure components (Event Bus, Command Bus etc) that you’re using. That might give some more clues as to what’s going on.