Saturday, August 27, 2016

2016-08-27 Saturday - Apache Tomcat / TomEE start-up takes forever

I've just installed Apache Tomcat 9.0.0.M9 and Apache TomEE 7.0.1 today - and encountered a curious issue with the start-up taking forever (for either one) - well, at least longer than a minute...

Some folks report much longer "hang" times...

I've also installed Apache Tomcat 9.0.0.M9 on a different laptop (Windows 7) - and the start-up is normal (~1+ second)

On my primary development laptop (MSI, Windows 10, Java 1.8.0_102-b14) - the start-up takes ~1 minute+

I happened across this article:

which suggested changing the protocol from "HTTP/1.1" to "org.apache.coyote.http11.Http11NioProtocol"

Problem solved - for now - until I have time to dig into this more and determine root cause.

Some folks have suggested this problem is due to a lack of entropy in the OS...

Given the above, the recent Python 3.6 release included a change that caught my eye

 

1 comment:

clickorbit said...

Thank you for discussing various solutions.
Regards,
Apache Tomcat training.