org.jboss.netty.channel.ChannelException: Failed to open a socket.

Google Groups | Noppanit Charassinvichai | 3 months ago
  1. 0

    Query metadata is very very slow and timeout eventually. Help!

    Google Groups | 3 months ago | Noppanit Charassinvichai
    org.jboss.netty.channel.ChannelException: Failed to open a socket.
  2. 0

    Why all my Hbase Regionservers are down

    Stack Overflow | 9 months ago | Jack
    java.net.SocketException: Too many open files
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    "Too many open files" when adding a lot of requests at once

    GitHub | 4 years ago | Rogach
    java.net.SocketException: Too many open files
  5. 0

    Why could create socketchannels more than max open files?

    Stack Overflow | 2 years ago
    java.net.SocketException: Too many open files

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.SocketException

      Too many open files

      at sun.nio.ch.Net.socket0()
    2. Java RT
      SocketChannel.open
      1. sun.nio.ch.Net.socket0(Native Method)[?:1.7.0_101]
      2. sun.nio.ch.Net.socket(Net.java:441)[?:1.7.0_101]
      3. sun.nio.ch.Net.socket(Net.java:434)[?:1.7.0_101]
      4. sun.nio.ch.SocketChannelImpl.<init>(SocketChannelImpl.java:105)[?:1.7.0_101]
      5. sun.nio.ch.SelectorProviderImpl.openSocketChannel(SelectorProviderImpl.java:60)[?:1.7.0_101]
      6. java.nio.channels.SocketChannel.open(SocketChannel.java:142)[?:1.7.0_101]
      6 frames
    3. Netty
      ClientBootstrap.connect
      1. org.jboss.netty.channel.socket.nio.NioClientSocketChannel.newSocket(NioClientSocketChannel.java:41)[netty-3.10.4.Final.jar:?]
      2. org.jboss.netty.channel.socket.nio.NioClientSocketChannel.<init>(NioClientSocketChannel.java:82)[netty-3.10.4.Final.jar:?]
      3. org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.newChannel(NioClientSocketChannelFactory.java:212)[netty-3.10.4.Final.jar:?]
      4. org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.newChannel(NioClientSocketChannelFactory.java:82)[netty-3.10.4.Final.jar:?]
      5. org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:212)[netty-3.10.4.Final.jar:?]
      6. org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)[netty-3.10.4.Final.jar:?]
      6 frames
    4. http-client
      AbstractHttpClient.go
      1. com.metamx.http.client.pool.ChannelResourceFactory.generate(ChannelResourceFactory.java:84)[http-client-1.0.4.jar:?]
      2. com.metamx.http.client.pool.ChannelResourceFactory.generate(ChannelResourceFactory.java:41)[http-client-1.0.4.jar:?]
      3. com.metamx.http.client.pool.ResourcePool$ImmediateCreationResourceHolder.get(ResourcePool.java:188)[http-client-1.0.4.jar:?]
      4. com.metamx.http.client.pool.ResourcePool.take(ResourcePool.java:76)[http-client-1.0.4.jar:?]
      5. com.metamx.http.client.NettyHttpClient.go(NettyHttpClient.java:133)[http-client-1.0.4.jar:?]
      6. com.metamx.http.client.AbstractHttpClient.go(AbstractHttpClient.java:14)[http-client-1.0.4.jar:?]
      6 frames
    5. Druid Server
      CachingClusteredClient$2.get
      1. io.druid.client.DirectDruidClient.run(DirectDruidClient.java:326)[druid-server-0.9.0.jar:0.9.0]
      2. io.druid.client.CachingClusteredClient$2.addSequencesFromServer(CachingClusteredClient.java:386)[druid-server-0.9.0.jar:0.9.0]
      3. io.druid.client.CachingClusteredClient$2.get(CachingClusteredClient.java:316)[druid-server-0.9.0.jar:0.9.0]
      4. io.druid.client.CachingClusteredClient$2.get(CachingClusteredClient.java:310)[druid-server-0.9.0.jar:0.9.0]
      4 frames
    6. java-util
      LazySequence.toYielder
      1. com.metamx.common.guava.LazySequence.toYielder(LazySequence.java:43)[java-util-0.27.7.jar:?]
      1 frame
    7. Druid Processing
      RetryQueryRunner$1.toYielder
      1. io.druid.query.RetryQueryRunner$1.toYielder(RetryQueryRunner.java:105)[druid-processing-0.9.0.jar:0.9.0]
      1 frame
    8. Druid Common
      CombiningSequence.toYielder
      1. io.druid.common.guava.CombiningSequence.toYielder(CombiningSequence.java:79)[druid-common-0.9.0.jar:0.9.0]
      1 frame
    9. java-util
      MappedSequence.toYielder
      1. com.metamx.common.guava.MappedSequence.toYielder(MappedSequence.java:46)[java-util-0.27.7.jar:?]
      2. com.metamx.common.guava.MappedSequence.toYielder(MappedSequence.java:46)[java-util-0.27.7.jar:?]
      2 frames
    10. Druid Processing
      CPUTimeMetricQueryRunner$1.toYielder
      1. io.druid.query.CPUTimeMetricQueryRunner$1.toYielder(CPUTimeMetricQueryRunner.java:93)[druid-processing-0.9.0.jar:0.9.0]
      1 frame
    11. java-util
      Sequences$1.toYielder
      1. com.metamx.common.guava.Sequences$1.toYielder(Sequences.java:98)[java-util-0.27.7.jar:?]
      1 frame
    12. Druid Server
      QueryResource.doPost
      1. io.druid.server.QueryResource.doPost(QueryResource.java:167)[druid-server-0.9.0.jar:0.9.0]
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)[?:?]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.7.0_101]
      3. java.lang.reflect.Method.invoke(Method.java:606)[?:1.7.0_101]
      3 frames
    14. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)[jersey-server-1.19.jar:1.19]
      2. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)[jersey-server-1.19.jar:1.19]
      3. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[jersey-server-1.19.jar:1.19]
      4. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)[jersey-server-1.19.jar:1.19]
      5. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[jersey-server-1.19.jar:1.19]
      6. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[jersey-server-1.19.jar:1.19]
      7. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[jersey-server-1.19.jar:1.19]
      8. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)[jersey-server-1.19.jar:1.19]
      9. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)[jersey-server-1.19.jar:1.19]
      10. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)[jersey-server-1.19.jar:1.19]
      11. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)[jersey-server-1.19.jar:1.19]
      11 frames
    15. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)[jersey-servlet-1.19.jar:1.19]
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)[jersey-servlet-1.19.jar:1.19]
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)[jersey-servlet-1.19.jar:1.19]
      3 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar:3.1.0]
      1 frame
    17. Guice - Servlet
      GuiceFilter.doFilter
      1. com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:278)[guice-servlet-4.0-beta.jar:?]
      2. com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:268)[guice-servlet-4.0-beta.jar:?]
      3. com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:180)[guice-servlet-4.0-beta.jar:?]
      4. com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)[guice-servlet-4.0-beta.jar:?]
      5. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)[guice-servlet-4.0-beta.jar:?]
      6. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)[guice-servlet-4.0-beta.jar:?]
      7. com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)[guice-servlet-4.0-beta.jar:?]
      8. com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)[guice-servlet-4.0-beta.jar:?]
      9. com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)[guice-servlet-4.0-beta.jar:?]
      10. com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)[guice-servlet-4.0-beta.jar:?]
      10 frames
    18. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.5.v20141112.jar:9.2.5.v20141112]
      2. org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)[jetty-servlets-9.2.5.v20141112.jar:9.2.5.v20141112]
      3. org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:364)[jetty-servlets-9.2.5.v20141112.jar:9.2.5.v20141112]
      4. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.5.v20141112.jar:9.2.5.v20141112]
      5. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[jetty-servlet-9.2.5.v20141112.jar:9.2.5.v20141112]
      6. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      7. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      8. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[jetty-servlet-9.2.5.v20141112.jar:9.2.5.v20141112]
      9. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      10. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      11. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      12. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      14. org.eclipse.jetty.server.Server.handle(Server.java:497)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)[jetty-server-9.2.5.v20141112.jar:9.2.5.v20141112]
      17. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[jetty-io-9.2.5.v20141112.jar:9.2.5.v20141112]
      18. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)[jetty-util-9.2.5.v20141112.jar:9.2.5.v20141112]
      19. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)[jetty-util-9.2.5.v20141112.jar:9.2.5.v20141112]
      19 frames
    19. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[?:1.7.0_101]
      1 frame