drj wrote:
You don't need to explicitly clear the session when closing it - it is 'cleared' in effect once closed.
This may answer the second part of your question:
http://blog.hibernate.org/cgi-bin/blosx ... 8/26#batch
Hi there,
Thanks a lot. I did see that post earlier on and since then I have been wondering if I needed to do it. Problem is, with out application, the memory usage seems to just creep up every so slowly and eventually leads to permanent generation space on the heap being exhausted.
Since then, we have carried out lots of optimisations but I am in a strange situation at the moment whereby our development build is in a stable stage and is about to be released with all these optisation and load tests so far have not showed up any problems. However, with the old build I found that increasing the permanent generation space had a positive effect but only for a two or three days. So I just really need to be sure that hibernate is not doing something strange. Anyway, it looks as if that it isn't the case.
Many thanks for your reply. I shall let you all know the end of this as and when we get close to it.
Arup