Resolving maven dependencies

Hello,

I am working on a large scale project and we use maven. So far I have migrated from Eclipse to Intellij Idea because of its outstanding maven integration since eclipse could not handle the magnitude of dependencies. However IDEA starts to act bit odly as well. For instance - on fresh set up of IDEA when first time importing whole project, IDEA resolves every dependency in a matter of few minutes. However after some time, when code base changes, artifact versions get updated and so on - dependency resolution starts to slow down. With IDEA EAP 13 I was surprised to see additional information on this matter. First in event log window on sever project re-imports maven plugin started failing and throwing runtime exceptions with messages "Unable to Reconnect", second for each module it failed to resolve dependencies (maven module managment window on the right) a pop-up  appears indicating OutOfMemory exception with message "GC Overhead". EAP or not I am confused on this one. I do have a lot of RAM and so I tune up IDEA (64bit) to run with settings like these:
-Xmx2000m
-XX:MaxPermSize=800m
-XX:ReservedCodeCacheSize=700m

also default maven options are set to: -xmx900m.  So I am puzzled if this is a memory leak of some sort, or somewhere there are some settings that I could tune up for dependancy resolution.

P.S. I also have IDEA 12 Ultimate edition which also shows the same symptoms, I am refering to EAP 13 only cause it has some verbouse notifications. Either way maybe someone coulp help me out ?

13 comments

You have to tune File -> Settings -> Maven -> Importing -> "VM options for importer" option. By default it is "-Xmx512m", try to set "-Xmx900m"
Sorry for the delay.

0

This helped me to avoid GC overhead errors, however dependencie resolution was still up to 2 hours.

0

just my 5c -  maven integration is the bugiest part of intellij. imho.

0

I work with it everyday and yes it is not perfect but overall it works fine for me. And maven was the main reason I abandoned Eclipse few years ago.

0

snapshot uploaded:
200 PORT command successful
150 Opening ASCII mode data connection for IU-129.713_mdomasevicius_30.09.2013_11.47.26.zip
226 Transfer complete
ftp: 7009221 bytes sent in 1.10Seconds 6372.02Kbytes/sec.

Sorry, forgot to switch to BINARY, hope it is not a biggy
  

0

re-uploaded

ftp> put IU-129.713_mdomasevicius_30.09.2013_11.47.26.zip
200 PORT command successful
150 Opening BINARY mode data connection for IU-129.713_mdomasevicius_30.09.2013_11.47.26.zip
226 Transfer complete
ftp: 7009221 bytes sent in 1.46Seconds 4794.27Kbytes/sec.

0

Thank you! You have attached CPU usage snapshot of IDEA's process. But dependencie resolution is performed in separated process. Could you attach CPU usage snapshot of that process?

0

Uploaded



150 Opening BINARY mode data connection for RemoteMavenServer-md-2013-10-02.zip
226 Transfer complete
ftp: 5708475 bytes sent in 1.83Seconds 3121.09Kbytes/sec.

0

Your snapshot is very helpful, thanks!
I've created a patch. Put attached maven3-server-impl.jar to $IDEA_129_713_HOME/plugins/maven/lib   This should fix the problem.



Attachment(s):
maven3-server-impl.jar
0

Hi, thanks for patch however result did not improve.
150 Opening BINARY mode data connection for RemoteMavenServer-md-2013-10-03.zip
226 Transfer complete
ftp: 22312861 bytes sent in 4.35Seconds 5131.75Kbytes/sec.

New snapshot uploaded.

0

Please sign in to leave a comment.