# pexpect module pegging cpu ram to 100%

**URL:** <https://forum.ansible.com/t/pexpect-module-pegging-cpu-ram-to-100/38464>\
**Category:** Ansible Project\
**Created:** [September 26, 2023, 1:21pm UTC](https://forum.ansible.com/t/pexpect-module-pegging-cpu-ram-to-100/38464 "2023-09-26T13:21:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kathy\_L](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kathy_l/32/2652_2.png) [@Kathy\_L](https://forum.ansible.com/u/Kathy_L)\
**Post date:** [September 26, 2023, 1:21pm UTC](https://forum.ansible.com/t/pexpect-module-pegging-cpu-ram-to-100/38464/1 "2023-09-26T13:21:32Z")

</div>

We are using the pexpect module when running asynchronously and telling it to open /bin/bash. (This is all trying to get master sockets working). When we do this from a Debian 10 or Debian 11 hosts operating against another Debian 10 or Debian11 host it pegs the cpu to 100% and hangs. We’ve tried this on Ansible 7.7, 8.1 and 8.4 and they all behave the same way. Has anyone used this before in this manner?
