When I not set
<thread-pool-max-size>50000</thread-pool-max-size>
in
<hornetq-server>
has no "unable to create new native thread" ERROR
but
I set <thread-pool-max-size>50000</thread-pool-max-size> like :
<hornetq-server>
<thread-pool-max-size>50000</thread-pool-max-size>
<persistence-enabled>true</persistence-enabled>
<journal-type>NIO</journal-type>
<journal-min-files>10</journal-min-files>
<security-enabled>false</security-enabled>
they has ERROR:
WARN [org.hornetq.core.server] (Thread-0 (HornetQ-Asynchronous-Persistent-Writes1189902350-1725551057)) HQ222150: IO Error completing the transaction, code = 0, message = It wasn't possible to complete IO operation - unable to create new native thread
2015-09-08 14:14:58,644 ERROR [stderr] (hornetq-expiry-reaper-thread) Exception in thread "hornetq-expiry-reaper-thread" java.lang.OutOfMemoryError: unable to create new native thread
I want to know,default thread-pool-max-size is -1.no limit.why not to show this error.When set a large pool will see ERROR