So , this setting has been done at the server level , which means , all the server instances of this server will have the same JVM memory allocation.

But , we want to set the Heap Size and JVM Memory Allocation at the Server Instance / Node level , so that different server instances / nodes can be started with their own Heap Size and JVM Memory Allocation settings.

This may be specified , at runtime while starting the server instance using the -D option ( dont know how to do for the Heap Size and JVM Memory Allocation )OR , in any config file in the specific node's server configuration directory.

REMREM The %ARGS% env variable commented out in favor of using %* to includeREM all args in java command line. See bug #840239. [jpl]REMREM set ARGS=REM :loopREM if [%1] == [] goto endloopREM set ARGS=%ARGS% %1REM shiftREM goto loopREM :endloop

rem Find run.jar, or we can't continue

set RUNJAR=%JBOSS_HOME%\bin\run.jarif exist "%RUNJAR%" goto FOUND_RUN_JARecho Could not locate %RUNJAR%. Please check that you are in theecho bin directory when running this script.goto END

:FOUND_RUN_JAR

if not "%JAVA_HOME%" == "" goto ADD_TOOLS

set JAVA=java

echo JAVA_HOME is not set. Unexpected results may occur.echo Set JAVA_HOME to the directory of your local JDK to avoid this message.goto SKIP_TOOLS

:ADD_TOOLS

set JAVA=%JAVA_HOME%\bin\java

rem A full JDK with toos.jar is not required anymore since jboss web packagesrem the eclipse jdt compiler and javassist has its own internal compiler.if not exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS

rem If exists, point to the JDK javac compiler in case the user wants torem later override the eclipse jdt compiler for compiling JSP pages.set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar

:SKIP_TOOLS

rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will rem result in including the local directory in the classpath, which makesrem error tracking harder.if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR%if "%JBOSS_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR%if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%JBOSS_CLASSPATH%;%RUNJAR%

Your plane on creating runnode1.bat and editing the heap settings in there is a good one. I would go even further and hard-code the "- c node1 -b IP ADDRESS -g CLUSTER NAME" within runnode1.bat - you could add it to this line: