Latest Version: 0.9.6.2
  Dashboard > Pylons Cookbook > ... > Troubleshooting > Troubleshooting Threads
  Pylons Cookbook Log In | Sign Up   View a printable version of the current page.  
  Troubleshooting Threads
Added by Graham Higgins, last edited by TJ Ninneman on Jul 10, 2008  (view change)
Labels: 
(None)

Name Space Section Page Version Status Curator Reviewed Author(s)
Troubleshooting Pylons CookBook   Troubleshooting 1.0 Draft Graham Higgins False [

Troubleshooting

Threads

If you suspect a thread-unsafe interaction is causing errors and you're using Paste's HTTP server, put this in your config file to prevent simultaneous requests and see if the problem goes away:

1
2
3
[server:main]
threadpool_workers = 1
threadpool_spawn_if_under = 1

wouldn't this degrade performance?

--alen

Posted by Alen Ribic at Jun 04, 2008 20:10 | Permalink

Yes, it will require that all requests get processed by the single thread (serially). I think the idea here is that this is a debug test to troubleshoot odd behavior, so you would do this on a test system, not your production system.

Posted by Eric Holmberg at Jun 05, 2008 03:42 | Permalink
Site running on a free Atlassian Confluence Open Source Project License granted to Pylons. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.3 Build:#645 Feb 13, 2007) - Bug/feature request - Contact Administrators
Top