Author Message
EugenioRomagnoli
Joined: Nov 28, 2013
Messages: 59
Offline
Dear DevConnect,

Please if you can document how many threads are configured when this parameter is set at value "0" (default) ??
Documentation does not explain the way it works.

Is it recommended to set in a value different from "0" ??
I've seen on previous questions related IC Connector that a value of 10 or 15 is being recommended.
This is a client with 150 max concurrent ivr AEP channels, but peaks at 100.
IVR application does about 3 IC Connector operations per call (newcall + 2 setvdu).

We are experiencing performance issued during peak times.
In the trace.log I can see messages saying "There is no available thread".
And in the same logs, only a max of 1 thread running: "There are 1 active threads currently in process".


21/11/2016 12:06:50:047 DEBUG - ICConnectorManager.doGet: Waiting for notification for request:11796-616
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:false
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpThreadPool: There are 1 active threads currently in process
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.HandleTransfer: URL Params:action=start_script&script=httpvox.transfer&destination=82323&eduid=58330d6800040000ac1f05b923400002
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.getNextActiveHost: Using active host:172.31.5.187:9170:No
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpRequest: in HTTPRequest with hostport:172.31.5.187:9170:No and url params:action=start_script&script=httpvox.transfer&destination=82323&eduid=58330d6800040000ac1f05b923400002
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpRequest: url is:http://172.31.5.187:9170/httpvox.htm
21/11/2016 12:06:50:047 DEBUG - ICConnectorServer.httpRequest: posting:action=start_script&script=httpvox.transfer&destination=82323&eduid=58330d6800040000ac1f05b923400002
21/11/2016 12:06:50:344 DEBUG - ICConnectorManager.doGet: Request string is reqid=11797-593&timeout=8000&cmdType=NewCall&channel=28247&issip=0
21/11/2016 12:06:50:344 DEBUG - ICConnectorManager.doGet: Request undecoded string is reqid=11797-593&timeout=8000&cmdType=NewCall&channel=28247&issip=0
21/11/2016 12:06:50:344 DEBUG - ICConnectorManager.doGet: Waiting for notification for request:11797-593
21/11/2016 12:06:50:344 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:344 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:344 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:344 DEBUG - ICConnectorServer.httpThreadPool: There is no available thread
21/11/2016 12:06:50:344 DEBUG - ICConnectorServer.httpThreadPool: There are no active threads available, retry
21/11/2016 12:06:50:609 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:609 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:609 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:609 DEBUG - ICConnectorServer.httpThreadPool: There is no available thread
21/11/2016 12:06:50:609 DEBUG - ICConnectorServer.httpThreadPool: There are no active threads available, retry
21/11/2016 12:06:50:874 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:874 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:874 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:50:874 DEBUG - ICConnectorServer.httpThreadPool: There is no available thread
21/11/2016 12:06:50:874 DEBUG - ICConnectorServer.httpThreadPool: There are no active threads available, retry
21/11/2016 12:06:50:952 DEBUG - ICConnectorManager.doGet: Request string is reqid=11798-154&timeout=8000&cmdType=NewCall&channel=28224&issip=0
21/11/2016 12:06:50:952 DEBUG - ICConnectorManager.doGet: Request undecoded string is reqid=11798-154&timeout=8000&cmdType=NewCall&channel=28224&issip=0
21/11/2016 12:06:50:952 DEBUG - ICConnectorManager.doGet: Waiting for notification for request:11798-154
21/11/2016 12:06:51:139 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:139 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:139 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:139 DEBUG - ICConnectorServer.httpThreadPool: There is no available thread
21/11/2016 12:06:51:139 DEBUG - ICConnectorServer.httpThreadPool: There are no active threads available, retry
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpThreadPool: There is no available thread
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpThreadPool: There are no active threads available, retry
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpRequest: response took:1357ms for URL:http://172.31.5.187:9170/httpvox.htm
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpRequest: responseCode:200
21/11/2016 12:06:51:404 DEBUG - ICConnectorServer.httpRequest: response is:<count>5</count><portextension>28272</portextension><eduid>58330d6800040000ac1f05b923400002</eduid><destination>82323</destination><returncode>SUCCESS</returncode><errorstring></errorstring>
21/11/2016 12:06:51:404 DEBUG - ICConnectorManager.jobCompleted: Response back: responseType=transfer.response&reqID=11796-616 for req: 11796-616
21/11/2016 12:06:51:404 DEBUG - ICConnectorManager.doGet: Wait time to return response:1357ms for request ID:11796-616
21/11/2016 12:06:51:404 DEBUG - ICConnectorManager.doGet: Looking up 11796-616 and returning response back to caller:responseType=transfer.response&reqID=11796-616
21/11/2016 12:06:51:404 DEBUG - ICConnectorManager.doGet: Time to complete doGet request:1357ms for request ID:11796-616
21/11/2016 12:06:51:670 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:true
21/11/2016 12:06:51:670 DEBUG - ICConnectorServer.httpThreadPool: Thread state is active:false
21/11/2016 12:06:51:670 DEBUG - ICConnectorServer.httpThreadPool: There are 1 active threads currently in process


thanks,
Eugenio R.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
If set to 0 then the default of 3 is used.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
If there is no available thread then the connector delays 250ms and retrys.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
What is your current setting for the thread pool?
EugenioRomagnoli
Joined: Nov 28, 2013
Messages: 59
Offline
Why couñd be the reason that is shown in the logs that no more 1 thread is in use and then says that all threads are in use ??
Also, logs necer show more than 1 thread is in use, and requests have to
This is OD 6 sp 3

Thanks,
Eugenio
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
You did not answer the question above? Maybe you have it configured to 1 thread?
EugenioRomagnoli
Joined: Nov 28, 2013
Messages: 59
Offline
Sorry, didn't see your question.

It is set with the defaul, 0.
RossYakulis
Joined: Nov 6, 2013
Messages: 2652
Offline
Try settingto 15 or 20 and see what happens. I believe you have to restart the server.
EugenioRomagnoli
Joined: Nov 28, 2013
Messages: 59
Offline
Ok, thanks. I will do so.

Eugenio
Go to:   
Mobile view