Hi
I am not sure if I am right but I have an application that spawns about 50000 threads, each trying to save some data using Hibernate and end the session straight after this operation.
Inside a container managed environment, this operation is being initated by a SessionBean. By spawning so many threads and do the above mentioned operation, the JVM soon become Out Of Memory and died.
At a standalone application, it ran smoothly but in the container-managed environment, due to the fact that the JTA transaction is taking over all the commits, the problem arised.
I hope I am not confusing you guys here, but does anyone have a solution to my problem here?
Mike
_________________ Thanks in advance!
|