[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-devel
Subject:    [ jEdit-devel ] [jedit:bugs] Re: #4078 TDO DIR. CS jEdit 5.5 File Open (Slow) Bug 2019-03-20
From:       Eric Le Lay via jEdit-devel <jedit-devel () lists ! sourceforge ! net>
Date:       2019-03-22 19:53:28
Message-ID: /p/jedit/bugs/4078/9c9819c080b1641521db77dcf0c7b6d523c98d10.bugs () jedit ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============2719360880544752246==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

You could try to install jvisualvm and do CPU profiling to see what's taking so much \
time. For me (debian stretch, i3) it was gnome ATK wrapper that really killed the \
performance.

See https://stackoverflow.com/questions/47985068/bug-in-gnomes-java-atk-wrapper-how-to-disable-accessibility-for-a-swing-compo \
for a way to disable it.


---

** [bugs:#4078] TDO DIR. CS jEdit 5.5 File Open (Slow) Bug 2019-03-20**

**Status:** open
**Group:** normal bug
**Labels:** trondelta TDO file open jEdit 5.5 2019 
**Created:** Wed Mar 20, 2019 12:40 AM UTC by Mathias Hollstein
**Last Updated:** Thu Mar 21, 2019 01:41 AM UTC
**Owner:** nobody
**Attachments:**

- [activity.log](https://sourceforge.net/p/jedit/bugs/4078/attachment/activity.log) \
(145.2 kB; text/x-log)


**Preamble:**

This is *not* a patch, complaint, question, feature request or plugin bug!


**Assumptions:**

TRON-DELTA.ORG Xubuntu SE 2018 (X64/AMD64)
Linux v4.15.0 (SMP x86-64)
jEdit v5.5.0 on OpenJDK JRE v1.8.0-191 and OpenJDK 64-Bit Server VM v25.191 mixed \
mode

* jEdit is configured via configuration menu, without hacks or illegal/no-working \
                items loaded
* jEdit installed but inactive (for testing) plugins are: 
  	Common Controls
  	ErrorList
  	Info Viewer
  	JDiffPlugin
  	LucenePlugin
  	MarkerSets
  	Process Shell
  	Project Viewer
  	Sessions
  	SideKick
  	WhiteSpace


**Bug Description:**

Opening several files at once (1 to ~10 files) works fine, while opening more, e.g. \
20, 30, 50 or 100 files at once, takes a long time (approx. 1 second per file) to \
open them.

For testing the /home/<username>/.jedit/ directory was backed-up and the erased. \
After starting jEdit with a fresh ~/.jedit directory and default configuration, the \
issue was still present when opening multiple files at once via the File --> Open. In \
jEdit version 4.x, opening even 300+ files at once was not an issue and took only a \
few seconds.

The more files are already opened / registered (BufferSet and EditBus) the longer \
each additional file open operation takes. With 100+ files the system slowly comes to \
a halt and 200+ files required me to switch TTY and kill jEdit after 20 minutes.


**Logs:**

- The follwong operations took 2 seconds, loading 4-5 files of 25 total

1:08:06 AM [AWT-EventQueue-1] [debug] BufferSet: 515504231 \
addBufferAt(FileZilla.desktop (~/.desktop/),-1) 1:08:06 AM [AWT-EventQueue-1] [debug] \
BufferSet: 515504231: Buffer added FileZilla.desktop (~/.desktop/) at 13 1:08:06 AM \
[AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=CREATED,view=org.gjt.sp.jedit.View[active],source=FileZilla.desktop \
(~/.desktop/)] 1:08:06 AM [AWT-EventQueue-1] [debug] EditBus: \
BufferChanging[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]] 1:08:06 \
AM [AWT-EventQueue-1] [debug] EditBus: \
EditPaneUpdate[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]] 1:08:06 \
AM [AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active],source=Firefox.desktop \
(~/.desktop/)] 1:08:06 AM [AWT-EventQueue-1] [debug] BufferSet: 515504231 \
addBufferAt(Firefox.desktop (~/.desktop/),-1) 1:08:06 AM [AWT-EventQueue-1] [debug] \
BufferSet: 515504231: Buffer added Firefox.desktop (~/.desktop/) at 14 1:08:06 AM \
[AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=CREATED,view=org.gjt.sp.jedit.View[active],source=Firefox.desktop \
(~/.desktop/)] 1:08:07 AM [AWT-EventQueue-1] [debug] EditBus: \
BufferChanging[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]] 1:08:07 \
AM [AWT-EventQueue-1] [debug] EditBus: \
EditPaneUpdate[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]] 1:08:07 \
AM [AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active],source=FontForge.desktop \
(~/.desktop/)] 1:08:07 AM [AWT-EventQueue-1] [debug] BufferSet: 515504231 \
addBufferAt(FontForge.desktop (~/.desktop/),-1) 1:08:07 AM [AWT-EventQueue-1] [debug] \
BufferSet: 515504231: Buffer added FontForge.desktop (~/.desktop/) at 15 1:08:07 AM \
[AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=CREATED,view=org.gjt.sp.jedit.View[active],source=FontForge.desktop \
(~/.desktop/)] 1:08:07 AM [AWT-EventQueue-1] [debug] EditBus: \
BufferChanging[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]] 1:08:07 \
AM [AWT-EventQueue-1] [debug] EditBus: \
EditPaneUpdate[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]] 1:08:07 \
AM [AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active],source=Gdebi-GTK.desktop \
(~/.desktop/)] 1:08:07 AM [AWT-EventQueue-1] [debug] BufferSet: 515504231 \
addBufferAt(Gdebi-GTK.desktop (~/.desktop/),-1) 1:08:07 AM [AWT-EventQueue-1] [debug] \
BufferSet: 515504231: Buffer added Gdebi-GTK.desktop (~/.desktop/) at 16 1:08:08 AM \
[AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=CREATED,view=org.gjt.sp.jedit.View[active],source=Gdebi-GTK.desktop \
(~/.desktop/)] 1:08:08 AM [AWT-EventQueue-1] [debug] EditBus: \
BufferChanging[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]] 1:08:08 \
AM [AWT-EventQueue-1] [debug] EditBus: \
EditPaneUpdate[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]] 1:08:08 \
AM [AWT-EventQueue-1] [debug] EditBus: \
BufferUpdate[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active],source=GIMP.desktop \
(~/.desktop/)] 1:08:08 AM [AWT-EventQueue-1] [debug] BufferSet: 515504231 \
addBufferAt(GIMP.desktop (~/.desktop/),-1) 1:08:08 AM [AWT-EventQueue-1] [debug] \
BufferSet: 515504231: Buffer added GIMP.desktop (~/.desktop/) at 17


