Threads vs. Cache size

by Ivo van der Wijk last modified Dec 30, 2008 03:01 PM
Understanding how the number of running Zope threads should influence your choice of ZODB cache size.

Zope allows you to configure the number of threads it uses and the size of the ZODB caches per thread. A good mix is usually few threads, large caches. Increasing the ZODB cache size is usually one of the very first things you should do when trying to improve performance.

The total memory usage of your Zope server will depend on number_of_threads*cache_size. Make sure that your Zope server does not run into swap (or at least not too soon) - loading objects from ZODB is probably more efficient than swapping (cache) memory.