[jira] [Commented] (NETBEANS-2999) NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference

2019-08-22 Thread Laszlo Kishalmi (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16913073#comment-16913073
 ] 

Laszlo Kishalmi commented on NETBEANS-2999:
---

Seems to be a good catch. Could you shate the gradle project or a reduced one 
with similar dependencies where we have the chance to reproduce this issue?

We need the whole context so profiling snapshots are also welcome.

> NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference
> -
>
> Key: NETBEANS-2999
> URL: https://issues.apache.org/jira/browse/NETBEANS-2999
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Shevek
>Priority: Major
> Attachments: netbeans-all-listener-references.png
>
>
> See image.  A random sampling suggests that they're all calling 
> FileChangeListener.
> Randomly sampling: ListenerReference.weakListener.source is a FolderObj on 
> /tmp, or a pointer into .cache/netbeans/11.1index



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2999) NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference

2019-08-19 Thread Shevek (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16910807#comment-16910807
 ] 

Shevek commented on NETBEANS-2999:
--

Possibly related:

WARNING [org.openide.filesystems.JarFileSystem]: Duplicate entries in 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.webjars.npm/datatables-bulma/1.0.1/3aabcca73863cc148788de9f3f6ffe9485e32863/datatables-bulma-1.0.1.jar:
 META-INF/; please report to JAR creator.
WARNING [org.openide.filesystems.JarFileSystem]: Duplicate entries in 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.webjars.npm/codemirror/5.34.0/495791980d9790ce7c18c54fa339e687273438ce/codemirror-5.34.0.jar:
 META-INF/; please report to JAR creator.
WARNING [org.openide.filesystems.JarFileSystem]: Duplicate entries in 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.webjars.bower/jquery/3.4.1/8fb15f3fed7f5993aefecf3d9e58d77c53937375/jquery-3.4.1.jar:
 META-INF/; please report to JAR creator.
WARNING [org.openide.filesystems.JarFileSystem]: Duplicate entries in 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.webjars.bower/sifter/0.5.3/61d55818e7ccf21e61d934ac6802aada14006057/sifter-0.5.3.jar:
 META-INF/; please report to JAR creator.
WARNING [org.openide.filesystems.FileUtil]: 
FileUtil.normalizeFile(/home/shevek/.gradle/caches/modules-2/files-2.1/org.apache.parquet/parquet-column/../java.base/share/classes/java/lang/Object.java)
 took 4,799 ms. Result is 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.apache.parquet/java.base/share/classes/java/lang/Object.java
WARNING [org.openide.filesystems.FileUtil]: 
FileUtil.normalizeFile(/home/shevek/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/../java.base/share/classes/java/lang/Object.java)
 took 2,730 ms. Result is 
/home/shevek/.gradle/caches/modules-2/files-2.1/org.springframework/java.base/share/classes/java/lang/Object.java
WARNING [org.openide.filesystems.FileUtil]: 
FileUtil.normalizeFile(/home/shevek/.gradle/caches/modules-2/files-2.1/org.apache.orc/../java.base/share/classes/java/lang/Object.java)
 took 4,195 ms. Result is 
/home/shevek/.gradle/caches/modules-2/files-2.1/java.base/share/classes/java/lang/Object.java
WARNING [org.openide.filesystems.FileUtil]: 
FileUtil.normalizeFile(/home/shevek/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-oauth2-jose/5.0.0.RELEASE/529686b04f1dc986ef1569993d2d892648fa2fab/../../../../modules.xml)
 took 4,097 ms. Result is 
/home/shevek/.gradle/caches/modules-2/files-2.1/modules.xml

Does this have any bearing on NETBEANS-2661 if things are unexpectedly mapping 
to java.base...Object.java ?

> NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference
> -
>
> Key: NETBEANS-2999
> URL: https://issues.apache.org/jira/browse/NETBEANS-2999
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Shevek
>Priority: Major
> Attachments: netbeans-all-listener-references.png
>
>
> See image.  A random sampling suggests that they're all calling 
> FileChangeListener.
> Randomly sampling: ListenerReference.weakListener.source is a FolderObj on 
> /tmp, or a pointer into .cache/netbeans/11.1index



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2999) NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference

2019-08-19 Thread Shevek (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16910805#comment-16910805
 ] 

Shevek commented on NETBEANS-2999:
--

