Ant - Try to increase heap size error

Buildfile: G:\workspace\weblogic\IntrustEJB\xdoclet-build.xml
N65540:
[ejbdoclet] 2009-9-18 2:57:48 xdoclet.XDocletMain start
[ejbdoclet] 信息: Running <localinterface/>
[ejbdoclet] 2009-9-18 2:58:21 xdoclet.XDocletMain start
[ejbdoclet] 信息: Running <localhomeinterface/>
[ejbdoclet] 2009-9-18 2:58:51 xdoclet.XDocletMain start
[ejbdoclet] 信息: Running <deploymentdescriptor/>
[ejbdoclet] 2009-9-18 2:59:36 xdoclet.XDocletMain start
[ejbdoclet] 信息: Running <weblogic/>
[ejbdoclet] Java heap space
[ejbdoclet] ParameterImpl instances:   20
[ejbdoclet] MethodImpl instances:      22377
[ejbdoclet] ConstructorImpl instances: 19
[ejbdoclet] SimpleNode instances:      0
[ejbdoclet] SourceClass instances:     573
[ejbdoclet] XDoc instances:            577
[ejbdoclet] DefaultXTag instances:     1664
[ejbdoclet] BinaryClass instances:     135
[ejbdoclet] UnknownClass instances:    0
[ejbdoclet] Total memory:    63
[ejbdoclet] Free memory:    0
[ejbdoclet] Try to increase heap size. Can be done by defining ANT_OPTS=-Xmx640m
[ejbdoclet] See the JDK tooldocs.

BUILD FAILED
G:\workspace\weblogic\IntrustEJB\xdoclet-build.xml:44: Java heap space

Total time: 1 minute 53 seconds

 

解决办法:

 

window->preferences->java->installed jres->edit jre
把default vm arguments 的参数设为-Xms64m -Xmx512m

posted @ 2009-12-12 15:38  QQ天堂  阅读(780)  评论(0编辑  收藏  举报