title: How to determine which method is taking so long when initializing a Spring application
body: <p>I'm familiar with the standard debugging practices and those are not working in this case since I cannot follow step by step a Spring application manually. There are many processes that take place, when the service is initialized like trips to the DB, beans initialization, etc. Is there a profiling tool that could catch how much time a method takes and where exactly is the problem that causes the app to stop doing anything for a long period of time? I can use any IntelliJ Idea Ultimate tools, if that would help. Any suggestions?</p>