Happened again, triggered by a relatively minor branch-switch on the underlying 
git repository. Heap histogram follows:

 num #instances #bytes  class name
--
   1:633726  991761648  [Ljava.lang.Object;
   2:  23127629  925105160  
org.openide.util.WeakListenerImpl$ListenerReference
   3:136984  131468384  [B
   4:904413  123634448  [C
   5:954318   45807264  
org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$FileEventImpl
   6:   1227595   29462280  
java.util.concurrent.ConcurrentLinkedQueue$Node
   7:803335   25706720  java.lang.ref.WeakReference
   8: 76636   22985176  [I
   9:700696   22422272  
org.openide.util.WeakListenerImpl$ProxyListener
  10:890577   21373848  java.lang.String
  11:594043   19009376  java.util.HashMap$Node
  12:749798   17995152  
org.openide.filesystems.FCLSupport$DispatchEventWrapperSingle
  13:190909   12218176  java.net.URL
  14:477159   11451816  
org.openide.filesystems.FCLSupport$DispatchEventWrapperMulti
  15:678692   10859072  com.sun.proxy.$Proxy1
  16: 89552   10461752  [Ljava.util.HashMap$Node;
  17:2365299461160  
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj
  18:2903396968136  java.util.LinkedList$Node
  19:1620176480680  
org.openide.util.WeakListenerImpl$ListenerReference$1
  20:1341106437280  java.util.HashMap
  21:1510766043040  java.util.WeakHashMap$Entry
  22:1420305681200  
org.netbeans.api.java.classpath.ClassPath$Entry
  23:2153815169144  java.util.ArrayList
  24:2876694602704  java.util.concurrent.atomic.AtomicReference
  25: 110764496200  [F
  26:2493453989520  javax.swing.event.EventListenerList
  27:1642823942768  
org.openide.util.WeakListenerImpl$PropertyChange
  28: 920843683360  java.util.LinkedHashMap$Entry
  29: 295813275856  java.lang.Class
  30:1269803047520  
org.netbeans.modules.java.classpath.SimplePathResourceImplementation
  31: 377593002632  [S
  32: 774582478656  java.io.File
  33:  6153236  [Ljava.util.WeakHashMap$Entry;
  34:1438472301552  java.lang.Integer
  35: 670382145216  
org.netbeans.modules.masterfs.filebasedfs.naming.NameRef
  36: 604451934240  java.lang.StackTraceElement
  37: 451381805520  java.lang.ref.SoftReference
  38: 527951689440  
org.netbeans.modules.masterfs.filebasedfs.naming.FileName
  39: 446551428960  org.netbeans.lib.lexer.token.DefaultToken
  40: 421681349376  java.util.Hashtable$Entry
  41:  15301336280  [J
  42:  12901323712  
[Ljava.util.concurrent.ConcurrentHashMap$Node;
  43: 307101228400  java.lang.ref.Finalizer
  44: 272571090280  org.openide.util.lookup.ProxyLookup$WeakRef
  45: 418731004952  
java.util.Collections$UnmodifiableRandomAccessList
  46: 22047 881880  
org.netbeans.modules.gradle.api.GradleDependency$ModuleDependency
  47: 27257 872224  org.openide.util.lookup.ProxyLookup$R
  48: 26968 862976  org.openide.modules.Dependency
  49: 26901 860704  [Ljava.util.Collection;
  50: 52805 844880  java.util.HashSet
  51: 25522 816704  java.util.concurrent.ConcurrentHashMap$Node
  52: 25156 804992  
org.openide.text.PositionRef$Manager$ChainItem
  53: 27257 654168  
org.openide.util.lookup.ProxyLookup$WeakResult
  54: 27314 653600  [Lorg.openide.util.Lookup$Result;
  55: 18688 598016  
org.openide.util.CharSequences$Fixed6Bit_11_20
  56: 11545 554160  org.openide.filesystems.FileChangeImpl
  57:  7512 540864  java.awt.geom.AffineTransform
  58:  2913 539616  [Ljava.util.Hashtable$Entry;
  59: 13343 533720  
org.netbeans.modules.editor.lib2.document.Mark
  60: 20184 531808  [Ljava.beans.PropertyChangeListener;
  61: 22060 529440  
org.netbeans.modules.editor.lib2.highlighting.HighlightItem
  62: 21937 526488  java.beans.PropertyChangeSupport
  63: 1 524304  
[Lorg.netbeans.modules.masterfs.filebasedfs.naming.NameRef;
  64:  8140 520960  

[jira] [Commented] (NETBEANS-2999) NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference

2019-08-17 Thread Shevek (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16909854#comment-16909854
 ] 

Shevek commented on NETBEANS-2999:
--


"Finalizer" #3 daemon prio=8 os_prio=0 tid=0x7f203c092800 nid=0x189c 
runnable [0x7f2015357000]
   java.lang.Thread.State: RUNNABLE
at java.util.Arrays$ArrayList.indexOf(Arrays.java:3860)
at java.util.Arrays$ArrayList.contains(Arrays.java:3868)
at java.util.IdentityHashMap$KeySet.removeAll(IdentityHashMap.java:999)
at org.openide.util.lookup.ProxyLookup.setData(ProxyLookup.java:283)
at 
org.openide.util.lookup.ProxyLookup.unregisterTemplate(ProxyLookup.java:249)
- locked <0x0007254c1ee0> (a 
org.netbeans.spi.project.support.DelegatingLookupImpl)
at org.openide.util.lookup.ProxyLookup.access$400(ProxyLookup.java:50)
at org.openide.util.lookup.ProxyLookup$WeakRef.run(ProxyLookup.java:727)
at org.openide.util.lookup.ProxyLookup$R.finalize(ProxyLookup.java:345)
at java.lang.System$2.invokeFinalize(System.java:1270)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:102)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:217)



> NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference
> -
>
> Key: NETBEANS-2999
> URL: https://issues.apache.org/jira/browse/NETBEANS-2999
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 11.1
>Reporter: Shevek
>Priority: Major
> Attachments: netbeans-all-listener-references.png
>
>
> See image.  A random sampling suggests that they're all calling 
> FileChangeListener.
> Randomly sampling: ListenerReference.weakListener.source is a FolderObj on 
> /tmp, or a pointer into .cache/netbeans/11.1index



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2999) NetBeans has consumed entire heap with WeakListenerImpl$ListenerReference

2019-08-17 Thread Shevek (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16909853#comment-16909853
 ] 

Shevek commented on NETBEANS-2999:
--

Randomly selected interesting threads:


"RepositoryUpdater.worker" #1031 daemon prio=1 os_prio=0 tid=0x7f1f2012b800 
nid=0x7104 runnable [0x7f1fe8eb2000]
   java.lang.Thread.State: RUNNABLE
at 
org.openide.filesystems.MemoryFileSystem$Mapper.getURL(MemoryFileSystem.java:409)
at org.openide.filesystems.URLMapper.findURL(URLMapper.java:115)
at org.openide.filesystems.FileObject.toURL(FileObject.java:1216)
at 
org.netbeans.modules.java.source.indexing.APTUtils.get(APTUtils.java:144)
at 
org.netbeans.modules.java.source.nbjavac.indexing.MultiPassCompileWorker.compile(MultiPassCompileWorker.java:173)
at 
org.netbeans.modules.java.source.indexing.JavaCustomIndexer.index(JavaCustomIndexer.java:361)
at 
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$2.run(Indexable.java:138)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:275)
at 
org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:136)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doIndex(RepositoryUpdater.java:2750)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.access$800(RepositoryUpdater.java:2154)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2636)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$1.run(RepositoryUpdater.java:2634)
at 
org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.refreshTransaction(TaskCache.java:540)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.index(RepositoryUpdater.java:2634)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.call(RepositoryUpdater.java:3300)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work$3.call(RepositoryUpdater.java:3255)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$4.run(RepositoryUpdater.java:2127)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2123)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runInContext(RepositoryUpdater.java:2104)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.access$1500(RepositoryUpdater.java:136)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:3255)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:3785)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.doTheWork(RepositoryUpdater.java:3420)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task._run(RepositoryUpdater.java:6183)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.access$4300(RepositoryUpdater.java:5834)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2$1.run(RepositoryUpdater.java:6099)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
at 
org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.performScan(RunWhenScanFinishedSupport.java:83)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6095)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task$2.call(RepositoryUpdater.java:6091)
at 
org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at 
org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at 
org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at 
org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at 
org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Task.run(RepositoryUpdater.java:6091)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

"Refresh-After-WindowActivated" #787 daemon prio=1 os_prio=0 
tid=0x7f1f28172000 nid=0x4581 in