Sep 20th, 2010, 08:02 AM
Debug Slow Roo Startup
Spring Roo: 1.1.0.M3 [rev e66e029]
Is there any way to log what roo is doing when it initially starts up?
I am experiencing a large delay everytime I start up roo and issue the first command. It didn't used to happen so I am thinking I added something to my POM that is causing the dependency check to take a long time on startup.
How can I check that?
When I run mvn clean outside of roo, it takes 1 sec.
If I start up roo, and then immediately issue perform clean, it takes 1m 20s before it even starts to process the command. (i.e. The first [Thread] message [INFO] Scanning for projects, appears after 1m20s) then the clean takes 2s to complete.
Immediately running the command again, 1s. Exit roo, start up roo, issue the perform clean command and same 1m20s delay)
The entire time it's "delaying" the "Please wait - still loading" flash message is present.
This leads me to believe that whatever roo is trying to do on startup, is taking a long time, but I have no idea what it is trying to do, is there anyway I can tell roo to log it to a file?
Could I have a bad repository setup in the POM that is having to wait until it times out? Also, I might have a bad local repository, is there an easy way to tell maven to rebuild the local repository?
Thanks in advance
Last edited by btlife; Sep 20th, 2010 at 08:27 AM.
Reason: added Spring Roo Version
Sep 20th, 2010, 02:07 PM
Sounds like you're using Roo within the IDE (Eclipse/STS). I have experience delays like that when using the Roo plugin for Eclipse/STS. When using Roo outside of the IDE via the terminal shell, it has no delays. What fixed it for me on the IDE side was to cleanup the Eclipse plugins directory. Maybe a clean install of Eclipse would do the same and just reinstall the latest plugins you need. However by the time I had done all that, I found that Roo stand alone outside of the IDE works best anyhow.
Sep 20th, 2010, 02:43 PM
Sep 20th, 2010, 02:53 PM
Odd. I'm running the same version of Roo as you, but I don't have the delay in the standalone shell. Is your project on your local hard drive, or across the network?
Sep 20th, 2010, 03:07 PM
Running locally, that's why I am thinking I did something to the POM or the repository, that is making it search a bunch of places it doesn't need to, and it has to wait for the timeouts.
Sep 20th, 2010, 03:09 PM
It's project related, if I start roo in a new folder (same computer), and load up one of the sample scripts, it responds immediately
Originally Posted by btlife