Hi. I've been having a problem with Hibernate when running my application in Linux. This application is supposed to stay running in the background all the time.
The problem is that, for some reason, the amount of threads created by Hibernate seems to go out of control, up to the point of crashing.
Each thread ends up spawning a new process in Linux, and there is a limit on the amount of processes it can start.
I would like to know what kind of situation would cause this sort of problem. I am pretty sure I am closing all my sessions, and committing my transactions.
I always use the same SessionFactory object, which is initialized when the application is started up.
Can someone please help me out?
Thanks in advance.
|