Heap size problem

"Kamalraj Singh Madhan, Noida" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <7DB05FAE36435F40BA952CF808CFE7B6E25F53@HSDLNTD1110010.noida.hcltech.com>
Hi All,

   I just subscribed to this mailing list. I am hoping that I can find
users who have faced the issue I am facing right now and help me resolve
it. I am using Eclipse v10 as my IDE and xdoclet - 1.2.3 plugin to build
my whole application having stateless session beans. I am working on
Java 1.5 and the problem which I face is that while building my build
fails and this is the error page which I get:





 Buildfile:
C:\PIMS\dev\projects\pims\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.an
notations.xdoclet\tempAnt.xml

init:

ejbdoclet:

[ejbdoclet] (XDocletMain.start                   47  ) Running
<deploymentdescriptor/>

[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).

[ejbdoclet] (TemplateEngine.invokeMethod         547 ) Invoking method
failed:
xdoclet.modules.ejb.session.SessionTagsHandler.forAllSessionBeans,
line=33 of template file:
jar:file:/C:/tapir/dev/eclipse/plugins/xdoclet-1.2.3/lib/xdoclet-ejb-mod
ule-1.2.3.jar!/xdoclet/modules/ejb/dd/resources/ejb-jar_xml.xdt

[ejbdoclet] java.lang.reflect.InvocationTargetException

[ejbdoclet] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

[ejbdoclet] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

[ejbdoclet] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)

[ejbdoclet] at
xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:641)

[ejbdoclet] Java heap space

[ejbdoclet] at
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:540)

[ejbdoclet] ParameterImpl instances:   20

[ejbdoclet] MethodImpl instances:      5863

[ejbdoclet] ConstructorImpl instances: 213

[ejbdoclet] SimpleNode instances:      0

[ejbdoclet] SourceClass instances:     277

[ejbdoclet] XDoc instances:            0

[ejbdoclet] DefaultXTag instances:     0

[ejbdoclet] BinaryClass instances:     64

[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

C:\PIMS\dev\projects\pims\.metadata\.plugins\org.eclipse.jst.j2ee.ejb.an
notations.xdoclet\tempAnt.xml:69: Java heap space



Total time: 31 seconds









I have a system variable which I have set by the Name 'ANT_OPTS' having
value '-Xmx640m' as suggested by most of the forums on internet. I also
have 1 GB as my RAM on PC.



Kindly suggest what I need to do?



Thanks and Regards,

Kamal







DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.