Issue Details (XML | Word | Printable)

Key: JDO-21
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michelle Caisse
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

java.lang.OutOfMemory running TCK with validateTables false

Created: 21/Apr/05 06:05 AM   Updated: 23/Apr/06 02:11 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Environment: Pentium 4 2.8GHz PC, 1GB RAM, Win 2000 Pro SP4

Resolution Date: 23/Apr/06 02:11 AM


 Description  « Hide
When org.jpox.validateTables=false (default is true), numerous java.lang.OutOfMemory exceptions are thrown. The TCK needs to run with this option false, so this is a problem. My box has plenty of available memory when this occurs. The problem does not occur when running any individual test. This is probably a JPOX problem, but I enter it here pending further investigation.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michelle Caisse added a comment - 27/Apr/05 10:49 AM
Checked in temporary work-around for this problem (r 164936) -- increased maximum heap size to 512MB. Clearly there is a resource leak because memory usage increases with time as TCK tests are run.

Michelle Caisse added a comment - 27/Apr/05 02:23 PM
Checked to see if pmf is closed. In general it is. However, with classes in the api.persistencemanager package and subpackages, when the test FAILS, or in some cases when there is an ERROR, pmf is not closed. This is responsible for about 200MB of unrecovered memory usage.

Also certain tests use big chunks for memory that is not subsequently recovered -- some of the fieldtypes tests (~200MB as a group) and one of these: NewQueryWithExtentAndFilter or NewQueryWithSpecifiedLanguageAndQuery (~200MB). I could not reproduce this when running the individual tests; I observed it while running the whole TCK. The pmf is closed for these tests, so something else is using the memory.

Michelle Caisse added a comment - 21/Jun/05 05:55 AM
Problem no longer occurs.

Michael Bouschen added a comment - 23/Apr/06 02:08 AM
Reopened to set the Fix Version/s field to JDO 2 beta.