• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OutOfMemoryError

 
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic