Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

The number of processes seems to be wrong in VE

21 bytes added, 11:36, 11 March 2008
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
2,253
edits