# LTM VE: task using high CPU

**URL:** <https://community.f5.com/t/ltm-ve-task-using-high-cpu/8894>\
**Category:** Technical Forums\
**Tags:** ltm, application-delivery\
**Created:** [December 28, 2016, 10:49am UTC](https://community.f5.com/t/ltm-ve-task-using-high-cpu/8894 "2016-12-28T10:49:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Z\_148422](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@Bob\_Z\_148422](https://community.f5.com/u/Bob_Z_148422)\
**Post date:** [December 28, 2016, 10:49am UTC](https://community.f5.com/t/ltm-ve-task-using-high-cpu/8894/1 "2016-12-28T10:49:35Z")

</div>

Every now and then a task stats running at high CPU and causes a lag in normal transactions.

I see that five processes are created very frequently and I assume they are for a request going through the LTM. The command names are made up of ten random alpha characters and there are almost always five of them and they disappear very quickly.

However occasionally one of the task doesn’t terminate and sometimes it uses 30% of the available CPU.

How can I diagnose what is happening?

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [December 28, 2016, 3:45pm UTC](https://community.f5.com/t/ltm-ve-task-using-high-cpu/8894/2 "2016-12-28T15:45:43Z")

</div>

Hey Bob!

Try running this:

```tcl
watch -n1 "ps aux | awk '{if(\$3 > 10){ print \$0 }}' >> /var/tmp/psstat.log"

```

What it does is to once per second capture the CPU usage of processes using more than 10% CPU (increase the limit if you see fit) and logs it into

```tcl
/var/tmp/psstat.log

```

Then you can sort it by running:

```tcl
cat /var/tmp/psstat.log | sort -rk 3,3

```

If you can paste the rows containing the mysterious process we might be able to figure it out.

/Patrik
