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 uses threads to share the load of incoming requests. The number of threads can be increased in etc/zope.conf. -aj --On Montag, 25. Oktober 2004 9:39 Uhr +0200 Ulrich Wisser <ulrich.wisser@relevanttraffic.se> wrote:
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@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 )
if you are running zope in debug mode (the default) zope uses only one thread. Robert Ulrich Wisser wrote:
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@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 )
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@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@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@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Ulrich Wisser Sent: Monday, October 25, 2004 3:40 AM To: zope@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@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 )
Hi, sorry for the delay. Urgent business trip. after several days of running zope my linux box says: top: 21800 zope 25 0 2212 4 0 S 1.5 0.0 6:13 0 python ps: 21800 ? S 0:00 /home/zope/bin/python /home/zope/z2.py -Z1 -t5 -X -w8080 -M /home/zope/var/bigm.log -l /home/zope/var/event.log 21801 ? S 6:15 /home/zope/bin/python /home/zope/z2.py -Z1 -t5 -X -w8080 -M /home/zope/var/bigm.log -l /home/zope/var/event.log Any idea why zope won't spawn more threads? I have zope running on several servers but never had any problem like that. Ulrich
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@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@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@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Ulrich Wisser Sent: Monday, October 25, 2004 3:40 AM To: zope@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@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 )
participants (4)
-
Andreas Jung -
robert rottermann -
Sean Hastings -
Ulrich Wisser