Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError  RSS feed

 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am designing a simulation application. It creates new threads at certain events. After about 1500 threads, the OutOfMemoryError pops up. I am using sdk 1.4 on Windows 98 - DOS window. I am not sure if java is using all available memory including extended memory.
 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barkat, as far as I know, when you run a DOS window with Windows version newer than 3.x, it's a virtual DOS machine meaning that Windows makes it think like a real 16-bit DOS application, but Windows actually manages the memory access. And this means that a virtual DOS window is not limited any more to the first 2^20 memory addresses (correct me if I'm wrong).
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to The Intermediate Forum...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!