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.
20140430-6a41887cb2db. Every time I start the IDE, there is heavy disk I/O for several minutes that makes the IDE (and the rest of the computer) mostly unresponsive. Thread dumps show "LocalHistory.ParallelTasks" daemon prio=10 tid=0x00007f3f98377800 nid=0x5311 runnable [0x00007f3f7a893000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242) at java.io.File.exists(File.java:813) at org.netbeans.modules.localhistory.store.LocalHistoryStoreImpl.cleanUpFolder(LocalHistoryStoreImpl.java:782) - locked <0x00000000c102fba0> (a org.netbeans.modules.localhistory.store.LocalHistoryStoreImpl) at org.netbeans.modules.localhistory.store.LocalHistoryStoreImpl.cleanUpImpl(LocalHistoryStoreImpl.java:764) at org.netbeans.modules.localhistory.store.LocalHistoryStoreImpl.access$1000(LocalHistoryStoreImpl.java:82) at org.netbeans.modules.localhistory.store.LocalHistoryStoreImpl$4.run(LocalHistoryStoreImpl.java:733) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ${netbeans.user}/var/filehistory is about 109Mb. If something needs to be cleaned up, could it be done less frequently, or small subsets on each start?
Would also be appropriate to display a progress indicator with a cancel button (api.progress IIRC) for a heavyweight background task like this.
Could simply select a randomized subset each time. Would you accept patches?
yes, patches are welcome
until fixed a possible workaround would be to set "never remove LH files" in options > team > versioning > history that, of course, might bloat the storage ...
> "never remove LH files" in options > team > versioning > history Ah, did not realize there was such an option; will try that for now.
to prematurely stop cleanup set either -J-Dnetbeans.localhistory.maxCleanupCount=amount of versioned files or -J-Dnetbeans.localhistory.maxCleanupTime=time in seconds you wrote the problem appears every time. Wandering what generated those 109Mb in case that entries older than a week are removed. is there anything running in your setup that could touch a big amount of files ? (or very often maybe?) fixed in core-main #1f793bcff9ff
Integrated into 'main-silver', will be available in build *201405250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1f793bcff9ff User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #244497 - LocalHistoryStoreImpl.cleanUpFolder does a lot of work at every startup