Thanks for reply.<br><br>Now, I have two new questions.<br><br>(1) , spawn-fcgi -f FILE -a IP -p PORT -F 6<br> use -F flag to spawn 6 text.py processes.<br><br> And in this webbench shows that more text.py processes does not have a better <br>
performance than single text.py process.<br><br> Why?<br><br><br>(2), Same as the question 1 , there is a multi-processes test .<br> But this time I use nginx's reverse proxy and upstream .<br><br> Like this:<br>
<br> nginx.config:<br><br> upstream test {<br> server <a href="http://127.0.0.1:8080">127.0.0.1:8080</a>;<br> server <a href="http://127.0.0.1:8081">127.0.0.1:8081</a>;<br> server <a href="http://127.0.0.1:8082">127.0.0.1:8082</a>;<br>
}<br><br> location / {<br> proxy_pass <a href="http://test">http://test</a>;<br> proxy_redirect off;<br> proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
}<br><br><br> copy test.py twice ,named test1.py and test2,py <br> And run them in turn: <br> python test.py<br> python test1.py 8081<br> python test2.py 8082<br><br><br> This situation is totally different from question 1 .<br>
This use web.py's web server itself and ONE port with ONE single test.py process.<br><br> But this time , webbench still show that the performance does not increase .<br><br> Why?<br><br><br><br> Why multi-processes don't show a better performance than single one processes?<br>
<br><br> Is it that my python web app is to simple ? It just render some plain text.<br> So ,this app is so easy that just one single process is enough?<br><br> Today I used the ab tool test the web .It shows that 'Request Per Second' is just about 110 . Is this number too little ?<br>