Java build hangs on build agent

Hi,
The build is hanging for Java project. Ant build runner is used for building the application and the svn is the version control tool.
Below is the exceprt from build log
[17:08:41]: Checking for changes
[17:08:39]: Clearing temporary directory: /opt/app/TeamCityBuildAgent/temp/buildTmp

The build hangs at very initial build stage i.e. at clearing temp directory stage. We have verified all other server and agent logs and we don't see any message that can provide us lead on why the build is hanging even  before starting the checkout.
The build configuration was working earlier.
Attaching the build agent dump for investigation.

Regards
Ruby


Attachment(s):
Threaddump-teamcity-20110609.dump.zip
4 comments
Comment actions Permalink

Agent is trying to determine free space on disk where checkout directory is located. Is checkout directory located on a network drive?

0
Comment actions Permalink

Yes the checkout directory is located on a network drive . This is the drive that has agent installed on it. The drive has

enough space to store all the required artifacts and sometimes the build work on this machine and sometimes starts giving this error.

Can you please suggest what might be causing the problem?

0
Comment actions Permalink

According to thread dump the agent is hanging here:
   java.lang.Thread.State: RUNNABLE
    at java.io.UnixFileSystem.getSpace(Native Method)
    at java.io.File.getFreeSpace(File.java:1622)

I.e. at java.io.UnixFileSystem.getSpace() native method of JVM itself. What version of Java do you use? Personally, I think the problem is somewhere between JVM and Unix kernel. Probably JVM can't determine free space reliably in your case. Maybe you are using some non-standard hardware for the network storage, some non-standard drivers.

0
Comment actions Permalink

Thanks this helped

:)
0

Please sign in to leave a comment.