wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "OutOfMemoryError while running DataClassTest" Watch "OutOfMemoryError while running DataClassTest" New topic
Author

OutOfMemoryError while running DataClassTest

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5218
    
  12

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
http://www.javaroe.be/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OutOfMemoryError while running DataClassTest