<div>Hi, All:</div><div>I am new to twisted, but I am really like the way twisted does. Here is my problem? I write some server program with twisted framework. after it was deployed, I found sometimes twisted thread took too much memory and sometimes the program just halt without any error information.</div>
<div>    the first thing I came with is debugging. After searching in google,  It seems twisted manhole was the right thing I should turn to. But another problem comes now. I can telnet successfully, but I cannot run any commands, such as &quot;dir()&quot;. I always get the same error &quot;?Unknown argument&quot;. &lt;br/&gt;</div>
<div>Is there anyone can help me out? there is very few information about how to use twisted manhole, even in twisted document. can anyone give me some documents or links about twisted manhole?&lt;br/&gt;</div><div>Thanks a lot. &lt;br/&gt;</div>
<div>here is how I add manhole to my program:&lt;br/&gt;</div><div><br></div><div>    application = service.Application(settings.get(&#39;PROJECT_NAME&#39;))</div><div>    multiService = service.MultiService()</div><div><br>
</div><div>    server = Server() #my original server instance</div><div>    multiService.addService(server)</div><div>    namespace = {&quot;server&quot;: server}</div><div>    from twisted.conch.manhole_tap   import makeService</div>
<div>    options = \</div><div>    {</div><div>    # for some reason, these must</div><div>    # all exist, even if None</div><div>    &#39;namespace&#39;  : namespace,</div><div>    &#39;passwd&#39;     : None, #&#39;pwd.txt&#39;,</div>
<div>    &#39;sshPort&#39;    : None,</div><div>    &#39;telnetPort&#39; : &#39;8089&#39;,</div><div>    }</div><div>    shell_service = makeService(options)</div><div>    multiService.addService(shell_service)</div><div>
    multiService.setServiceParent(application)</div><div><br></div>