I am running a .bat file that points to asant:
C:\Sun\SDK\bin\asant Startbds
asant again points to the xml file that I have, build.xml:
<target name="Startbds" description="Start bds">
Now it was good, but now I have added more data, which leads to an error from memory:
java.lang.outOfMemoryError: Java heap space
So, I tried to increase the heap space by various methods that I found while searching for a solution:
- cmd: set
ANT_OPTS=-Xms512m -Xmx512m (does not work, same error message) - Editing asant.bat, where I edited the line "-set ANT_OPTS" from
.
set ANT_OPTS="-Dos.name=Windows_NT" -Djava.library.path=%AS_INSTALL%\lib;%AS_ICU_LIB%;%AS_NSS%" "-Dcom.sun.aas.installRoot=%AS_INSTALL%" "-Dcom.sun.aas.instanceRoot=%AS_INSTALL%" "-Dcom.sun.aas.instanceName=server" "-Dcom.sun.aas.configRoot=%AS_CONFIG%" "-Dcom.sun.aas.processLauncher=SE" "-Dderby.root=%AS_DERBY_INSTALL%"
TO
set ANT_OPTS="-Xms512m -Xmx512m" "-Dos.name=Windows_NT" -Djava.library.path=%AS_INSTALL%\lib;%AS_ICU_LIB%;%AS_NSS%" "-Dcom.sun.aas.installRoot=%AS_INSTALL%" "-Dcom.sun.aas.instanceRoot=%AS_INSTALL%" "-Dcom.sun.aas.instanceName=server" "-Dcom.sun.aas.configRoot=%AS_CONFIG%" "-Dcom.sun.aas.processLauncher=SE" "-Dderby.root=%AS_DERBY_INSTALL%"
but this gave me an error message:
"Invalid initial heap size: -Xms512m -Xmx512m Could not create the Java virtual machine."
Has anyone got an idea on how to increase yield? And perhaps also give a pointer to where I can find a tool to view the heap.
Thanks in advance.
source share