NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 7 Cannot Open Maven 2 Projects That Contain Modules

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
deckerego



Joined: 22 Apr 2011
Posts: 5

PostPosted: Fri Apr 22, 2011 6:46 am    Post subject: NetBeans 7 Cannot Open Maven 2 Projects That Contain Modules Reply with quote

Sorry for being a bit grouchy here... I've been trying unsuccessfully to get NB7 working for six hours now and it's 2 AM.

It appears the Maven module that ships with NetBeans 7 has great difficulties opening up Maven 2 projects that have sub-modules. 9 times out of 10, when I open a parent project that has modules within it the heap continually grows until it overflows and I get nice 1GB heap dumps in var/log.

If I profile NetBeans itself I see it constantly calling the dependency management classes in the sonatype library. It never seems to stop and either spins indefinitely or overflows the heap. Doing CPU sampling I constantly see the sonatype libraries occupying the vast majority of CPU time.

I've tried disabling indexing (set to "Never" in the Maven options), I've up'd Xmx to 2GB, changed to the mark-and-sweep GC, even manually tried to request GC via VisualVM to stop the heap from thrashing. I made sure no lock files existed in the Lucene index directories (even tho I turned off indexing, it appeared to continue to do so by creating new lock files and running the Lucene index methods). I let the IDE just sit and spin for over an hour, but no luck. Even switched between OpenJDK 1.6.0_20 and Sun's 1.6.0_24-b07, but neither worked.

I also switched from the Maven libs that shipped with NetBeans to my own, which are 2.2.1. Same behavior.

Things work fine in NetBeans 6.9.1. The new plugin in NetBeans 7 seems to be scanning, inspecting and indexing so much that it must be hitting some sort of circular dependency or it just hates my guts.
Back to top
deckerego



Joined: 22 Apr 2011
Posts: 5

PostPosted: Fri Apr 22, 2011 7:08 am    Post subject: Re: NetBeans 7 Cannot Open Maven 2 Projects That Contain Modules Reply with quote

deckerego wrote:
I've tried disabling indexing (set to "Never" in the Maven options), I've up'd Xmx to 2GB, changed to the mark-and-sweep GC, even manually tried to request GC via VisualVM to stop the heap from thrashing. I made sure no lock files existed in the Lucene index directories (even tho I turned off indexing, it appeared to continue to do so by creating new lock files and running the Lucene index methods). I let the IDE just sit and spin for over an hour, but no luck. Even switched between OpenJDK 1.6.0_20 and Sun's 1.6.0_24-b07, but neither worked.


To elaborate a bit more, it appears that over half of all heap is spent on org.sonatype.aether.impl.internal.GraphEdge objects, and nearly 90% CPU time on GraphKey.hashcode(). Then it goes into org.sonatype.aether.util.graph.transformer.JavaEffectiveScopeCalculator.buildConflictGroups(). At that point the IDE effectively becomes unresponsive.
Back to top
deckerego



Joined: 22 Apr 2011
Posts: 5

PostPosted: Fri Apr 29, 2011 3:39 pm    Post subject: Re: NetBeans 7 Cannot Open Maven 2 Projects That Contain Modules Reply with quote

This appears to have been reported as http://netbeans.org/bugzilla/show_bug.cgi?id=198047
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo