<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ckaiser</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ckaiser"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Ckaiser"/>
	<updated>2026-06-10T02:03:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=The_number_of_processes_seems_to_be_wrong_in_VE&amp;diff=3097</id>
		<title>The number of processes seems to be wrong in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=The_number_of_processes_seems_to_be_wrong_in_VE&amp;diff=3097"/>
		<updated>2007-05-15T09:34:03Z</updated>

		<summary type="html">&lt;p&gt;Ckaiser: /* Disclosure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Problem==&lt;br /&gt;
&lt;br /&gt;
Quite a few people complain at the forum that &amp;lt;tt&amp;gt; vzlist&amp;lt;/tt&amp;gt; command outputs wrong proccess number (e.g. http://forum.openvz.org/index.php?t=tree&amp;amp;goto=12664&amp;amp;#msg_12664). Look:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@HN ~] # vzlist&lt;br /&gt;
VPSID NPROC STATUS IP_ADDR HOSTNAME&lt;br /&gt;
1001 63 running xx.yy.136.88 promo.HN.com&lt;br /&gt;
1002 12 running xx.yy.138.6 video.HN.com&lt;br /&gt;
1003 24 running xx.yy.136.86 db.HN.com&lt;br /&gt;
&lt;br /&gt;
[root@HN ~] # vzctl exec 1001 ps aux | wc -l&lt;br /&gt;
13&lt;br /&gt;
[root@HN ~] # vzctl exec 1002 ps aux | wc -l&lt;br /&gt;
14&lt;br /&gt;
[root@HN ~] # vzctl exec 1003 ps aux | wc -l&lt;br /&gt;
17&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you see, the number is false for [[VE]] 1001 and 1003, but is correct for [[VE]] 1002 (14 = 12 + 1 (wc command) + 1 (ps command)).&lt;br /&gt;
&lt;br /&gt;
==Disclosure==&lt;br /&gt;
&lt;br /&gt;
The thing is that &amp;lt;tt&amp;gt;ps aux&amp;lt;/tt&amp;gt; command outputs only &amp;quot;full-fledged&amp;quot; processes, but not threads. And `vzlist` command counts all processes in [[VE]] including threads. &amp;lt;tt&amp;gt;ps -eLf&amp;lt;/tt&amp;gt; command allows you to see all processes:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@HN ~] # vzctl exec 1001 ps -eLf | wc -l&lt;br /&gt;
65&lt;br /&gt;
[root@HN ~] # vzctl exec 1002 ps -eLf | wc -l&lt;br /&gt;
14&lt;br /&gt;
[root@HN ~] # vzctl exec 1003 ps -eLf | wc -l&lt;br /&gt;
26&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now the outputs suite each other.&lt;br /&gt;
&lt;br /&gt;
[[Category:Troubleshooting]]&lt;/div&gt;</summary>
		<author><name>Ckaiser</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=The_number_of_processes_seems_to_be_wrong_in_VE&amp;diff=3096</id>
		<title>The number of processes seems to be wrong in VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=The_number_of_processes_seems_to_be_wrong_in_VE&amp;diff=3096"/>
		<updated>2007-05-15T09:33:43Z</updated>

		<summary type="html">&lt;p&gt;Ckaiser: /* Disclosure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Problem==&lt;br /&gt;
&lt;br /&gt;
Quite a few people complain at the forum that &amp;lt;tt&amp;gt; vzlist&amp;lt;/tt&amp;gt; command outputs wrong proccess number (e.g. http://forum.openvz.org/index.php?t=tree&amp;amp;goto=12664&amp;amp;#msg_12664). Look:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@HN ~] # vzlist&lt;br /&gt;
VPSID NPROC STATUS IP_ADDR HOSTNAME&lt;br /&gt;
1001 63 running xx.yy.136.88 promo.HN.com&lt;br /&gt;
1002 12 running xx.yy.138.6 video.HN.com&lt;br /&gt;
1003 24 running xx.yy.136.86 db.HN.com&lt;br /&gt;
&lt;br /&gt;
[root@HN ~] # vzctl exec 1001 ps aux | wc -l&lt;br /&gt;
13&lt;br /&gt;
[root@HN ~] # vzctl exec 1002 ps aux | wc -l&lt;br /&gt;
14&lt;br /&gt;
[root@HN ~] # vzctl exec 1003 ps aux | wc -l&lt;br /&gt;
17&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you see, the number is false for [[VE]] 1001 and 1003, but is correct for [[VE]] 1002 (14 = 12 + 1 (wc command) + 1 (ps command)).&lt;br /&gt;
&lt;br /&gt;
==Disclosure==&lt;br /&gt;
&lt;br /&gt;
The thing is that &amp;lt;tt&amp;gt;ps aux&amp;lt;/tt&amp;gt; command outputs only &amp;quot;full-fledged&amp;quot; processes, but not threads. And `vzlist` command counts all processes in [[VE]] including threads. &amp;lt;tt&amp;gt;ps -eLf&amp;lt;/tt&amp;gt; command allows you to see all processes:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@HN ~] # vzctl exec 1001 ps -elf | wc -l&lt;br /&gt;
65&lt;br /&gt;
[root@HN ~] # vzctl exec 1002 ps -elf | wc -l&lt;br /&gt;
14&lt;br /&gt;
[root@HN ~] # vzctl exec 1003 ps -elf | wc -l&lt;br /&gt;
26&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now the outputs suite each other.&lt;br /&gt;
&lt;br /&gt;
[[Category:Troubleshooting]]&lt;/div&gt;</summary>
		<author><name>Ckaiser</name></author>
		
	</entry>
</feed>