[Ant]Solutions of outOfMemory when run ant
2011-09-08 14:57
288 查看
there are 2 solutions:
1、in linux server, edit ant:
java -Xms128m -Xmx256m -classpath "%ANTCLASSPATH%" org.apache.tools.ant.Main %ANT_ARGS%
ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
change to
ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -Xms128m -Xmx512m -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher
$ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
2、when you run ant in eclipse, configure parameter follow as:
in build.xml right-hand button->Run as->Extenal Tools Configurations->JRE Vmargument add
-Xms128m -Xmx512m there, you can solve this problem.
1、in linux server, edit ant:
java -Xms128m -Xmx256m -classpath "%ANTCLASSPATH%" org.apache.tools.ant.Main %ANT_ARGS%
ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
change to
ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -Xms128m -Xmx512m -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher
$ANT_ARGS -cp \"$CLASSPATH\" $ant_exec_args"
2、when you run ant in eclipse, configure parameter follow as:
in build.xml right-hand button->Run as->Extenal Tools Configurations->JRE Vmargument add
-Xms128m -Xmx512m there, you can solve this problem.
相关文章推荐
- outOfMemory when run tomcat
- out of memoryerror-when-running-junitreport-from-ant
- "Cannot allocate memory" OutofMemory when call Ant to build Polish project in Tomcat
- Linux开发心得总结6 - When Linux Runs Out of Memory
- 读取war包中的文件及Ant使用中的OutOfMemoryError解决
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- 项目经验二则:读取war包中的文件及Ant使用中的OutOfMemoryError解决
- 使用ant时 出现 java.lang.OutOfMemoryErro r: Java heap space的解决办法
- Problems with System.OutOfMemoryException At System.String.GetStringForStringBuilder in 32-Bit Managed Solutions
- Eclipse下使用ANT编译提示OutOfMemory的解决方法
- CMD下运行Ant报Out of Memory错误 的解决方式
- 遇到 java.lang.OutOfMemoryError: PermGen space配多少合适我的内存为4G在哪配置Jboss的run.bat还是。。
- Are you getting OutOfMemoryExceptions when uploading large files?
- When Linux Runs Out of Memory
- 执行ant命令时出现java.lang.OutOfMemoryError: Java heap space
- When Linux Runs Out of Memory
- Ant报错之out of memory
- SurfaceFlinger/gralloc Out of Memory error when allocating buffer memory for use with virtual frame
- <引发的内存溢出(mvn Jetty:run OutOfMemoryError)
- System.OutOfMemoryException error thrown when running ReportViewer