Plex 2E

Expand all | Collapse all

Is there a way to end a thread/db connection from the Application Console? If not from the console, is there some other programmatic way to do so?

  • 1.  Is there a way to end a thread/db connection from the Application Console? If not from the console, is there some other programmatic way to do so?

    Posted 01-12-2017 10:10 AM

    We have a limit set on the connections for our plex app server. That limit has been reached due to a connectivity blip with our load balancer causing a number of "orphaned" threads. We would like to avoid restarting the listener and causing a full break in service. Is there any way to "kill" threads in the app console, or programmatically?

    Thanks!



  • 2.  Re: Is there a way to end a thread/db connection from the Application Console? If not from the console, is there some other programmatic way to do so?

    Broadcom Employee
    Posted 01-17-2017 02:12 PM

    Regarding this problem of ghost threads, there is no direct way apart from restarting the dispatcher.

    Basically, when client gets disconnected the associated server thread will be terminated/closed. But in some cases when there is abnormal client shutdown, there might be possibility for having ghost threads left over.

    Killing such threads manually (e.g. with Process explorer) may lead your application in inconsistent state. So we recommend to restart the dispatcher in these situations.

     

    Regards,

    Andy Hebert

    CA Support