ItGo.me - 专注IT技术分享

首页 > Exception > java.lang.OutOfMemoryError: unable to create new native thread解决

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

时间:2015-11-13来源:网友分享 点击:
com.alibaba.dubbo.remoting.ExecutionException: class com.alibaba.dubbo.remoting.transport.dispatcher.all.AllChannelHandler error when process received event .), dubbo version: 2.5.3
com.alibaba.dubbo.remoting.ExecutionException: class com.alibaba.dubbo.remoting.transport.dispatcher.all.AllChannelHandler error when process caught event .
....
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371)
    at com.alibaba.dubbo.remoting.transport.dispatcher.all.AllChannelHandler.caught(AllChannelHandler.java:65)
    ... 17 more

可能原因为linux线程用完,可以用以下命令查看:
    ulimit -n
    1024
解决办法:
修改linux的软硬件限制文件
vi /etc/security/limits.conf.
在文件尾部添加如下代码:
* soft nofile 10240
* hard nofile 10240

$ jps
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at java.lang.ref.Reference.<clinit>(Reference.java:162)

Column count doesn't match value count at row 1原因及解决

Cause: java.sql.SQLException: Column count doesn't match value count at row 1...

Hadoop HDFS Wrong FS: hdfs:/ expected file:///的解决方法

在eclipse编写hadoop程序并运行时,会出现Hadoop HDFS Wrong FS: hdfs:/ expected file:///的错误 Exception in thread main java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.0.22:49000/tmp/mahout-work-hadoop/product-kmeans/clustere...

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

Error occurred during initialization of VM java.lang.OutOfMemoryError: unable to create new native thread...

Error occurred during initialization of VM java.lang.OutOfMemoryError: unable to create new native thread
------分隔线----------------------------