One quick way to use more heap on a multi-threaded java app is to reduce your Xss. Now this default thread-stackspace Xss is different on different operating systems and hence the difference between total memory youcan allocate to heap. The threads created by your java process have their own stackspace and that also has to fit into this 4GB limit normally due to OS overhead this limit is 3. A very important point about why you cannot allocate 4GB an only allocate a lot less than 4GB to a java process on a bit machine.
0 Comments
Leave a Reply. |