I have a problem with the ejbSelectGeneric method. It seems this method does not release any memory after invoking it. If I call this method many times (more than 10,000 times) I finally get an OutOfMemoryException. I was able to track the problem exact to this call.
In Version 4.0.0 and 4.0.1 all works fine. The problem just occured with the update to 4.0.2.
I have checked the memory usage before and after calling this method and with every call more memory is reserved.
Has anyone any idea?
OK, I've found the problem. We have just to many data (and to few memory) to use caching model B. So we've switched to C and everything works fine now.
It seems we have crossed the data limit just when updating to 4.0.2, so my first guess was wrong...