title: Python tornado web server: How to use multiprocessing to speed up web application
body: <p>I have a web application that runs fine when used by one user, but as more clients start using it, it is unbearably slow. The server side is written in python and uses tornado. I noticed that while the server it's running on has 4 cores, only 1 is being used, so I've started looking at python's multiprocessing. I've seen the basic example from: <a href="http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html" rel="nofollow">http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html</a> and the tornado processors from:
  <a href="http://tornado.readthedocs.org/en/latest/_modules/tornado/process.html" rel="nofollow">http://tornado.readthedocs.org/en/latest/_modules/tornado/process.html</a> (which seems a bit more complicated), but I'm still not sure this is what I'm looking for. Will running this code with 4 processors speed it up when say 50 users are viewing it at once? And if so are one of these options the way to go for implementation when using tornado web server?</p>
  
  <p>Sorry for the vague and poorly written question - my lack of experience with multiprocessing is to blame for this, even after extensive research. If any example code will help with answering this question, please let me know.</p>
  
  <p>Thanks!</p>