Re: Anthill build java.lang.OutOfMemoryError

Heston Fernandes <hestonfernandes-/[email protected]> Thu, 2 Nov 2006 18:04:16 -0800 (PST)
Newsgroups gmane.comp.java.anthill
Message-ID <[email protected]>
Ben/Varban,

Thanks for your inputs. It directed my efforts in the
right direction. I was able to solve the problem by 
providing the following option in the anthill project
edit page: anthill.java.extra.options = -Xmx800m

Thanks again,

Heston

--- Varban <[email protected]> wrote:

> When we see situations where the same command works
> from command line 
> but fails when Anthill executes, usually it is
> because of different 
> users running the servlet container and the console.
> In other words, 
> there is something different in the environment for
> the two users (all 
> that Anthill does under the covers is open a new
> console and execute the 
> command). The best way to troubleshoot that is to
> start the servlet 
> container from command line (not using any service
> scripts that might 
> change the runtime user) and attempt to build again.
> My guess is that the JVM memory setting is not
> present in the 
> environment where Anthill runs...
> 
> Regards,
> Varban
> 
> Heston Fernandes wrote:
> > Hello,
> > 
> > In reply to your questions
> > 
> > AIX Version: 5.3.0.0
> > Memory: 4GB
> > JVM Allocated Memory: 1024M
> > 
> > At the time I'm trying to build it only around
> 120M is
> > used up
> > 
> > Log file extract:
> > 17:36:23:121 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.BuildManager  - Build
> Command:
> > /opt/websites/wwwsmasdev/anthill/lib/ant/bin/ant
> >
>
-DdeployDir=/opt/websites/wwwsmasdev/anthill/publishDir/TT_Branch_2_4
> > -Dversion=VERSION_2_4-2.4.4
> -Dkit=VERSION_2_4-2.4.4
> > -buildfile
> >
>
/opt/websites/wwwsmasdev/anthill/work/VERSION_2_4/Timetabling/build.xml
> > -logfile
> >
>
/opt/websites/wwwsmasdev/anthill/publishDir/TT_Branch_2_4/buildLogs/TT_Branch_2_4-VERSION_2_4-2.4.4-build.log
> > build-dev
> > 
> > The above extract is the command anthill tries to
> > execute before it fails. I run the exact same
> command
> > from the shell prompt and it gets built without
> any
> > errors. The rest of the log file is as follows
> > 
> > 17:36:23:121 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.BuildManager  - Explicity
> set
> > environment variables:
> > 17:36:23:121 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.BuildManager  -
> > ANT_HOME=/opt/websites/wwwsmasdev/anthill/lib/ant
> > 17:36:23:121 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.BuildManager  -
> > Execute:Java13CommandLauncher: Executing
> > '/opt/websites/wwwsmasdev/anthill/lib/ant/bin/ant'
> > with arguments:
> >
>
'-DdeployDir=/opt/websites/wwwsmasdev/anthill/publishDir/TT_Branch_2_4'
> > '-Dversion=VERSION_2_4-2.4.4'
> > '-Dkit=VERSION_2_4-2.4.4'
> > '-buildfile'
> >
>
'/opt/websites/wwwsmasdev/anthill/work/VERSION_2_4/TT/build.xml'
> > '-logfile'
> >
>
'/opt/websites/wwwsmasdev/anthill/publishDir/TT_Branch_2_4/buildLogs/TT_Branch_2_4-VERSION_2_4-2.4.4-build.log'
> > 'build-dev'
> > 
> > The ' characters around the executable and
> arguments
> > are
> > not part of the command.
> > 
> > WorkingDir:
> >
> /opt/websites/wwwsmasdev/anthill/work/VERSION_2_4/TT
> > 
> > Buildfile:
> >
>
/opt/websites/wwwsmasdev/anthill/work/VERSION_2_4/TT/build.xml
> > 17:36:34:687 [Thread - AnthillBuildDaemon] ERROR
> > com.urbancode.anthill.BuildManager  - Failed to
> Build
> > project. Error: 1
> > java.lang.Exception: Failed to Build project.
> Error: 1
> >         at
> >
>
com.urbancode.anthill.BuildManager.buildProject(BuildManager.java:519)
> >         at
> >
>
com.urbancode.anthill.BuildManager.runBuild(BuildManager.java:402)
> >         at
> >
>
com.urbancode.anthill.BuildManager.build(BuildManager.java:186)
> >         at
> >
>
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:220)
> >         at
> >
>
com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
> >         at
> >
>
com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
> > 17:36:34:688 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.BuildManager  - Step 6) Tag
> > project (if set to success): 
> > 17:36:34:688 [Thread - AnthillBuildDaemon] INFO 
> > com.urbancode.anthill.adapter.CVSRepositoryAdapter
>  -
> > Get revisions since command: 
> > ...
> > 
> > Heston
> > 
> > 
> > --- [email protected] wrote:
> > 
> > 
> >>Heston,
> >>
> >>it seems that you are running out of memory during
> >>the actual build so you
> >>probably need to increase the memory available to
> >>the jvm. Search on how
> >>to increase the memory available to ant on the
> net.
> >>
> >>Regards,
> >>Varban
> >>
> >>
> >>>Heston,
> >>>
> >>>What version of AIX are you running and how close
> >>
> >>to being out of memory
> >>
> >>>were you before the upgrade?
> >>>
> >>>-Ben
> >>>
> >>>-----Original Message-----
> >>>From: anthill-bounces-IWHQxnLZ/[email protected]
> >>>[mailto:anthill-bounces-IWHQxnLZ/[email protected]] On
> >>
> >>Behalf Of Heston
> >>
> >>>Fernandes
> >>>Sent: Wednesday, November 01, 2006 2:38 PM
> >>>To: anthill-IWHQxnLZ/[email protected]
> >>>Subject: [Anthill] Anthill build
> >>
> >>java.lang.OutOfMemoryError
> >>
> >>>I am using the latest version of AntHill OS. It
> is
> >>
> >>installed on an AIX
> >>
> >>>machine with IBM Java. Recently I upgraded the
> >>
> >>Tomcat Server to version
> >>
> >>>5.5 and Java 1.4 to  Java 5 (64 bit version).
> >>
> >>Since that upgrade I'm
> >>
> >>>getting the following error when I try to build a
> >>
> >>project
> >>
> >>>    [javac] The system is out of resources.
> >>>    [javac] Consult the following stack trace for
> >>
> >>details.
> >>
> >>>    [javac] java.lang.OutOfMemoryError
> >>>    [javac] 	at
> >>>
> >>
> >
>
com.sun.tools.javac.util.Name.fromChars(Name.java:136)
> > 
> >>>    [javac] 	at
> >>>
> 
=== message truncated ===



 
____________________________________________________________________________________
Want to start your own business? Learn how on Yahoo! Small Business 
(http://smallbusiness.yahoo.com)