[Anthill] Projects stuck in the build queue

anthill at nillis.com anthill at nillis.com
Thu Jun 10 07:55:47 CDT 2004


We use Anthill for our nightly builds and often (almost daily) run into
cases where projects are stuck in the build queue. Most of the times, the
anthill main page doesn't come up and the only solution is to kill tomcat
and restart.



We tried doing thread dumps and it seems that most of the problems come from
parsing the CVS log; there are several while loops in the CVS repository
adapter that seem to never end.



Example of where we think the problem is:

"Thread - AnthillBuildDaemon" daemon prio=1 tid=0x083bf920 nid=0x6d4a
waiting on condition [4dcc4000..4dcc4998]

    at java.util.ArrayList.toArray(ArrayList.java:274)

    at java.util.ArrayList.addAll(ArrayList.java:434)

    at
com.urbancode.anthill.adapter.CVSRepositoryAdapter.parseLogCommandResult(CVS
RepositoryAdapter.java:240)

    at
com.urbancode.anthill.adapter.CVSRepositoryAdapter.getRevisionsSince(CVSRepo
sitoryAdapter.java:205)

    at
com.urbancode.anthill.BuildManager.requiresBuild(BuildManager.java:345)

    at com.urbancode.anthill.BuildManager.build(BuildManager.java:111)

    at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)

    - locked <0x4527f498> (a com.urbancode.anthill.AnthillProject)

    at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:217)

    - locked <0x4527f498> (a com.urbancode.anthill.AnthillProject)

    at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:195)

    - locked <0x4527f498> (a com.urbancode.anthill.AnthillProject)

    at com.urbancode.anthill.AnthillProject.run(AnthillProject.java:187)

    at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)



Is this a known issue, is there a workaround?



Our environment is:

Anthill version 1.7.0.162

Running on Java 1.4.2_04

Linux

Tomcat 4



Thanks!




More information about the Anthill mailing list