1 [DEFAULT] 2 error_email = ianb (a] colorstudy.com 3 4 [app:main] 5 use = egg:PasteScript#test 6 7 [server:main] 8 use = egg:Paste#http 9 host = 127.0.0.1:8081 10 # These options make it easier to trigger the thread pool catches 11 # (i.e., threads are hung fast, killed fast, spawn fast, and the 12 # whole process dies quickly due to zombies) 13 threadpool_workers = 3 14 threadpool_hung_thread_limit = 10 15 threadpool_kill_thread_limit = 20 16 threadpool_spawn_if_under = 2 17 threadpool_max_zombie_threads_before_die = 2 18 threadpool_hung_check_period = 1 19 threadpool_dying_limit = 10 20 21 [server:cherrypy] 22 use = egg:PasteScript#cherrypy 23 host = 127.0.0.1:8080 24 25 [filter-app:watch_threads] 26 use = egg:Paste#error_catcher 27 debug = true 28 next = watch_threads_inner 29 30 [app:watch_threads_inner] 31 use = egg:Paste#urlmap 32 /bad = bad_app 33 / = watch_app 34 35 [app:watch_app] 36 use = egg:Paste#watch_threads 37 allow_kill = true 38 39 [app:bad_app] 40 paste.app_factory = paste.debug.watchthreads:make_bad_app 41 42 43