1[DEFAULT]
2error_email = ianb@colorstudy.com
3
4[app:main]
5use = egg:PasteScript#test
6
7[server:main]
8use = egg:Paste#http
9host = 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)
13threadpool_workers = 3
14threadpool_hung_thread_limit = 10
15threadpool_kill_thread_limit = 20
16threadpool_spawn_if_under = 2
17threadpool_max_zombie_threads_before_die = 2
18threadpool_hung_check_period = 1
19threadpool_dying_limit = 10
20
21[server:cherrypy]
22use = egg:PasteScript#cherrypy
23host = 127.0.0.1:8080
24
25[filter-app:watch_threads]
26use = egg:Paste#error_catcher
27debug = true
28next = watch_threads_inner
29
30[app:watch_threads_inner]
31use = egg:Paste#urlmap
32/bad = bad_app
33/ = watch_app
34
35[app:watch_app]
36use = egg:Paste#watch_threads
37allow_kill = true
38
39[app:bad_app]
40paste.app_factory = paste.debug.watchthreads:make_bad_app
41
42
43