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.

Bug 230388 - org.netbeans.modules.maven.spi.actions.AbstractMavenActionsProvider.isActionEnable: LowPerformance took 39509 ms.
Summary: org.netbeans.modules.maven.spi.actions.AbstractMavenActionsProvider.isActionE...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-05-28 13:52 UTC by Exceptions Reporter
Modified: 2013-11-29 07:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 199324


Attachments
nps snapshot (67.43 KB, application/nps)
2013-05-28 13:52 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-05-28 13:52:35 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
GUEST: select project

GUEST: Did an svn update in a different window, and then went back to netbeans while the update was happening, only to find an apparently frozen netbeans.  It eventually thawed, but I have no idea why.



Maximum slowness yet reported was 57496 ms, average is 48502
Comment 1 Exceptions Reporter 2013-05-28 13:52:36 UTC
Created attachment 135007 [details]
nps snapshot
Comment 2 Milos Kleint 2013-06-07 12:54:27 UTC
FileObjectFactory enters read access mutexPrivileged.enterReadAccess() and gets stuck. most likely because other threads are performing intensive IO as well. 

reassigning to filesystems just to verify that my analysis is correct and code in filesystems works as intended. If so, please reassign back to me.
Comment 3 Jaroslav Havlin 2013-07-17 13:11:18 UTC
> reassigning to filesystems just to verify that my analysis is correct and code
> in filesystems works as intended. If so, please reassign back to me.
I think you are correct. Thread "Pending Refresh" has entered write access and is waiting for some operation.

These lines from the snapshot seems important:
org.netbeans.modules.maven.j2ee.CopyOnSave.ensureDestinationFileExists()  99.6%
java.io.UnixFileSystem.createDirectory[native]()                          99%

The lock isn't held necessarily long (write access is entered in FolderObj.createFolderImpl()), so the code in filesystems seems to work as expected. The only problem is the call to File.mkdirs() that takes 30 seconds.

Reassigning back. Thanks.
Comment 4 Milos Kleint 2013-11-29 07:37:34 UTC
m2Configuration.reloadStream() method no longer calls filesystem related codebase.