4 ms·
Java can address 32GB heaps with compressedoops flag enabled. After that flag is off, you can address as much as 64 bits will allow. http://stackoverflow.com/qu
by astral303 10y ago
Java can address 32GB heaps with compressedoops flag enabled. After that flag is off, you can address as much as 64 bits will allow.
http://stackoverflow.com/questions/2093679/max-memory-for-64bit-java http://stackoverflow.com/questions/2093679/max-memory-for-64...
Do a little research before implying that there's no way that Java can address gigantic heaps.
- tracker1 10y agoI wasn't implying or assuming anything, I was genuinely asking... I'm more familiar with windows, than other OSes, but iirc, windows apps can only get 4GB per process. (Maybe that was just 32bit windows apps).
- tracker1 10y agoI was incorrect... Then again, I've never needed to address more than a couple gb of ram. [1] http://stackoverflow.com/a/11892191/43906 http://stackoverflow.com/a/11892191/43906
- Kristine1975 10y agoJust 32bit apps. 64bit apps can go much higher.
- cstejerean 10y agoYou can but garbage collection will kill your performance for very large heaps. You either end up needing to use off heap memory to take it out of scope for garbage collection or using many small JVMs with more reasonable sized heaps.