Slow loading time

One of the features of IntelliJ 7 is supposed to be faster load times but it seems like it actually got slower for me with a project with 4000+ classes. The "Loading Files" dialog flashes probably 50 or 60 times before everything finally comes up. I timed it from startup to where my project was loaded enough to do anything (with nothing else running), and it took 2 minutes, 42 seconds. Does that sound like a normal amount of time to load?

My machine is a Core2 Duo 6700 with 2GB of ram on Windows XP. Here is my idea.exe.vmoptions file:

-Xms768m
-Xmx768m
-XX:MaxPermSize=512m
-ea
-server
-Dsun.awt.keepWorkingSetOnMinimize=true

Thanks,
Ben

8 comments

is your project a maven one ? i've noticed similar behaviour in that case

0

Nope, it is an imported Eclipse project (the classpath is still in Eclipse's .classpath format since almost all of my coworkers use Eclipse).

We do use ant for various tasks but no maven.

0

Wow, do you really need a max perm size that large?

That doesn't sound like a normal load time to me, our project which is a similar size takes about 30-40 seconds.

0

I was experimenting with higher memory settings to see if it helped. Normally I have max heap at 640MB and perm size at 128MB but it takes about the same amount of time either way.

It's not just my machine either, a coworker is giving IntelliJ a shot and has noticed the same significant load times. I can only guess the amount of different file types in our sourcepath causes that Loading Files dialog to flash so many times? Each time it comes up is it caching or processing a different file type? Our app is a web app, so there are lots of HTML and js files, most of which do not pass IntelliJ's validation because they are Tapestry templates.

I also disabled all plugins for things we don't use, and saw no difference.

Thanks for the ideas so far though...

Ben

0

The permgen space is for storing Class definitions and internalised Strings, so you should very rarely have to increase it for IDEA. The value that comes with the out-of-the-box IDEA appears to be satisfactory in most cases.

I take it the code isn't on a network share? Also, have you excluded the source code directory (and potentially the IDEA cache directories) from virus scanning?

0

Please, create JIRA issue with cpu snapshot of the project loading.

Ben Dotte wrote:

I was experimenting with higher memory settings to see if it helped. Normally I have max heap at 640MB and perm size at 128MB but it takes about the same amount of time either way.

It's not just my machine either, a coworker is giving IntelliJ a shot and has noticed the same significant load times. I can only guess the amount of different file types in our sourcepath causes that Loading Files dialog to flash so many times? Each time it comes up is it caching or processing a different file type? Our app is a web app, so there are lots of HTML and js files, most of which do not pass IntelliJ's validation because they are Tapestry templates.

I also disabled all plugins for things we don't use, and saw no difference.

Thanks for the ideas so far though...

Ben



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

We often have permgen issues due to the amount of bytecode enhancement many of our frameworks use but I sometimes forget other apps like IntelliJ don't need it! I did try taking the permgen size way down and I think it's down to maybe 2 minutes to load.

The code is not on a network share and I do not have any virus scanning running.

0

Please sign in to leave a comment.