[Zope-dev] ZEO 2.0 testConnection() takes 30 seconds (MountedStorage)

Brad Clements bkc@murkworks.com
Fri, 08 Nov 2002 14:01:38 -0500


I'm using mounted storage.. Whenever my Zope server restarts, it takes 30 seconds 
after the first web hit before it's really up and running because testConnection() is 
called by "somebody".

1. Why does testConnection() take 30 seconds to run, or is it something else?

2. Why is testConnection() being called  at all, since there is only one server so there's 
nothing to fall back to?

Anyone have any ideas where to look for more clues? Maybe it's not testConnection..

2002-11-08T13:57:27 INFO(0) ZODB Opening database for mounting: "{'host':'localhost','port':'4400','storage':'Common',}"
------
2002-11-08T13:57:27 INFO(0) ZCS:4080 ClientStorage (pid=4111) created RW/normal for storage: 'Common'
------
2002-11-08T13:57:27 INFO(0) ZEC ClientCache: storage='Common', size=20971520; file[0]='/home/bkc/Zope/Manage/var/cCommon-Common-4400-0.zec'
------
2002-11-08T13:57:27 INFO(0) ZCS:4080 Testing connection <ManagedConnection ('127.0.0.1', 4400)>
------
2002-11-08T13:57:57 INFO(0) ZCS:4080 Connected to storage
------
2002-11-08T13:57:57 INFO(0) ZEC read_index: cache file 0 has 122 records and 386963 bytes
------
2002-11-08T13:57:57 INFO(0) ZODB Mounted database "{'host':'localhost','port':'4400','storage':'Common',}" at Managers/Common
Exception exceptions.AttributeError: "Connection instance has no attribute '_Connection__connection'" in <method Connection.close of Connection instance at 0x8bea73c> ignored


Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
AOL-IM: BKClements