I am using Postgres 9.4 with hibernate , recently my server load has been increased then I checked server statistics using pg_stat_activity command.
It shows multiple queries
in Idle Transaction State , since 1day , 2days
etc .
Can anyone explain that which transaction
this statistics indicating , my Hibernate Transaction
or another?
This article might help you. It's a Perl script that parses the PostgreDQL log and gives you a summary of how long it took each statement, so you can pinpoint what the user was doing in the Idle Transactions .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.