Open prowave opened 10 years ago
Hi,
It's a pleasure to hear that you're using cassandra-unit.
unfortunately it's the first time i've seen this error.
Hello, @prowave,
Can you try to avoid this issue by tweak the memory settings of JVM (-Xmx and -Xss)?
And if you are using 32-Bit JVM, maybe try your tests on 64-Bit JVM?
My company is also running into this issue. We are also using Spring Data Cassandra and using Spring Cassandra Unit.
I am seeing the same issue on OSX. Strangely, it runs without error on another OSX machine.
Hey guys,
Is this still an issue?
Jeremy,
I am on the Spring-Data-Cassandra team and we are making good use of cassandra-unit. Nice work!
We have an issue that only occurs on Macs, and we have a large number of test cases. As you can imagine, all of our integration tests use cassandra-unit. :)
It seems almost like each test doesn't thoroughly clean up after itself before forking a new cassandra instance. We have tried with and without forking and still get the error. Thanks for the help.
Have you seen this error before in your testing?
If not, we can help reproduce it.
java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:713) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371) at org.jboss.netty.util.internal.DeadLockProofWorker.start(DeadLockProofWorker.java:38) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:343) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.(AbstractNioSelector.java:95)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.(AbstractNioWorker.java:53)
at org.jboss.netty.channel.socket.nio.NioWorker.(NioWorker.java:45)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:45)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:28)
at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.newWorker(AbstractNioWorkerPool.java:99)
at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.init(AbstractNioWorkerPool.java:69)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.(NioWorkerPool.java:39)
at org.jboss.netty.channel.socket.nio.NioWorkerPool.(NioWorkerPool.java:33)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.(NioClientSocketChannelFactory.java:151)
at org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory.(NioClientSocketChannelFactory.java:116)
at com.datastax.driver.core.Connection$Factory.(Connection.java:406)
at com.datastax.driver.core.Connection$Factory.(Connection.java:417)
at com.datastax.driver.core.Cluster$Manager.(Cluster.java:787)
at com.datastax.driver.core.Cluster$Manager.(Cluster.java:739)
at com.datastax.driver.core.Cluster.(Cluster.java:80)
at com.datastax.driver.core.Cluster.(Cluster.java:67)
at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:708)
at org.springframework.cassandra.test.integration.AbstractEmbeddedCassandraIntegrationTest.cluster(AbstractEmbeddedCassandraIntegrationTest.java:68)
at org.springframework.cassandra.test.integration.AbstractEmbeddedCassandraIntegrationTest.connect(AbstractEmbeddedCassandraIntegrationTest.java:73)
at org.springframework.cassandra.test.integration.AbstractEmbeddedCassandraIntegrationTest.(AbstractEmbeddedCassandraIntegrationTest.java:32)
at org.springframework.cassandra.test.integration.core.template.CassandraOperationsTest.(CassandraOperationsTest.java:68)