This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Unpacking index for OSS Sonatype Staging consuming 8Gb of RAM | ||
---|---|---|---|
Product: | projects | Reporter: | FiruzzZ |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | MrQuan |
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 269796 | ||
Attachments: | IDE log |
Description
FiruzzZ
2015-07-06 18:35:48 UTC
Created attachment 154493 [details]
IDE log
two problems: 1.) indexing performance wasn't able to reproduce any detrimental effects with a current dev build. The oss sonatype index isn't small, but the indexing itself took a few minutes on my box and the memory footprint never got over 300mb. Please note that there was a bunch of fixed some time ago - e.g. issue #239915 . Even though it was more speed related, it might have also some effect on the freezes you mentioned in your report. 2.) indexing triggers on every open - what do you have set under options > java > maven > index > index update frequency ? - what does it mean on every open - also subsequent opens during one netbeans session or do you open the project only once in a while and there are NetBeans restarts between? Maven frequency = Once a week The project is not always opened in Netbeans, but when pass a long time and I have to make it a Git pull to update it, after that this indexing starts, I figured that if I close the project immediately after update the branches, it stops. Reopening the project in the same instances of the IDE doesn't trigger this indexing again, restarting the IDE it does, but the Repository updates normally (slow but normal) > I figured that if I close the project immediately after update the branches,
> it stops.
so the indexing never runs through? because then reopening the project is going to trigger the indexing again
(in case you want to avoid index handling for a particular repository - use the switch to suppress automatic repository indexing for a specified list of repos
-J-Dmaven.indexing.doNotAutoIndex=[semicolon serated list of repo id-s])
I have seen the same behavior if I don't open Netbeans for a while (1-2 weeks). It seems though that after a few stops-starts Netbeans is able to finish the "Unpacking index for OSS Sonatype Staging". I have not seen a more annoying bug in Netbeans since I've been using it (Netbeans 5) I've come across the same issue in 8.0.2 and 8.2 (not tried 8.1 or other intermediate releases). I'm running on Windows 7. Several Maven based war projects. I can post effective POMs if need be although I'm not sure they'll be terribly useful. I think a clean and build tries to load the sonatype-oss-public repository index. This takes an awfully long time to start with. However, when the status bar shows 'Unpacking index for sonatype-oss-public' memory usage jumps up and up until it's using over 6GB and I have to kill the Netbeans64.exe process. This will usually take place over a period of a few hours. I've added -J-Dmaven.indexing.doNotAutoIndex=sonatype-oss-public in netbeans.conf (on the 8.2 release) and memory usage seems stable at just over 2GB although I'll be keeping an eye on it. Usage is creeping up but that could just just be normal caching. I think this is definitely a live issue and warrants a bit more investigation. Perhaps index unpacking for certain repo's should be switched off by default? It does pretty much make netbeans useless when it's happening and I considered switching IDEs. I'm experiencing this issue today after adding the Sonatype OSS Maven Repository to a project. My environment: NetBeans IDE 8.2 (Build 201609300101) NetBeans IDE is updated to version NetBeans 8.2 Patch 1 Windows 10 This is what I added to my pom.xml that caused the issue: <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> I needed this repo for a snapshot version of pi4j: <dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.2-SNAPSHOT</version> </dependency> Process netbeans64.exe Uses 6+GB of memory on my machine (8GB RAM), this in turn causes the HDD to max out (I assume disk RAM/compression of some sort), and my whole PC becomes unresponsive until I'm able to kill the Netbeans process. This is very frustrating and makes Netbeans unusable until I move this dependency to a locally hosted repo, which is not convenient at all. Please comment if more details are required from my installation. Update from the previous comment. I've now opened this on another Windows 10 PC with same version of Netbeans, but better hardware specs: CPU: i7 4770K @ 3.5 GHz Memory: 32 GB HDD: 512 GB SSD Netbeans status bar message is: "Unpacking index for Sonatype OSS Maven Repository". Memory usage is crazy big and still climbing... In Resource Monitor netbeans64.exe memory usage is: Commit (KB): 1,232,532 Working Set (KB): 16,300,632 Shareable (KB): 15,440,388 Private (KB): 860,244 In Task Manager it shows: CPU: 22.3 % Memory: 840.1 MB Disk: 231.0 MB/s My OS is becoming unresponsive, so I had to kill the Netbeans process again. Something about that Sonatype OSS Maven Repository is really upsetting Netbeans. Same problem here. Netbeans 8.2, JDK 1.8. endless indexing of oss.sonatype.org from some included maven repo library coming from ivy. Product Version: NetBeans IDE 8.2 (Build 201609300101) Updates: Updates available to version NetBeans 8.2 Patch 2 Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\Tobi Delbruck\AppData\Roaming\NetBeans\8.2 Cache directory: C:\Users\Tobi Delbruck\AppData\Local\NetBeans\Cache\8.2 AFter I updated to the version below, and manually ran indexing from the Options/Java/Maven/Index tab, it seemed to fix the problem. Version info below: Product Version: NetBeans IDE 8.2 (Build 201705191307) Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\Tobi Delbruck\AppData\Roaming\NetBeans\8.2 Cache directory: C:\Users\Tobi Delbruck\AppData\Local\NetBeans\Cache\8.2 |