@michi @david @NCO
I’m having also “out of memory exceptions” since using this binding. All starts with some “UnknownHostException” from the binding, followed by a lot off “OutOfMemoryError” Exceptions.
After that I see that openHab is unable to stop httpClient Threads. Maybe this could be the reason, just guessing?
Greets Udo
Request to url 'https://alexa.amazon.de/api/devices-v2/device?cached=false' fails with unkown error
java.net.UnknownHostException: alexa.amazon.de
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
at java.net.Socket.connect(Socket.java:589) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673) ~[?:?]
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) ~[?:?]
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequest(Connection.java:469) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequestAndReturnString(Connection.java:388) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.makeRequestAndReturnString(Connection.java:383) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.getDeviceListJson(Connection.java:780) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.Connection.getDeviceList(Connection.java:770) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.AccountHandler.updateDeviceList(AccountHandler.java:495) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.AccountHandler.refreshData(AccountHandler.java:390) ~[?:?]
at org.openhab.binding.amazonechocontrol.internal.handler.AccountHandler.checkData(AccountHandler.java:360) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
[WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method) ~[?:?]
at java.lang.Thread.start(Thread.java:717) ~[?:?]
at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.<init>(MiIoAsyncCommunication.java:86) ~[?:?]
at org.openhab.binding.miio.handler.MiIoAbstractHandler.getConnection(MiIoAbstractHandler.java:282) ~[?:?]
at org.openhab.binding.miio.handler.MiIoAbstractHandler.hasConnection(MiIoAbstractHandler.java:243) ~[?:?]
at org.openhab.binding.miio.handler.MiIoBasicHandler.updateData(MiIoBasicHandler.java:180) ~[?:?]
at org.openhab.binding.miio.handler.MiIoAbstractHandler.lambda$1(MiIoAbstractHandler.java:97) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
2018-11-30 18:51:58.595 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47439,5,main]
2018-11-30 18:51:58.600 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47561,5,main]
2018-11-30 18:51:58.607 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47511,5,main]
2018-11-30 18:51:58.611 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47578,5,main]
2018-11-30 18:51:58.614 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47579,5,main]
2018-11-30 18:51:58.617 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47512,5,main]
2018-11-30 18:51:58.620 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47468,5,main]
2018-11-30 18:51:58.623 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47562,5,main]
2018-11-30 18:51:58.626 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47469,5,main]
2018-11-30 18:51:58.633 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - HttpClient@5352057{STOPPING,8<=2<=200,i=0,q=4} Couldn't stop Thread[HttpClient@5352057-47560,5,main]