JAVA -Xms500M -Xmx1800M -XX:+UseConcMarkSweepGC -classpath C:\XYZ\MY_installer\lib\jlex.jar;C:\XYZ\MY_installer\lib\antlr.jar;C:\XYZ\MY_installer\lib\mytemplate.jar;C:\XYZ\MY_installer\lib\log4j-1.2-api-2.0-beta8.jar;C:\XYZ\MY_installer\lib\log4j-api-2.0-beta8.jar;C:\XYZ\MY_installer\lib\log4j-core-2.0-beta8.jar;C:\WORKSPACES\delnaz\del_prj; -DENVFILE=C:\XYZ\MY_installer\bin\escat.ini utilities.graph.GraphDriver C:\XYZ\MY_installer "C:\WORKSPACES\delnaz\del_prj\del.prj" "C:\WORKSPACES\delnaz\del_prj" 1
Problem: This is command which needed above descripted jar for enviornment, is working if i shift max heap size 1400 to 1000 though I know jars are not going to do any thing with heap. but i want to know the reason why it is changing, or what could be the reason.
String cmdArr[] = {"cmd.exe", "/C" , cmdString};
ProcessBuilder pb = new ProcessBuilder(cmdArr);
Map<String, String> env = pb.environment();
env.put("PATH", System.getenv("PATH"));
env.put("ROOT", rootPath);
env.put("SYSTEMROOT", System.getenv("SYSTEMROOT"));
if(cmdString.endsWith("cfe.bat"))
pb.directory(new File("TextFiles"));
else
pb.directory(new File(Workspace_path));
process = pb.start();
java version is:
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)
Windows 7 Enterprise
RAM 4GB
32 bit OS
And another startegy: Reason why we needed Maxheap size can we not have option in which we can look in to run application on standard option.