I am using a piece of java software written by someone else, but it keeps running out of memory. I have tried to allocate more memory at initialisation of the program (with -Xmx), but it doesn’t seem to have any effect.
Is it possible that the writers of the software have hardcoded the maximum heap size, and that therefore the extra memory I’m allocating at initialisation doesn’t have any effect? Or should -Xmx always work?
No. The memory size is set before the code is loaded.
It depends what you mean, and how you are using it. For a long time, there was no way to assign extra memory to applets. Around 1.5 (if memory serves) extra options were added to the applet element – one of which was for max. memory. In the Plug-In 2 JRE architecture, applets can be launched with JWS, and can assign memory via the launch file.