On Monday 17 Jun 2002 11:47 am, Андрей Пучин wrote:
Hello!
I have tested ZOPE under heavy load (about 100-200 users simultaneously) and noticed that 2 zope running on 1 PC works (processing requests) faster than 1.
In the case of 2 zopes, was this running ZEO, or with two independant storages? Was your benchmark IO-bound (referencing many different pages from a huge datase) or processor-bound (so that all your pages would fit in ZODB cache, and the storage is not touched)
Zope runs under Windows XP with -t 10 options.
So that means you have either 10 or 20 worker threads. right? ZODB has a hard-coded limit of 7 database connections per process, so in fact only 7 or 14 can run concurrently. -t 7 should give you the same performance figures.
What's wrong with my ZOPE installation?
What makes you think there is something wrong?
Is there any performance tune tricks??
Firstly, upgrade to 2.6alpha1. It has several performance improvements. 10 or 20 worker threads is probably too many unless your pages are IO-bound. Zope uses one dedicated thread to trickle requests back to clients so, unlike Apache, you dont need to scale the number of threads with the number of clients. Each worker thread has its own copy of the ZODB cache. You may get better performance with few threads (say, "-t 4", perhaps even "-t 2"), but giving each thread a bigger ZODB cache (which you can tweak in Control_Panel)