set jopts=-Xms4m
...
java.exe %jopts% MyClass