I am using a BeanManager to acquire classes annotated @Stateless in
multiple threads. This worked fine in 7.1.3, but now in 8.0.3 I'm receiving
this error:

javax.ejb.ConcurrentAccessTimeoutException: No instances available in
Stateless Session Bean pool.  Waited 30 SECONDS

I see a number of these exceptions until the machine roughly runs out of
memory and restarts (though there's never an OutOfMemoryError in logs). I
had encountered this error in the past and solved it completely by
increasing the maxSize to 20 in tomee.xml:

<Container id="StatelessContainer" type="STATELESS">
maxSize = 20
</Container>

Is there any reason that I would need to boost this value in tomee 8
compared to tomee 7? Or any reason the memory footprint would be different
enough to cause a crash. No other differences, same configuration

Thanks,
-Kean

Reply via email to