Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any "remote console" for twisted server?

I am developing a twisted server. I need to control the memory usage. It is not a good idea to modify code, insert some memory logging command and restart the server. I think it is better to use a "remote console", so that I can type heapy command and see the response from the server directly. All I need is a remote console, I can build one by myself, but I don't like to rebuild a wheel. My question is: is there already any remote console for twisted?

Thanks.

like image 817
Fang-Pen Lin Avatar asked Nov 12 '09 11:11

Fang-Pen Lin


2 Answers

twisted.manhole.telnet uses the deprecated module twisted.protocols.telnet. It is recommended to use twisted.conch.manhole instead.

Here are some tutorials of how to use it:

  • Writing a client with Twisted.Conch -- twisted.conch documentation
  • Network programming with the Twisted framework, Part 4 -- IBM developerWorks
  • Twisted Network Programming Essentials - Chapter 10 -- Online book preview
like image 182
Markus Jarderot Avatar answered Nov 02 '22 04:11

Markus Jarderot


Take a look at twisted.manhole

like image 6
mthurlin Avatar answered Nov 02 '22 02:11

mthurlin