# win\_get\_url terrible performance, help on metric gathering and troubleshooting?

**URL:** <https://forum.ansible.com/t/win-get-url-terrible-performance-help-on-metric-gathering-and-troubleshooting/25312>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 23, 2017, 7:20am UTC](https://forum.ansible.com/t/win-get-url-terrible-performance-help-on-metric-gathering-and-troubleshooting/25312 "2017-08-23T07:20:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bob/32/9260_2.png) [@bob](https://forum.ansible.com/u/bob)\
**Post date:** [August 23, 2017, 7:20am UTC](https://forum.ansible.com/t/win-get-url-terrible-performance-help-on-metric-gathering-and-troubleshooting/25312/1 "2017-08-23T07:20:13Z")

</div>

I have an IIS web server and 13 Windows 7 computers on the same VLAN.

On each Windows 7 computer I want to win\_get\_url a 182M file from the IIS server.

Here is the ansible play

- name: download installer files  
win\_get\_url:  
url: “{{ item.url }}/{{ item.file }}”  
dest: “{{ item.dest }}\{{ item.file }}”  
force: no  
with\_items:
- “{{ \_installers }}”  
tags: installer

It take almost 45 minutes to transfer the 182M file.

Opening up Google Chrome to “{{ item.url }}/{{ item.file }}” the file downloads in a few seconds.

I have cygwin installed and wget “{{ item.url }}/{{ item.file }}” only takes a few seconds.

How do I gather metrics so I can open up an intelligent github issue?

I don’t want to open a generic “it’s slow for me” issue, which is normally followed by developer saying “it works for me”.

ANSIBLE\_DEBUG=1 and -vvvv do not return any sort of recognizable performance metrics (I’ll admit I don’t know what to took for)

[https://github.com/ansible/ansible/issues/23450](https://github.com/ansible/ansible/issues/23450) seems to be complaining about win\_copy performace

Not sure how the powershell part of the transfer happens, but some big time differences on what powershell method you use for the transfer. Documentation at here: [https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell](https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell)

Let me know what I can do to provide addition information.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [August 23, 2017, 1:36pm UTC](https://forum.ansible.com/t/win-get-url-terrible-performance-help-on-metric-gathering-and-troubleshooting/25312/2 "2017-08-23T13:36:12Z")

</div>

That’s weird, I’ve used win\_get\_url to download files in the gigabyte range without any performance issues. One thing I would recommend is to try the powershell command below and post the results in the github issue.

)New-Object System.Net.WebClient).DownloadFile(“put the URL here”, “put the dest file path here”)

If you can try running this command locally and through the win\_shell/raw module and see what the performance is like.

System.Net.WebClient is what is used in that module so should be a good way to easily replicate whether it is the download that is being slow.

Thanks

Jordan
