I am trying to limit Minecraft to a certain amount of memory. To that end, I start it from a batch file with the following line:
javaw -Xms256M -Xmx256M -cp Minecraft.exe net.minecraft.LauncherFrame
but it routinely goes over 800 MB.
I also tried going to the Java applet in the Control Panel. Then to Java tab/View..., then added the following runtime parameter:
That didn't help either.
What can I do to limit a java process (or at least Minecraft in particular) to 256 MB of RAM.