{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3921","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3921/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3921/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3921/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3921","id":105313395,"number":3921,"title":"Huge startup time difference between servers and local machine","user":{"login":"lazee","id":11016,"avatar_url":"https://avatars.githubusercontent.com/u/11016?v=3","gravatar_id":"","url":"https://api.github.com/users/lazee","html_url":"https://github.com/lazee","followers_url":"https://api.github.com/users/lazee/followers","following_url":"https://api.github.com/users/lazee/following{/other_user}","gists_url":"https://api.github.com/users/lazee/gists{/gist_id}","starred_url":"https://api.github.com/users/lazee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazee/subscriptions","organizations_url":"https://api.github.com/users/lazee/orgs","repos_url":"https://api.github.com/users/lazee/repos","events_url":"https://api.github.com/users/lazee/events{/privacy}","received_events_url":"https://api.github.com/users/lazee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-08T06:52:28Z","updated_at":"2015-09-08T06:52:28Z","closed_at":null,"body":"Hi,\r\n\r\n@philwebb : I saw you somewhere else asked for real projects that are having issues with the startup time.\r\n\r\nAt the moment we are having issues with all of our spring boot apps in our test and production environments. The issue is that all of our apps start in about 4-5 seconds locally on our developer machines. But in production it takes 18-25 seconds. And we are really not sure what causes this.\r\n\r\nFrom the log lines below it seems like it is the loading of the web application context that takes most of the time. \r\n\r\nDo you have any tip on how to debug this. I'm going to profile this deeper. But I first wanted to ask you for general tips on how to approach these issues. And secondly ask you if you are interested in looking into one of the projects?\r\n\r\nI have tried following general recommendations online in other threads without figuring out the huge difference between servers and dev machines.\r\n\r\nWe are running on Spring Boot 1.2.5\r\n\r\n```\r\n1,445 [INFO ] [      main][][org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext][prepareRefresh][510] - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@afcbd46: startup date [Mon Sep 07 13:08:51 CEST 2015]; root of context hierarchy\r\n2015-09-07 13:08:59,333 [INFO ] [      main][][org.springframework.web.context.ContextLoader][prepareEmbeddedWebApplicationContext][268] - Root WebApplicationContext: initialization completed in 7892 ms\r\n2015-09-07 13:09:05,690 [INFO ] [      main][][org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration][configure][170]\r\n"}}