Hibernate fails after 1500 sessions on client Java5 JVM

Description

There is interesting production grade bug on Linux: if JVM is in client mode then after 1500 sessions Hibernate starts to behave strangely.
If -server option is used then test passes.

Repro:
-untar the content in the hibernate source directory;

  • apply diff to the AllTests.java or simply add line to the class suite.addTest( ManySessionsTest.suite() );

run test :
ant -f build-test.xml junit -Dtestpattern=Many*Test -Dvm=client
this time test fails
ant -f build-test.xml junit -Dtestpattern=Many*Test -Dvm=server
now it passes

The bug affects 3.1 line and is present in the 3.2 trunc

This is complementary to bug

Environment

Environment: Java 5 on linux 32 and 64 bit version

Note: by default 64 bit version of JDK is in server mode.

Attachments

Assignee

Diego Plentz

Reporter

Konstantin Ignatyev

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure