Hi,

I have jsut moved a production site from Zope2 to Zope3. I used
zopeproject to download the necessary eggs and started my site using
paste serve deploy.ini.

Under moderate traffic however, the site stops responding soon. I have
to regularily restart the server.

When the site stops responding, 'ps -Af | grep python2.5' shows
hundreds of process of paster running. And the process number
increases with time rapidly, like:

root     20230 18557  0 11:16 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20231 18557  0 11:16 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20237 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20248 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20249 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20250 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20251 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20252 18557  0 11:17 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini
root     20284 18557  0 11:18 ?        00:00:00 /usr/bin/python2.5
bin/paster serve deploy.ini

Looking into z3.log, I found lots of alarming error messages like:

2008-03-03T11:01:57 INFO paste.httpserver.ThreadPool No idle tasks,
and only 0 busy tasks; adding 5 more workers
------
2008-03-03T11:01:58 CRITICAL ZODB.DB DB.open() has 253 open
connections with a pool_size of 7
------
2008-03-03T11:01:58 CRITICAL ZODB.DB DB.open() has 254 open
connections with a pool_size of 7
------
2008-03-03T11:01:59 CRITICAL ZODB.DB DB.open() has 255 open
connections with a pool_size of 7
------
2008-03-03T11:01:59 CRITICAL ZODB.DB DB.open() has 256 open
connections with a pool_size of 7
------
2008-03-03T11:01:59 CRITICAL ZODB.DB DB.open() has 257 open
connections with a pool_size of 7
------
2008-03-03T11:02:35 INFO paste.httpserver.ThreadPool No idle tasks,
and only 0 busy tasks; adding 5 more workers
------
2008-03-03T11:02:36 CRITICAL ZODB.DB DB.open() has 258 open
connections with a pool_size of 7
------

What's wrong with my installation?

For your information, the following related components are installed:

PasteDeploy-1.3.1
Paste-1.6
ZODB3-3.9.0_dev

I am running these with Python2.5. The site uses ZAlchemy to connect
to PostgreSQL database and uses ZODB for session variables.

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to