1. cherrypy
  2. CherryPy
Issue #1313 resolved

When running under quickstart(), thread pool does not increase

Tiago Fassoni
created an issue

I have an application which receives a lot of requests, and both Cherrypy 3.2.2 and 3.2.6 do not seem to increase the initial 10 threads to accomodate the load.

Below there is an example of the problem. Cherrypy does not increase the thread pool. I tried setting a explicit number for server.thread_pool_max, to no avail.

import cherrypy, time

class Test:
    def page1(self):
        # Simulate long operation
        print("Entered request")
        return "*Yawn*"

    'tools.sessions.on': True,
    'tools.sessions.storage_type': 'ram',
cherrypy.quickstart(Test(), '/')

Comments (2)

  1. Tiago Fassoni reporter

    First of all, thanks for the quick reply!

    One doubt, though: why is there a ThreadManager plugin and parameters for maximum number of threads if CherryPy does not have a dynamic thread pool?

  2. Log in to comment