[Zope] Number of Zope process on Linux

Sean Hastings whysean at softhome.net
Mon Oct 25 15:08:13 EDT 2004


It may be that you are seeing only 2 processes right after starting Zope. The additional processes that handle requests are not spawned until the first request happens. I am not running ZEO, so I see 1 process until the first request (with ZEO running that may be why you see 2). Right after restart it looks like this:

---------
[root at localhost bin]# top -u zopeuser
top - 15:00:00 up 19 days, 44 min,  1 user,  load average: 0.16, 0.07, 0.02
Tasks:  48 total,   1 running,  47 sleeping,   0 stopped,   0 zombie
Cpu(s):   0.0% user,   0.0% system,   0.0% nice, 100.0% idle
Mem:   1032372k total,   917820k used,   114552k free,    76236k buffers
Swap:   506008k total,        0k used,   506008k free,   584252k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+   PPID COMMAND
15441 zopeuser  15   0 25904  25m 3520 S  0.0  2.5   0:01.85 20153 python
---------


After I make a request to the zope server I see this:


---------
[root at localhost bin]# top -u zopeuser
top - 15:03:19 up 19 days, 47 min,  1 user,  load average: 0.00, 0.03, 0.00
Tasks:  53 total,   1 running,  52 sleeping,   0 stopped,   0 zombie
Cpu(s):   0.0% user,   0.0% system,   0.0% nice, 100.0% idle
Mem:   1032372k total,   923072k used,   109300k free,    76276k buffers
Swap:   506008k total,        0k used,   506008k free,   584260k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+   PPID COMMAND
15443 zopeuser   9   0 31076  30m 3556 S  0.0  3.0   0:00.00 15441 python
15444 zopeuser   9   0 31076  30m 3556 S  0.0  3.0   0:00.00 15443 python
15445 zopeuser   9   0 31076  30m 3556 S  0.0  3.0   0:00.00 15443 python
15446 zopeuser  17   0 31076  30m 3556 S  0.0  3.0   0:01.31 15443 python
15447 zopeuser   9   0 31076  30m 3556 S  0.0  3.0   0:00.00 15443 python
15441 zopeuser   9   0 31076  30m 3556 S  0.0  3.0   0:01.86 20153 python
--------


--Sean


> -----Original Message-----
> From: zope-bounces at zope.org [mailto:zope-bounces at zope.org]On Behalf Of
> Ulrich Wisser
> Sent: Monday, October 25, 2004 3:40 AM
> To: zope at zope.org
> Subject: [Zope] Number of Zope process on Linux
> 
> 
> Hi,
> 
> I am running Zope on Linux (RH 9). Performance is not that great (to say 
> the least). I can see only two Zope processes and only one seems to use 
> any cpu time.
> 
> Is that supposed to be like that? Should I do anything about it? If so, 
> what do I need to do?
> 
> I realize that this has been discussed before, I just couldn't find the 
> thread in the archives or through Google.
> 
> TIA
> 
> Ulrich
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 



More information about the Zope mailing list