[Ant]Solutions of outOfMemory when run ant
来源:互联网 发布:java自动发送短信sms 编辑:程序博客网 时间:2024/06/06 05:09
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.
- [Ant]Solutions of outOfMemory when run ant
- outOfMemory when run tomcat
- "Cannot allocate memory" OutofMemory when call Ant to build Polish project in Tomcat
- out of memoryerror-when-running-junitreport-from-ant
- Run JMeter by Ant
- Contiki Cooja ant run
- ant
- ant
- Ant
- ant
- ANT
- ANT
- ant
- ant
- ant
- ant
- ant
- ANT
- [Ant]Note of <develop java with Ant>
- 用dump_stack 和 show_regs来阅读代码
- ZooKeeper: 一个用于分布式系统的分布式协作服务程序
- [Ant]scp target
- vitualbox共享文件夹出的问题
- [Ant]Solutions of outOfMemory when run ant
- set 用法全文
- jQuery对象与dom对象相互转换
- Paths
- 深度解析iPhone窗口和视图
- A 项目 实战 (三) CoolSQL 连接 DB2
- J2EE、CORBA、DNA三种主流中间件平台比较(4)
- Linux [ 网络常用命令 ]
- 在Win7旗舰版上安装oracle10g