<div>Hi.</div>
<div>I'm twisted beginner. and My english is not good. ^^;;</div>
<div> </div>
<div>I have some troubles using Twisted.</div>
<div> </div>
<div>I make a web server with Twisted.</div>
<div> </div>
<div>I'd like to test my webserver performance. </div>
<div> </div>
<div>So Using "httperf", I test my webserver.</div>
<div> </div>
<div>But <strong>result in</strong>,</div>
<div> File "/usr/local/lib/python2.3/site-packages/twisted/python/log.py", line 52, in callWithContext</div>
<div>
<p> File "/usr/local/lib/python2.3/site-packages/twisted/python/context.py", line 64, in callWithContext</p>
<p> File "/usr/local/lib/python2.3/site-packages/twisted/python/context.py", line 43, in callWithContext</p>
<p> File "/usr/local/lib/python2.3/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite</p>
<p> --- <exception caught here> ---<br> File "/usr/local/lib/python2.3/site-packages/twisted/internet/tcp.py", line 625, in doRead</p>
<p> File "/usr/local/lib/python2.3/socket.py", line 167, in accept</p>
<p> socket.error: (24, 'Too many open files')</p>
<p> </p>
<p>I think the reason is <strong>file open limit per one process(maybe 1024).</strong></p>
<p>how can I solve this problem?</p>
<p>I'd like to</p>
<p>If Process <strong>can not open file</strong>, that request make wait-status<strong>(not allow socket accept).</strong></p>
<p>and when Process can open file, handle the request.</p>
<p> </p></div>