This Question is Answered

2 "helpful" answers available (2 pts)
10 Replies Last post: Jan 27, 2010 8:16 PM by Kirill Maximov  
Steve Chen Newbie 22 posts since
Mar 31, 2008
Currently Being Moderated

Jan 14, 2010 9:24 PM

Server stops collecting changes

Hi,

 

I am running TeamCity 5.0.1 Enterprise (build 10715).  After a few days of uptime, TeamCity seems to stop collecting changes.  When this happens, even forcing the server to check for pending changes does not find anything.  If you start a build manually, the pending changes do get collected and show up in the UI. 

 

Also, when the server is in this state, VCS triggers do not work obviously, but even time-based triggers do not work, so I think the two may be related.

 

The last occurrence of this was yesterday, Jan 13 at 17:19.  When I look through the teamcity-vcs.log file, I can see that there are constantly log entries for VCS change collections, until that time.  Then it only seems to collect changes when a build is run.  When I watch the log file and force collecting changes through the UI, nothing shows up in the log.  After bouncing the server, everything goes back to normal.

 

If there is any more data I can collect that might be useful, please let me know, otherwise any help with this issue would be great.  I've looked through all the other server logs around the time the collection stopped and did not see anything out of the ordinary, but if you'd like to see the logs I have saved them off.

 

I have attached the teamcity-vcs.log from this time, with the repository urls and project names removed.  Our VCS changes check interval is set to 300 seconds and we use subversion for our VCS.

 

Thanks,

 

--Steve

Attachments:
Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 15, 2010 5:11 PM in response to: Steve Chen
Re: Server stops collecting changes

Hello Steve,

 

  Looks you're right - changes stopped collecting near 17:19. It is not clear what caused the problem. The best way for that is to take a thread dump at the moment when changes stop collecting.

  Please see instructions in our docs.

 

  Kind regards,

  KIR

Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 20, 2010 3:27 PM in response to: Steve Chen
Re: Server stops collecting changes

Hello Steve,

 

   Basically, you're right with the diagnostics. When a SVN+SSH connection is made, a global lock is obtained.

   The lock is needed to provide connection pooling which is used SVNKit's SVN+SSH session implementation.

 

   If there is a hang during obtaining the connection, other processes will be blocked on the lock.

   You can try disabling connection pooling by setting system property svnkit.ssh2.persistent=false for the

   TeamCity process, this should prevent the locking.

 

   It also looks like SVN+SSH connections have no connection timeout - and I'll try to fix this problem.

 

   Kind regards,

   KIR

Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 22, 2010 2:51 PM in response to: Steve Chen
Re: Server stops collecting changes

Hello Steve,

 

   Looks like you've done everything right. The problem you're experiencing is caused by a hanging connection to SVN+SSH server.

   This connection blocks other background processes which detect changes. I'm not sure why do you have this problem with connection, may be

   server overload, bad network, something else.

   The workaround could be to avoid using SSH and use plain SVN protocol.

 

   May I ask to to make an experiment. Please download SVNKit library . Unzip it. This library contains bin/jsvn script, which is an analog of simple svn command.

   Please try to checkout your proect sources using bin/jsvn co svn+ssh://your.repo and compare results with native svn checkout speed.

 

   Regards,

   KIR

Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 27, 2010 3:44 PM in response to: Steve Chen
Re: Server stops collecting changes

Hello Steve,

 

  Thanks for your benchmarks, looks like they are normal. We've had an issue with extreme slowness of SVNKit's svn+ssh access,

  but it looks like this is not the case.

 

  I've posted your issue as http://youtrack.jetbrains.net/issue/TW-10843 , please watch it.

 

  Thanks again,

  KIR

Kirill Maximov JetBrains 2,196 posts since
Aug 23, 2002
Currently Being Moderated
Jan 27, 2010 8:16 PM in response to: Steve Chen
Re: Server stops collecting changes

Hello Steve,

 

  The timeout parameter will be available in 5.0.2. Thanks for your help!

 

  Regards,

  KIR

More Like This

  • Retrieving data ...