Heston Fernandes | 1 Nov 21:37
Picon
Favicon

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
com.sun.tools.javac.util.Name.fromString(Name.java:165)
    [javac] 	at
com.sun.tools.javac.util.Name$Table.fromString(Name.java:534)
    [javac] 	at
com.sun.tools.javac.jvm.ClassReader.includeClassFile(ClassReader.java:1715)
    [javac] 	at
com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1795)
    [javac] 	at
com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:1903)
    [javac] 	at
com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1928)
    [javac] 	at
com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1559)
    [javac] 	at
com.sun.tools.javac.code.Symbol.complete(Symbol.java:382)
    [javac] 	at
(Continue reading)

Ben Weatherall | 2 Nov 20:47

RE: Anthill build java.lang.OutOfMemoryError

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@...
[mailto:anthill-bounces@...] On Behalf Of Heston
Fernandes
Sent: Wednesday, November 01, 2006 2:38 PM
To: anthill@...
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
com.sun.tools.javac.util.Name.fromString(Name.java:165)
    [javac] 	at
com.sun.tools.javac.util.Name$Table.fromString(Name.java:534)
    [javac] 	at
(Continue reading)

vvv | 2 Nov 21:02

RE: Anthill build java.lang.OutOfMemoryError

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@...
> [mailto:anthill-bounces@...] On Behalf Of Heston
> Fernandes
> Sent: Wednesday, November 01, 2006 2:38 PM
> To: anthill@...
> 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.
(Continue reading)

Heston Fernandes | 3 Nov 00:46
Picon
Favicon

RE: Anthill build java.lang.OutOfMemoryError

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
(Continue reading)

Varban | 3 Nov 01:13

Re: Anthill build java.lang.OutOfMemoryError

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
(Continue reading)

Heston Fernandes | 3 Nov 03:04
Picon
Favicon

Re: Anthill build java.lang.OutOfMemoryError

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 <vvv@...> 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 
(Continue reading)

Eric Minick | 1 Nov 22:45

Re: Anthill build java.lang.OutOfMemoryError

Heston,

I would start by just trying to give Tomcat a little more memory. The 
tomcat docs provide some good tips for how to do that.

This one should get you started:
http://tomcat.apache.org/faq/memory.html

Cheers,
Eric

Heston Fernandes wrote:

>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
>com.sun.tools.javac.util.Name.fromString(Name.java:165)
>    [javac] 	at
>com.sun.tools.javac.util.Name$Table.fromString(Name.java:534)
(Continue reading)

Sujit Pal | 7 Nov 19:40
Favicon

Anthill says: Failed to Build project. Error: 1

I am getting the following error when I try to run the ant target from
within Anthill (version 1.8.0.264).

16:27:42:370 [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:523)
        at
com.urbancode.anthill.BuildManager.runBuild(BuildManager.java:401)
        at
com.urbancode.anthill.BuildManager.build(BuildManager.java:185)
        at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
        at
com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
        at com.urbancode.anthill.DependencyGroup
$Member.build(DependencyGroup.java:572)
        at
com.urbancode.anthill.DependencyGroup.run(DependencyGroup.java:384)
        at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)

Based on the logs, all the tests pass. All the tests also pass from the
command line with the same target, so it looks like something within
Anthill.

I have used CruiseControl in the past, where this kind of error meant
something to do with system resources, such as a hung appserver, or no
disk space to write to. Fixing/Restarting the appserver usually took
care of that. I tried that too, but no luck.
(Continue reading)

Eric Minick | 7 Nov 22:12

Re: Anthill says: Failed to Build project. Error: 1

Sujit,

You can download the latest with sources from here:
http://www.anthillpro.com/html/products/anthillos/download.html

Does the build log say 'build successful' at the bottom? This looks like 
Ant is returning an error code of 1. I'd have to dig into the code a bit 
more to make sure that's correct though.

-- Eric

Sujit Pal wrote:

>I am getting the following error when I try to run the ant target from
>within Anthill (version 1.8.0.264).
>
>16:27:42:370 [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:523)
>        at
>com.urbancode.anthill.BuildManager.runBuild(BuildManager.java:401)
>        at
>com.urbancode.anthill.BuildManager.build(BuildManager.java:185)
>        at
>com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
>        at
>com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
>        at com.urbancode.anthill.DependencyGroup
(Continue reading)

Sujit Pal | 10 Nov 19:32
Favicon

Re: Anthill says: Failed to Build project. Error: 1

Hi Eric,

Thanks for the link and the hint. I installed the new version of Anthill
yesterday and this morning everything is green :-).

Thanks very much,
Sujit

On Tue, 2006-11-07 at 14:12 -0700, Eric Minick wrote:
> Sujit,
> 
> You can download the latest with sources from here:
> http://www.anthillpro.com/html/products/anthillos/download.html
> 
> Does the build log say 'build successful' at the bottom? This looks like 
> Ant is returning an error code of 1. I'd have to dig into the code a bit 
> more to make sure that's correct though.
> 
> -- Eric
> 
> 
> Sujit Pal wrote:
> 
> >I am getting the following error when I try to run the ant target from
> >within Anthill (version 1.8.0.264).
> >
> >16:27:42:370 [Thread - AnthillBuildDaemon] ERROR
> >com.urbancode.anthill.BuildManager  - Failed to Build project. Error: 1
> >java.lang.Exception: Failed to Build project. Error: 1
> >        at
(Continue reading)


Gmane