Load time on bigger projects

I've got a project with 3 modules. One contains the source code (about 1900 .java files), and has 49 jar files in it's classpath. The second module and third modules are there simply for running certain applications with a different classpath.

We start with a base project file, and manipulate it from ANT to add certain things to it which depend on environment variable settings on the user's machine.

However, when we first open the project, it takes 10+ minutes before everything is finished parsing, and the project is fully loaded.

Does anyone have any suggestions which might speed up this process (i've already change my memory settings to -Xms256m -Xmx256m in idea.lax), or has anyone else come across this yet?

0
4 comments

Matthew Inger wrote:

I've got a project with 3 modules. One contains the source code (about 1900 .java files), and has 49 jar files in it's classpath. The second module and third modules are there simply for running certain applications with a different classpath.

We start with a base project file, and manipulate it from ANT to add certain things to it which depend on environment variable settings on the user's machine.

However, when we first open the project, it takes 10+ minutes before everything is finished parsing, and the project is fully loaded.

Does anyone have any suggestions which might speed up this process (i've already change my memory settings to -Xms256m -Xmx256m in idea.lax), or has anyone else come across this yet?

How big are those 49 jars? IDEA project itself seem to be a lot bigger project though initial startup is no longer than
1.5min in a worse case.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Module 1: 42 jars 24Megs
Module 2: 23 jars 24 Megs
Module 3: 24 jars 24 Megs


Modules 2 & 3 are simply there for running the external java processes which perform the job processing for our system. We use the jar list in the deployment directories to create the classpath for those.

However, the src code seems to be a large chunck of the time as well. Itt's taking well over 10 minutes.

0

Maybe IDEA try to reindex it and you disk is not so fask, as Maxim? :))

0
Avatar
Dmitry Peshehonov

Do your modules have module libraries with same jars. If yes you should create project-level or global libraries for this jars. This will speed up indexing and run configuration execution.

0

Please sign in to leave a comment.