OK, I will try to upgrade Oracle java and the lastest solr. thanks
2012/12/19 Shawn Heisey <s...@elyograg.org> > On 12/18/2012 8:18 PM, Jam Luo wrote: > > I deployed a solr-4.0-beta cluster, 4 shard, 2 peers in a shard. A peer > > catch exception: > > 十二月 18, 2012 7:56:31 下午 org.apache.solr.common.SolrException log > > 严重: null:java.lang.RuntimeException: java.lang.OutOfMemoryError: unable > to > > create new native thread > > Let me start off this reply by saying that I have *no* concrete proof > about this, what I'm saying could be completely wrong. > > Are you by chance running Java 1.7.0_09? I was having *lots* of problems > on my Solr server with multiple programs hitting OOM errors when trying > to create threads. Some of those programs are things that can normally > run for weeks at a time with extremely low heap requirements and a very > high max heap. Here's an example stacktrace with the company name redacted: > > Thread c threw an exception > java.lang.OutOfMemoryError: unable to create new native thread > at java.lang.Thread.start0(Native Method) > at java.lang.Thread.start(Thread.java:691) > at com.REDACTED.idxbuild.solr.Chain.deleteByQuery(Chain.java:827) > at com.REDACTED.idxbuild.solr.Chain.doDelete(Chain.java:1031) > at com.REDACTED.idxbuild.solr.Chain.updateIndex(Chain.java:1923) > at com.REDACTED.idxbuild.solr.Chain.run(Chain.java:2081) > > These problems went away when I upgraded Oracle Java to from 1.7.0_09 to > 1.7.0_10. > > Thanks, > Shawn > >