I have an applet and I need to increase his memory. If I pass this parameter:
-Xmx=1024m
and execute this code:
rt = Runtime.getRuntime()
rt.maxMemory()/1024/1024
It returns 989M
If I instead pass:
-Xmx=2048m
It returns 154M
Why is this, and how can I increase the maximum available memory for my Applet?