**Conclusion/Request:**

Since the migration to a new Linux and jEdit version something must have changed for \
the worse. Hopefully its just my setup and not a general issue.

Therefore, I politely ask the jEdit developers for help with tracking down the issue \
and reducing load times to a fraction of the current times.

Thanks for your help in advance!



---

Sent from sourceforge.net because jedit-devel@lists.sourceforge.net is subscribed to \
https://sourceforge.net/p/jedit/bugs/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/jedit/admin/bugs/options.  Or, if this is a mailing list, \
                you can unsubscribe from the mailing list.
--===============2719360880544752246==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>You could try to install jvisualvm and do CPU \
profiling to see what's taking so much time.<br/> For me (debian stretch, i3) it was \
gnome ATK wrapper that really killed the performance.</p> <p>See <a \
href="https://stackoverflow.com/questions/47985068/bug-in-gnomes-java-atk-wrapper-how-to-disable-accessibility-for-a-swing-compo" \
rel="nofollow">https://stackoverflow.com/questions/47985068/bug-in-gnomes-java-atk-wrapper-how-to-disable-accessibility-for-a-swing-compo</a> \
for a way to disable it.</p> <hr/>
<p><strong> <a class="alink" \
href="https://sourceforge.net/p/jedit/bugs/4078/">[bugs:#4078]</a> TDO DIR. CS jEdit \
5.5 File Open (Slow) Bug 2019-03-20</strong></p> <p><strong>Status:</strong> \
open<br/> <strong>Group:</strong> normal bug<br/>
<strong>Labels:</strong> trondelta TDO file open jEdit 5.5 2019 <br/>
<strong>Created:</strong> Wed Mar 20, 2019 12:40 AM UTC by Mathias Hollstein<br/>
<strong>Last Updated:</strong> Thu Mar 21, 2019 01:41 AM UTC<br/>
<strong>Owner:</strong> nobody<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/jedit/bugs/4078/attachment/activity.log">activity.log</a> \
(145.2 kB; text/x-log)</li> </ul>
<p><strong>Preamble:</strong></p>
<p>This is <em>not</em> a patch, complaint, question, feature request or plugin \
bug!</p> <p><strong>Assumptions:</strong></p>
<p>TRON-DELTA.ORG Xubuntu SE 2018 (X64/AMD64)<br/>
Linux v4.15.0 (SMP x86-64)<br/>
jEdit v5.5.0 on OpenJDK JRE v1.8.0-191 and OpenJDK 64-Bit Server VM v25.191 mixed \
mode</p> <ul>
<li>jEdit is configured via configuration menu, without hacks or illegal/no-working \
items loaded</li> <li>jEdit installed but inactive (for testing) plugins are: <br/>
    Common Controls<br/>
    ErrorList<br/>
    Info Viewer<br/>
    JDiffPlugin<br/>
    LucenePlugin<br/>
    MarkerSets<br/>
    Process Shell<br/>
    Project Viewer<br/>
    Sessions<br/>
    SideKick<br/>
    WhiteSpace</li>
</ul>
<p><strong>Bug Description:</strong></p>
<p>Opening several files at once (1 to ~10 files) works fine, while opening more, \
e.g. 20, 30, 50 or 100 files at once, takes a long time (approx. 1 second per file) \
to open them.</p> <p>For testing the /home/&lt;username&gt;/.jedit/ directory was \
backed-up and the erased. After starting jEdit with a fresh ~/.jedit directory and \
default configuration, the issue was still present when opening multiple files at \
once via the File --&gt; Open. In jEdit version 4.x, opening even 300+ files at once \
was not an issue and took only a few seconds.&lt;/username&gt;</p> <p>The more files \
are already opened / registered (BufferSet and EditBus) the longer each additional \
file open operation takes. With 100+ files the system slowly comes to a halt and 200+ \
files required me to switch TTY and kill jEdit after 20 minutes.</p> \
<p><strong>Logs:</strong></p> <ul>
<li>The follwong operations took 2 seconds, loading 4-5 files of 25 total</li>
</ul>
<p>1:08:06 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: \
515504231 addBufferAt(FileZilla.desktop (~/.desktop/),-1)<br/> 1:08:06 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: 515504231: Buffer \
added FileZilla.desktop (~/.desktop/) at 13<br/> 1:08:06 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=CREATED,view=org.gjt.sp.jedit.View[active]</span>,source=FileZilla.desktop \
(~/.desktop/)]<br/> 1:08:06 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
EditBus: BufferChanging<span>[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:06 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
EditPaneUpdate<span>[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:06 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active]</span>,source=Firefox.desktop \
(~/.desktop/)]<br/> 1:08:06 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
BufferSet: 515504231 addBufferAt(Firefox.desktop (~/.desktop/),-1)<br/> 1:08:06 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: 515504231: Buffer \
added Firefox.desktop (~/.desktop/) at 14<br/> 1:08:06 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=CREATED,view=org.gjt.sp.jedit.View[active]</span>,source=Firefox.desktop \
(~/.desktop/)]<br/> 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
EditBus: BufferChanging<span>[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
EditPaneUpdate<span>[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active]</span>,source=FontForge.desktop \
(~/.desktop/)]<br/> 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
BufferSet: 515504231 addBufferAt(FontForge.desktop (~/.desktop/),-1)<br/> 1:08:07 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: 515504231: Buffer \
added FontForge.desktop (~/.desktop/) at 15<br/> 1:08:07 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=CREATED,view=org.gjt.sp.jedit.View[active]</span>,source=FontForge.desktop \
(~/.desktop/)]<br/> 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
EditBus: BufferChanging<span>[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
EditPaneUpdate<span>[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active]</span>,source=Gdebi-GTK.desktop \
(~/.desktop/)]<br/> 1:08:07 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
BufferSet: 515504231 addBufferAt(Gdebi-GTK.desktop (~/.desktop/),-1)<br/> 1:08:07 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: 515504231: Buffer \
added Gdebi-GTK.desktop (~/.desktop/) at 16<br/> 1:08:08 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=CREATED,view=org.gjt.sp.jedit.View[active]</span>,source=Gdebi-GTK.desktop \
(~/.desktop/)]<br/> 1:08:08 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
EditBus: BufferChanging<span>[what=BUFFER_CHANGING,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:08 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
EditPaneUpdate<span>[what=BUFFER_CHANGED,source=org.gjt.sp.jedit.EditPane[active]</span>]<br/>
 1:08:08 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> EditBus: \
BufferUpdate<span>[what=LOAD_STARTED,view=org.gjt.sp.jedit.View[active]</span>,source=GIMP.desktop \
(~/.desktop/)]<br/> 1:08:08 AM <span>[AWT-EventQueue-1]</span> <span>[debug]</span> \
BufferSet: 515504231 addBufferAt(GIMP.desktop (~/.desktop/),-1)<br/> 1:08:08 AM \
<span>[AWT-EventQueue-1]</span> <span>[debug]</span> BufferSet: 515504231: Buffer \
added GIMP.desktop (~/.desktop/) at 17</p> \
<p><strong>Conclusion/Request:</strong></p> <p>Since the migration to a new Linux and \
jEdit version something must have changed for the worse. Hopefully its just my setup \
and not a general issue.</p> <p>Therefore, I politely ask the jEdit developers for \
help with tracking down the issue and reducing load times to a fraction of the \
current times.</p> <p>Thanks for your help in advance!</p>
<hr/>
<p>Sent from sourceforge.net because jedit-devel@lists.sourceforge.net is subscribed \
to <a href="https://sourceforge.net/p/jedit/bugs/">https://sourceforge.net/p/jedit/bugs/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/jedit/admin/bugs/options.">https://sourceforge.net/p/jedit/admin/bugs/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============2719360880544752246==--





-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic