Java RAM usage

How to change Java RAM usage

Linux:

/opt/Noodle/multiserver
MAX_MEMORY=512

Windows:

%PROGRAMFILES%\Noodle\intranet.bat
-Xmx512M