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>( at com.datastax.shaded.netty.util.concurrent.DefaultPromise.<clinit>( at com.datastax.shaded.netty.util.concurrent.GlobalEventExecutor.<init>( at com.datastax.shaded.netty.util.concurrent.GlobalEventExecutor.<clinit>( at com.datastax.driver.core.Connection$Factory.<init>( at com.datastax.driver.core.Cluster$Manager.init( at com.datastax.driver.core.Cluster.init( at com.datastax.driver.core.Cluster.connectAsync( at com.datastax.driver.core.Cluster.connectAsync( at com.datastax.driver.core.Cluster.connect( {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 ** which is not imported in the shaded java driver. The fix would be to add 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
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(
    2 frames
  3. Netty
    1. io.netty.util.concurrent.SingleThreadEventExecutor.shutdownGracefully(
    2. io.netty.util.concurrent.MultithreadEventExecutorGroup.shutdownGracefully(
    3. io.netty.util.concurrent.AbstractEventExecutorGroup.shutdownGracefully(
    3 frames
  4. DataStax Java Driver for Apache Cassandra - Core
    1. com.datastax.driver.core.NettyOptions.onClusterClose(
    2. com.datastax.driver.core.Connection$Factory.shutdown(
    3. com.datastax.driver.core.Cluster$Manager$ClusterCloseFuture$
    3 frames