0

In the last couple of days I noticed that I have trouble starting my spring boot app. It always hangs at FilterRegistrationBean.

To solve this I have to restart the app multiple times after suddenly it starts.

Any ideas?

2016-05-30 15:01:50 [APP/0] OUT 2016-05-30 13:01:50.914 INFO 16 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*]
2016-05-30 15:04:42 [CELL/0] ERR Timed out after 3m0s: health check never passed.
2016-05-30 15:04:42 [CELL/0] OUT Exit status 0

Sample app: https://github.com/gabac/swisscom-spring-boot-sample

Sybil
  • 2,503
  • 3
  • 25
  • 36
gabac
  • 2,062
  • 6
  • 21
  • 30
  • A link to a sample project that illustrates this problem would allow us to debug it. – Kyle Anderson May 30 '16 at 17:50
  • 2
    Try taking a thread dump while it's hung. You may be hitting this: http://stackoverflow.com/questions/25660899/spring-boot-actuator-application-wont-start-on-ubuntu-vps – Andy Wilkinson May 30 '16 at 19:36
  • @punkrocker27ka I've added a sample app https://github.com/gabac/swisscom-spring-boot-sample – gabac May 31 '16 at 05:50
  • @gabac I ran the sample application for a while and didn't encounter the hanging issue. Have you tried running it on different hardware? Either on premises or in the cloud? Let me know if you can reproduce the issue in other environments. – Kyle Anderson May 31 '16 at 21:53
  • @punkrocker27ka Locally it works without any issues. I only experience the hang during the startup in the Swisscom Cloud. There is no hang or so as soon as I got the app up and running – gabac Jun 02 '16 at 05:55
  • @gabac In that case it sounds environment related. Make sure your cloud server has adequate resources. Another thing to try would be to containerize your app and then test it locally & in the cloud. That should help make the virtual environment more consistent. See this guide for more detail: https://spring.io/guides/gs/spring-boot-docker/ – Kyle Anderson Jun 02 '16 at 15:09

0 Answers0