java.lang.OutOfMemoryError: unable to create new native thread

Stack Overflow | Kevin | 6 days ago
  1. 0

    Spark Streaming Job OOM when I increase resources

    Stack Overflow | 6 days ago | Kevin
    java.lang.OutOfMemoryError: unable to create new native thread
  2. 0

    Are the recent Netty related features alerting Netty for other libraries?

    GitHub | 2 years ago | pluttrell
    java.lang.UnsatisfiedLinkError: no netty-transport-native-epoll in java.library.path
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    When using the shaded 3.0.0 java driver in Apache Karaf we get the following error when the driver is connecting to the cluster: {noformat} java.lang.NoClassDefFoundError: javax/security/cert/X509Certificate at com.datastax.shaded.netty.util.internal.EmptyArrays.<clinit>(EmptyArrays.java:40) at com.datastax.shaded.netty.util.concurrent.DefaultPromise.<clinit>(DefaultPromise.java:44) at com.datastax.shaded.netty.util.concurrent.GlobalEventExecutor.<init>(GlobalEventExecutor.java:44) at com.datastax.shaded.netty.util.concurrent.GlobalEventExecutor.<clinit>(GlobalEventExecutor.java:41) at com.datastax.driver.core.Connection$Factory.<init>(Connection.java:684) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1365) at com.datastax.driver.core.Cluster.init(Cluster.java:162) at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:333) at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:308) at com.datastax.driver.core.Cluster.connect(Cluster.java:250) {noformat} Something to note is that we did not have SSL enabled while connecting and also that this stopped working when going from versions 2.1.9 -> 3.0.0. There is a different netty version between the two, 4.0.27.Final and 4.0.33.Final. The problem seems to be that in netty-common there is an OSGI package import for *javax.security.cert* which is not imported in the shaded java driver. The fix would be to add javax.security.cert to the import package of the shaded java driver. This problem will probably affect version 2.1 of the java driver as well, but there hasn't been a release with the newer netty version yet.

    DataStax JIRA | 11 months ago | Marcus Olsson
    java.lang.NoClassDefFoundError: javax/security/cert/X509Certificate
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.lang.OutOfMemoryError

    unable to create new native thread

    at java.lang.Thread.start0()
  2. Java RT
    Thread.start
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Thread.java:714)
    2 frames
  3. Netty
    AbstractEventExecutorGroup.shutdownGracefully
    1. io.netty.util.concurrent.SingleThreadEventExecutor.shutdownGracefully(SingleThreadEventExecutor.java:534)
    2. io.netty.util.concurrent.MultithreadEventExecutorGroup.shutdownGracefully(MultithreadEventExecutorGroup.java:146)
    3. io.netty.util.concurrent.AbstractEventExecutorGroup.shutdownGracefully(AbstractEventExecutorGroup.java:69)
    3 frames
  4. DataStax Java Driver for Apache Cassandra - Core
    Cluster$Manager$ClusterCloseFuture$1.run
    1. com.datastax.driver.core.NettyOptions.onClusterClose(NettyOptions.java:190)
    2. com.datastax.driver.core.Connection$Factory.shutdown(Connection.java:844)
    3. com.datastax.driver.core.Cluster$Manager$ClusterCloseFuture$1.run(Cluster.java:2488)
    3 frames