我在带有 spymemcached 的 EJB 上遇到此错误,使用在 wiwndows 上运行的 memcached 远程服务器。
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:597)
at net.spy.memcached.MemcachedConnection.<init>(MemcachedConnection.java:132)
at net.spy.memcached.DefaultConnectionFactory.createConnection(DefaultConnectionFactory.java:176)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:194)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:154)
有什么想法吗?如何解决?