Make sure you are calling the httpClient outside of your functions and use them globally. You only need to make one client per port you are using. If you are calling system.net.httpClient in a function, it's going to grab a socket from your pool every time it is called. Current version of java in ignition does not close these automatically, so they stay open indefinitely or until the timeout occurs (if you set one).
1 Like