You are not logged in Log in Join
You are here: Home » Members » mcdonc » HowTos » Get The Select Loop Length

Log in
Name

Password

 

Get The Select Loop Length

To get the ZServer/medusa select loop length of a running Zope:

  • install a superuser username/pwd combination via the "access" file.
  • make sure the monitor client has a port by putting "-m " somewhere in your call to z2.py (probably within your "start" file).
  • start your Zope. Make sure the client is running the monitor port by examining the startup output.
  • connect to the monitor port via: "python ZServer/medusa/monitor_client.py " (enter the superuser password when prompted).
  • Issue the following commands:
      import asyncore
      a = asyncore.socket_map
    
  • Do "len(a)" to find the select loop size at various points during normal operations