I believe you are right, just found likely problem: camel-salesforce connector, too many open file handles, a bit odd the exception is a WARNing, not a ERROR.
On RHEL 7.2/Java 1.8/Camel 2.15.1 -------------- ulimit -n 1024 (just before process shuts down) lsof -i TCP -p 9999 | grep TCP | wc -l 4055 Exception in log ====================== 02-02-17 12:00:14 WARN (A-route) [org.eclipse.jetty.client.HttpExchange]: CONNECTION FAILED SalesforceExchange@32901595=GET//ofi--QA.cs17.my.salesforce.com:443/services/data/v33.0/sobjects/Contact/00360000026G5OqAAK#CONNECTING(54ms)->EXCEPTED(0ms) java.net.SocketException: Too many open files at sun.nio.ch.Net.socket0(Native Method) ~[na:1.8.0_51] at sun.nio.ch.Net.socket(Net.java:416) ~[na:1.8.0_51] at sun.nio.ch.Net.socket(Net.java:409) ~[na:1.8.0_51] at sun.nio.ch.SocketChannelImpl.<init>(SocketChannelImpl.java:105) ~[na:1.8.0_51] at sun.nio.ch.SelectorProviderImpl.openSocketChannel(SelectorProviderImpl.java:60) ~[na:1.8.0_51] at java.nio.channels.SocketChannel.open(SocketChannel.java:145) ~[na:1.8.0_51] at org.eclipse.jetty.client.SelectConnector.startConnection(SelectConnector.java:73) ~[jetty-client-8.1.16.v20140903.jar!/:8.1.16.v20140903] at org.eclipse.jetty.client.HttpDestination.startNewConnection(HttpDestination.java:292) [jetty-client-8.1.16.v20140903.jar!/:8.1.16.v20140903] at org.eclipse.jetty.client.HttpDestination.doSend(HttpDestination.java:597) [jetty-client-8.1.16.v20140903.jar!/:8.1.16.v20140903] at org.eclipse.jetty.client.HttpDestination.send(HttpDestination.java:532) [jetty-client-8.1.16.v20140903.jar!/:8.1.16.v20140903] at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:180) [jetty-client-8.1.16.v20140903.jar!/:8.1.16.v20140903] at org.apache.camel.component.salesforce.internal.client.AbstractClientBase.doHttpRequest(AbstractClientBase.java:174) [salesforce-connector-ofi-2.15.1.redhat-621084.jar!/:2.15.1.redhat-621084] -- View this message in context: http://camel.465427.n5.nabble.com/How-to-shutdown-Camel-context-when-threshold-exceeded-tp5793360p5793376.html Sent from the Camel - Users mailing list archive at Nabble.com.