Frank/Raphael,
I did some hacking with my Ant build scripts and discovered it
wasn't XDoclet causing the problem. It looks like the problem had to
do with the fact that I was continuously calling my <init> target
that provided the taskdef definitions. Once I ensured that the
<init> target was only called once, the build scripts completed
with no errors and I actually cut the build time in half. Sorry about
the confusion and the incorrect assumption.
Thanks for all of your help.
Regards,
Jeff
Frank Langelage wrote:
Setting
ANT_OPTS is the right variable to increase the accessible heap.
PermGen is not part of the heap.
Set ANT_OPTS to "-Xmx1024m -XX:MaxPermSize=64m" or something like this.
Jeff Harmes wrote:
Raphael,
Nope..that didn't work either. Got the following error:
java.lang.OutOfMemoryError: PermGen space
Any other suggestions?
Regards,
Jeff
Raphael Luiz Nascimento wrote:
Can you try this too ?
JAVA_OPTS=-XMX1024m
Set this variable in your system variables.
I hope this is help you, good luck.
Raphael Nascimento.
------------------------------------------------------------------------
*De:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] *Em nome de *Jeff
Harmes
*Enviada em:* terça-feira, 11 de abril de 2006 15:59
*Para:* xdoclet-user@lists.sourceforge.net
*Assunto:* Re: RES: [Xdoclet-user] OutofMemoryError running Ejbdoclet
Raphael,
Yeah....tried that. I'm using Ant and I did the following:
ANT_OPTS=-Xmx1024m
and I get the following error:
[wseedoclet] PermGen space
[wseedoclet] ParameterImpl instances: 0
[wseedoclet] MethodImpl instances: 0
[wseedoclet] ConstructorImpl instances: 0
[wseedoclet] SimpleNode instances: 0
[wseedoclet] SourceClass instances: 0
[wseedoclet] XDoc instances: 0
[wseedoclet] DefaultXTag instances: 0
[wseedoclet] BinaryClass instances: 0
[wseedoclet] UnknownClass instances: 0
[wseedoclet] Total memory: 40
[wseedoclet] Free memory: 20
[wseedoclet] Try to increase heap size. Can be done by defining
ANT_OPTS=-Xmx640m
[wseedoclet] See the JDK tooldocs.
PermGen space
I don't quite understand why it says the Total Memory is only 40?? I
tried setting the ANT_OPTS in my environment as well in the ant.bat
file....no luck!! I'm trying to build and package 20 - 25 components (
generating EJB remote and local interfaces, ejb deployment descriptors,
and web service deployment descriptors and interfaces ).
Here is my environment:
XDoclet 1.2.3
JDK 1.5.0_06
JBoss 4.0.3SP1
I know one area where my build scripts is at fault. I'm continuously
call my <init> target that defines the appropriate taskdefs...I
read somewhere that this is expensive to do and I should only
initialize my taskdefs once. So I'm trying to figure out how I can get
that work. Other than that....all other posts point to XDoclet being
hard on memory.
Any other suggestions would be greatly appreciated. Mike's suggestion
of forking would definately solve the issue....but it doesn't look like
its possible.
Cheers,
Jeff
Raphael Luiz Nascimento wrote:
Try put the following variable in your system variables.
Name: MAVEN_OPTS
Value: -Xmx1024m
Regards Raphael.
------------------------------------------------------------------------
*De:* [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
[mailto:[EMAIL PROTECTED]] *Em nome de *Jeff
Harmes
*Enviada em:* terça-feira, 11 de abril de 2006 13:48
*Para:* xdoclet-user@lists.sourceforge.net
<mailto:xdoclet-user@lists.sourceforge.net>
*Assunto:* Re: [Xdoclet-user] OutofMemoryError running Ejbdoclet
Mike,
Did you ever hear from anyone about this issue? I'm running into a
similar problem. Does anyone have any suggestions on how to fork the
xdoclet tasks so we can avoid this OutofMemoryError?
Thanks,
Jeff
Mike Miller wrote:
I posted the below to the Ant mailing list as well and one suggestion
was to try and fork the ejbdoclet task. I found several issues on the
Xdoclet mailing lists that seemed like a match but were either not
fixed or not quite the same issue. I am not running inside an IDE,
which several issues mentioned. One issue (several years old) mentioned
using the maxmemory parm on my task tag but apparently that parameter
is no longer accepted – it was found in the ‘olddocs’ on the
sourceforge site.
Is there a way to ‘fork’ the ejbdoclet task?
How do I get the functionality of the apparently old ‘maxmemory’
parameter for the ejbdoclet task?
I am trying to resolve an OutOfMemoryError within our build process. We
have a work-around but would really like to be able to run our
‘standard’ targets to get everything built. We have a 3 layer file
structure for components, modules then submodules. Our compile target
is compile.all.all which calls compile.all for the the modules, which
then calls compile on the submodules, using subant.
Software version/levels: Ant 1.6.2 (or 1.6.5), JDK 1.4.2_08 and XDoclet
1.2B4
Have set ANT_OPTS=-Xmx1024m and our compile tasks use fork=”true”.
I also included a call to a java task that calls the Runtime class to
get the memory values in hopes that it might provide some assistance. I
placed this before the javac and the ejb tasks (which calls ejbdoclet).
Below is the output just before the failure in the ejbdoclet task. I
have run the failure with both –v and –d but nothing jumps out at me as
significantly wrong – but then again – I am not an Ant expert!
The error seems to be coming when we run the ejbdoclet task
Looking for suggestions and any assistance! Thanks in advance.
******** output **************
[java] Free Memory=32909504 Total Memory=70029312 Max Memory=1065484288
BUILD FAILED
C:\PPOSDevelopment\2006.1\build.xml:84: The following error occurred
while executing this line:
C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following error
occurred while executing this line:
java.lang.OutOfMemoryError
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following
error occurred while executing
java.lang.OutOfMemoryError
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
... 12 more
Caused by: java.lang.OutOfMemoryError
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
... 20 more
Caused by: java.lang.OutOfMemoryError
--- Nested Exception ---
C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following error
occurred while executing this line:
java.lang.OutOfMemoryError
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.OutOfMemoryError
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
... 20 more
Caused by: java.lang.OutOfMemoryError
--- Nested Exception ---
java.lang.OutOfMemoryError
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:265)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:195)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.OutOfMemoryError
--- Nested Exception ---
java.lang.OutOfMemoryError
Mike Miller
Phone: (214) 277-7759
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
7501 Esters Blvd
Irving, Tx 75063
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.2/280 - Release Date:
3/13/2006
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
|