Occasionally, your automated trading strategy, that leverages AlgoTrader's IB Native adapter, may run into an error that manifests itself in the IB Gateway logs with a message like "JTS-DeadlockMonitor..."
This will abort market data flow to your strategy. This happens if port 4001, is held up by a hung process. To resolve this issue, please follow the below steps:
1. Stop IB Client Gateway.
2. Stop your strategy if it is still running.
3. Via the command prompt (Windows OS), run the below command to identify idle/hung activity on port 4001.
netstat -a -o -n
4. Run the below command to terminate the process Id (PID) identified in Step 3.
taskkill /F /PID.
5. Restart IB Gateway and your strategy service.