• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OutOfMemoryError while running DataClassTest

 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic