This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "OutOfMemoryError" Watch "OutOfMemoryError" New topic


Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
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

Joined: Aug 25, 2003
Posts: 504
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

Joined: Dec 10, 2001
Posts: 7023
Moving this to The Intermediate Forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: OutOfMemoryError
jQuery in Action, 3rd edition