Discussion:
EMFILE (Too many open files)
Anderson Scherdovski
2018-04-17 13:56:57 UTC
Permalink
How to fix this problem per-to-per?

W/RemoteRequest: com.couchbase.lite.replicator.RemoteRequest {GET,
http://192.168.0.100:5432/banco144/_local/2239eb9765b37277308ebe2de1e00f9b35975399}:
executeRequest() Exception: java.net.SocketException: socket failed: EMFILE
(Too many open files). url:
http://192.168.0.100:5432/banco144/_local/2239eb9765b37277308ebe2de1e00f9b35975399
java.net.SocketException: socket failed: EMFILE (Too many
open files)
at libcore.io.IoBridge.socket(IoBridge.java:576)
at
java.net.PlainSocketImpl.create(PlainSocketImpl.java:201)
at java.net.Socket.checkOpenAndCreate(Socket.java:664)
at java.net.Socket.setSoTimeout(Socket.java:519)
at
okhttp3.internal.io.RealConnection.connectSocket(RealConnection.java:183)
at
okhttp3.internal.io.RealConnection.buildConnection(RealConnection.java:170)
at
okhttp3.internal.io.RealConnection.connect(RealConnection.java:111)
at
okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:187)
at
okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)
at
okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)
at
okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)
at
okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
at okhttp3.RealCall.getResponse(RealCall.java:243)
at
okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
at
okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
at okhttp3.RealCall.execute(RealCall.java:57)
at
com.couchbase.lite.replicator.RemoteRequest.executeRequest(RemoteRequest.java:261)
at
com.couchbase.lite.replicator.RemoteRequest.execute(RemoteRequest.java:165)
at
com.couchbase.lite.replicator.RemoteRequest.run(RemoteRequest.java:105)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at
java.util.concurrent.FutureTask.run(FutureTask.java:237)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: socket failed:
EMFILE (Too many open files)
at libcore.io.Posix.socket(Native Method)
at
libcore.io.BlockGuardOs.socket(BlockGuardOs.java:181)
at libcore.io.IoBridge.socket(IoBridge.java:561)
at
java.net.PlainSocketImpl.create(PlainSocketImpl.java:201)
at java.net.Socket.checkOpenAndCreate(Socket.java:664)
at java.net.Socket.setSoTimeout(Socket.java:519)
at
okhttp3.internal.io.RealConnection.connectSocket(RealConnection.java:183)
at
okhttp3.internal.io.RealConnection.buildConnection(RealConnection.java:170)
at
okhttp3.internal.io.RealConnection.connect(RealConnection.java:111)
at
okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:187)
at
okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)
at
okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)
at
okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)
at
okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
at okhttp3.RealCall.getResponse(RealCall.java:243)
at
okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
at
okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
at okhttp3.RealCall.execute(RealCall.java:57)
at
com.couchbase.lite.replicator.RemoteRequest.executeRequest(RemoteRequest.java:261)
at
com.couchbase.lite.replicator.RemoteRequest.execute(RemoteRequest.java:165)
at
com.couchbase.lite.replicator.RemoteRequest.run(RemoteRequest.java:105)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at
java.util.concurrent.FutureTask.run(FutureTask.java:237)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/21f1178c-0eed-4d91-8d76-f740f729eed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jens Alfke
2018-04-17 16:23:05 UTC
Permalink
On Apr 17, 2018, at 6:56 AM, Anderson Scherdovski <***@gmail.com<mailto:***@gmail.com>> wrote:

How to fix this problem per-to-per?

Well, providing some relevant information would help. What version of Couchbase Lite, what OS, what was going on when this happened


—Jens
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/D2E929A2-907D-4BEE-B15A-30664AA24883%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
Anderson Scherdovski
2018-04-17 16:31:49 UTC
Permalink
version of couchbase 1.4, and android device 4.4. From what I understand,
there are many connections to the open database, would that be?
Post by Anderson Scherdovski
How to fix this problem per-to-per?
Well, providing some relevant information would help. What version of
Couchbase Lite, what OS, what was going on when this happened

—Jens
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/40d5f057-7666-4d7d-8f69-40fcb24d3981%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...