File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes OutOfMemoryError while running DataClassTest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "OutOfMemoryError while running DataClassTest" Watch "OutOfMemoryError while running DataClassTest" New topic

OutOfMemoryError while running DataClassTest

Roel De Nijs

Joined: Jul 19, 2004
Posts: 7911

If I say I tested with 20000 iterations, then i really tested with that amount. There is no reason for talking big, it's not about the most performant application But the number of iterations can give a clue about possible memory (or thread) leaks. If you can get just 100 iterations and someone else can easily perform 5000 you definitely have an issue.

Today I ran some tests with just the read-method (using the snippet a few posts back): on a WinXP machine I could easily increase the counter to 100k, but on a Win7 machine I got an OutOfMemoryError (unable to create new native thread) after about 10k threads, so it's definitely an OS issue. But again if you manage to have 500 iterations and someone else can run 3000 iterations, you might have a memory and/or thread leak.

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link:
subject: OutOfMemoryError while running DataClassTest
It's not a secret anymore!