2,253
edits
Changes
m
Robot: Automated text replacement (-VE +container)
</pre>
As you see, the number is false for [[VEcontainer]] 1001 and 1003, but is correct for [[VEcontainer]] 1002 (14 = 12 + 1 (wc command) + 1 (ps command)).
==Disclosure==
The thing is that <tt>ps aux</tt> command outputs only "full-fledged" processes, but not threads. And `vzlist` command counts all processes in [[VEcontainer]] including threads. <tt>ps -eLf</tt> command allows you to see all processes:
<pre>
[root@HN ~] # vzctl exec 1001 ps -eLf | wc -l