1. 程式人生 > >java.lang.OutOfMemoryError: unable to create new native thread

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

1,使用 ulimit -a或者ulimit -u查詢當前機器設定的執行緒數 :4096

2,用jstack pid>xxx.txt

3,然後檢視 -Xss的大小,這個一般是制約因素