I don't think the issue is related to your VPN or any other network 
operation.  The "git show" command does not access the network (at least as far 
as I can tell).  Unfortunately, I also suspect that if you perform that same 
command on one of the git repositories Jenkins is using, you'll see the same 
poor performance.  At least that's what I saw.  The "git show" command seems to 
have cases where it has serious performance problems.

If you are not using any inclusion definitions or exclusion definitions or 
excluded authors in your Jenkins job definition, then the next release of the 
git plugin should remove those "git show" calls completely.  I submitted a pull 
request for the git plugin to avoid them for those cases where the user did not 
define any inclusions or exclusions.  The pull request was accepted and is now 
on the git-plugin source stream, ready for the next release of the plugin.

In case you're interested, "git show" is used to answer the question "is this 
submission excluded?"  If you are not defining any inclusion regions nor 
exclusion regions nor excluding any authors, then the check should always be 
false (no definition for inclusion or exclusion conditions means exclusion is 
not possible).

Refer to https://github.com/jenkinsci/git-plugin/pull/122 if you'd like to see 
the pull request.

Refer to 
https://groups.google.com/d/topic/jenkinsci-users/FjjaD7cawVs/discussion for an 
earlier mail thread on the topic

Thanks!
Mark Waite





>________________________________
> From: Ryan Doherty <rdohe...@smugmug.com>
>To: jenkinsci-users@googlegroups.com 
>Sent: Monday, January 28, 2013 2:56 PM
>Subject: Re: [git plugin] 'git show' command extremely slow
> 
>
>Yeah, I'd like to do that too, unfortunately it's not possible with our 
>current network limitations. (everything behind vpn access). 
>
>
>
>On Mon, Jan 28, 2013 at 1:49 PM, nicolas de loof <nicolas.del...@gmail.com> 
>wrote:
>
>would be far more efficient for you to setup a post-commit hook, 
>>"poling must die" :P
>>
>>
>>2013/1/28 <rdohe...@smugmug.com>
>>
>>For the past few weeks our git checkouts from github have gotten slower and 
>>slower (now resulting in updates for one small commit taking > 1 minute and 
>>multiple commit updates taking up to 10 minutes). We have the git plugin 
>>setup to poll every 2 minutes.
>>>
>>>
>>>Doing some debugging I see jenkins running this command as an example:
>>>
>>>
>>>{code}
>>>git show --no-abbrev --format=raw -M --raw 
>>>78647a604113f2a92bc5a2bcfe66d11f32b9eb5d..dfa77c7d049c3f50ca4dc40905320f5479a54227
>>>{code}
>>>
>>>
>>>This commands appears to take up a lot of time as I did a `ps aux | grep 
>>>git` multiple times over a few minutes and the above git command was 
>>>displayed while top showed git taking up 99% of the jenkins server's cpu.
>>>
>>>
>>>Jenkins log:
>>>Started on Jan 28, 2013 11:34:50 AM
Using strategy: Default
[poll] Last Build : #109
[poll] Last Built Revision: Revision da02f948df4007572b88b7a5cf9734065c1fe2c7 
(origin/-----)
Fetching changes from the remote Git repositories
Fetching upstream changes from g...@github.com:---/----.git
Polling for changes in
Done. Took 7 min 17 sec
Changes found
>>>
>>>
>>>Is there some way to speed up this command? (via changing jenkins 
>>>configuration or possibly a server config change). 
>>>
-- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"Jenkins Users" group.
>>>
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
>>>
>>>For more options, visit https://groups.google.com/groups/opt_out.
>>> 
>>> 
>>>
>>
>> -- 
>>You received this message because you are subscribed to the Google Groups 
>>"Jenkins Users" group.
>>To unsubscribe from this group, send email to 
>>jenkinsci-users+unsubscr...@googlegroups.com.
>>For more options, visit https://groups.google.com/groups/opt_out.
>> 
>> 
>>
>
>
>
>-- 
>-Ryan
>
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to