I make a software with Hibernate + JSF. But realized when I make a session with Hibernate, even though I close a session (session.close())
, the connection is still open in MySQL.
show FULL PROCESSLIST
2 root localhost:55850 repositorionew Query 0
5 root localhost:55884 repositorionew Sleep 110
6 root localhost:55885 repositorionew Sleep 110
7 root localhost:55886 repositorionew Sleep 110
8 root localhost:55906 repositorionew Sleep 108
9 root localhost:55907 repositorionew Sleep 108
Each session opens, one connect is created but not closed even when I use close.
Someone edited my post. The main problem is that when the time ends of the connection, it does not close but restarts.