[
https://issues.jboss.org/browse/FORGE-2670?page=com.atlassian.jira.plugin...
]
Daniel Platz edited comment on FORGE-2670 at 7/29/16 11:08 AM:
---------------------------------------------------------------
Attached threaddumps.
Steps
1. Type "com" - "TAB" in jboss froge console
2. Run in seperate cmd: FOR /L %i IN (1,1,5) DO (jcmd 10336 Thread.print) >>
threaddumps.txt
I also did checkout of the forge codebase myself and played around with ProjectFactoryImpl
myself. So, there are a lot of calls to allDirectoriesOnPath. Each invokation of
allDirectoriesOnPath takes ~4ms. Called 134 times. So, is it like 134 addons are asked?
was (Author: platzda):
Attached threaddumps.
Steps
1. Type "com" - "TAB" in jboss froge console
2. Run in seperate cmd: FOR /L %i IN (1,1,5) DO (jcmd 10336 Thread.print) >>
threaddumps.txt
From the stack-traces it looks like what i already assumed: he is
doing file-io and walking up the directory tree. Seems to be looking for the project?
anyway just the info i did not point out yet: i am running the command in a
folder/project i have been setting up with forge. i can run commands and have used forge.
all fine. just the command-completion is insanely slow.
Command-completion is slow
--------------------------
Key: FORGE-2670
URL:
https://issues.jboss.org/browse/FORGE-2670
Project: Forge
Issue Type: Bug
Affects Versions: 3.2.3.Final
Environment: Windows 7 64-Bit; JDK 8 64-Bit
Intel Cor i7-4800MQ @ 2.7GHz
16 GB RAM
SSD
Reporter: Daniel Platz
Attachments: jforge.png, threaddumps.txt
When typing e.g. "comm" and hitting Tab, it takes approximately 2 seconds for
the command-completion to kick in and make suggestions/complete the command.
I have written about it already here:
https://developer.jboss.org/message/960679#960679
Not sure what best to provide to make analysis easier. I am also Ok with debugging it
myself if there maybe is a pointer in the right direction where to look into.
Regarding the questions in the forum post:
* I did not run any previous commands; it was this way from the beginning. I also deleted
the ~/.forge folder to start afresh. Same issue
* I used the forge console from within eclipse and from the cmd. Both the same.
* I am using the 3.2.3 Final version
I have attached a screenshot of the jvisualvm sampler. Steps i did:
1. Type "com"
2. Start sampler
3. Type "TAB"
4. Wait for command-completion
5. Stop sampler
It took approximately ~2 seconds for the command-compeltion to respond. it seems the
extensive checks like DefaultFileOperations.fileExists are a big part of it as it
accumlates to ~1 seconds which sound much.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)