# ansible-connection not released and high CPU usage

**URL:** <https://forum.ansible.com/t/ansible-connection-not-released-and-high-cpu-usage/25867>\
**Category:** Ansible Project\
**Created:** [October 30, 2017, 2:57pm UTC](https://forum.ansible.com/t/ansible-connection-not-released-and-high-cpu-usage/25867 "2017-10-30T14:57:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gacquewi](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gacquewi](https://forum.ansible.com/u/gacquewi)\
**Post date:** [October 30, 2017, 2:57pm UTC](https://forum.ansible.com/t/ansible-connection-not-released-and-high-cpu-usage/25867/1 "2017-10-30T14:57:40Z")

</div>

Hello

I do use Ansible 2.4 to manage 300 cisco switches.

4 ansible connections are stuck at every run.

`  
USER %CPU %MEM STAT START TIME COMMAND  
me 99.5 0.1 R 12:01 223:06 /usr/bin/python /usr/bin/ansible-connection  
me 99.4 0.1 R 12:01 222:47 /usr/bin/python /usr/bin/ansible-connection  
me 99.6 0.1 R 12:07 217:17 /usr/bin/python /usr/bin/ansible-connection  
me 99.5 0.1 R 12:07 217:09 /usr/bin/python /usr/bin/ansible-connection

`

The ansible log tells me which hosts are causing the problem but none is said about the reason that keeps the ansible-connection up and why it takes 100% CPU.

Any idea ?

The playbooks are just a sequence of ios\_command tasks followed by a serialization of the results.

`
