Thanks Sadik, I fixed it with hibernate c3p0. Apparently, mysql closes open connections at regular intervals so i just used it to make it stay open.
You received this message because you are subscribed to the Google Groups "GDG KNUST" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knust-gtug+...@googlegroups.com.
I did a benchmark and I found that the memory usage stays constant. The magic had already been done in the c3p0 lib. Am sure it closes the connection when left idle and reopens from a pool when neccessary. That way, nothing is unnecessarily allowed use the memory for breakfast.
Interesting. Good to know, I hope it logged that fact. - Nii Nai |