Caret movement in IDEA X very slow

I'm using a the idea/100.46 build and have to say that the editor feels very
sluggish when moving the caret in a small Java file (< 200 lines).

What can I do to improve the responsiveness?

Tom

33 comments
Comment actions Permalink

just wondering where you got one from, they've only published 99.18 today for us, mere mortals

:)
0
Comment actions Permalink

I'm using the tag "idea/100.46" from the IDEA Git repository.

0
Comment actions Permalink

BTW, I compare the editor performance with the one from IDEA 8.0.4 and 9.0.3.

Tom

0
Comment actions Permalink

BTW, I compare the editor performance with the one from IDEA 8.0.4 and 9.0.3.

Tom

0
Comment actions Permalink

Hi Tom,

The right way to go is to submit dedicated ticket to IJ tracker, attach problem file and performance snapshot to it and describe what exact caret moves did you perform (e.g. horizontal within the single row, vertical only etc).

Denis

0
Comment actions Permalink

/docs/DOC-192


What's that?

How can I log performance like in older IDEA versions?

Tom

0
Comment actions Permalink

BTW, the problem happens with every plain Java file with vertical and
horizontal caret movements (press and hold the cursor key to see the caret
only on certain locations).

Tom

0
Comment actions Permalink

This was the link to online document. I believe you can see it if you open current thread at browser.

Denis

0
Comment actions Permalink

I am unable to reproduce the problem at local environment (horizontal and vertical cursor changes inside plain text file of ~200 lines).

That's why I asked for the problem file and CPU snapshot.

Denis

0
Comment actions Permalink

When I add the line

-agentlib:yjpagent

to the IDEA_HOME/bin/idea.exe.vmoptions and try to start IDEA using the
IDEA_HOME/bin/idea.bat (only way if built from sources, because there is no
idea.exe), I'm getting the error message

Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory:
yjpagent

Tom

0
Comment actions Permalink

That's why I asked how to create a CPU snapshot.

Tom

0
Comment actions Permalink

Please follow information provided at
http://devnet.jetbrains.net/docs/DOC-192

On 14.12.2010 20:06, Tom wrote:

That's why I asked how to create a CPU snapshot.

>

Tom



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Guest wrote:

That's why I asked how to create a CPU snapshot.

Tom

http://devnet.jetbrains.net/docs/DOC-192

0
Comment actions Permalink

Hello Tom,

quote from aforementioned DOC-192:

IntelliJ IDEA Community Edition does not include a YourKit profiling agent, because the YourKit agent library is not open-source. To take a CPU or memory snapshot with IntelliJ IDEA Community Edition, you can download an evaluation version of YourKit Java Profiler, copy the yjpagent library to the IntelliJ IDEA binary directory, add it to the VM options as described above, and connect to the running IntelliJ IDEA instance from the standalone YourKit Profiler UI.

0
Comment actions Permalink

Let's not spread FUD, ok? http://www.yourkit.com/overview/ , read 'Free embedding' section. Here's another proof from the horse's mouth: http://forums.yourkit.com/viewtopic.php?f=2&t=3396&p=11273&hilit=license#p11273

People often confuse the actual profiling UI (which does the analysis) and the agent (which collects the data). I won't comment on ASL & BSD compatibility, as I ain't no lawyer :) But in my view there was no reason to drop it from the IDEA CE, was there?

0
Comment actions Permalink

See, there is no single word there about open-source applications - but we certainly need to look deeper in the issue.
Meanwhile, you can just follow instruction :) There is no way to check your claim without CPU snapshot.

0
Comment actions Permalink

Hello Andrew,

Where's the FUD? We don't want to depend on any commercial software in the
open-source Community Edition of IntelliJ IDEA, even if the license for said
commercial software allows free distribution. This makes it much easier,
for example, to include IntelliJ IDEA in Linux distributions.

Let's not spread FUD, ok? http://www.yourkit.com/overview/ , read
'Free embedding' section. Here's another proof from the horse's mouth:
http://forums.yourkit.com/viewtopic.php?f=2&t=3396&p=11273&hilit=licen
se#p11273

---
Original message URL:
http://devnet.jetbrains.net/message/5280780#5280780


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Dmitry, aren't agents licensed under the BSD? My comment was about the part which claims 'because yourkit isn't open source, etc.', where it doesn't really apply, as IDEA doesn't bundle yourkit commercial product. Anyway, this particular omission of pre-packaged agent hurts usability somewhat, but doesn't affect me directly (using ultimate edition).

0
Comment actions Permalink

Speaking of YourKit, and going quite a bit off-topic... :)

The new YourKit 9.5 can attach to any running Java process, without explicitly starting that process with the agent library configured.
This is done through the new Java 6 Attach API, which allows runtime agent loading and class bytecode retransformation.

This has proven to be quite a killer feature for me.
Never again the "it's slow, why, oh I wish I'd started it with the profiler agent JVM setting" etc.

(note: just a happy user, no relation with the YourKit company)
-tt

0
Comment actions Permalink

Hello Andrew,

If the agents are indeed licensed under the BSD, I have no idea where to
find the source code.

Again, it's not the case that we may not bundle YourKit with IDEA CE. Rather,
we chose not to.

Dmitry, aren't agents licensed under the BSD? My comment was about the
part which claims 'because yourkit isn't open source, etc.', where it
doesn't really apply, as IDEA doesn't bundle yourkit commercial
product. Anyway, this particular omission of pre-packaged agent hurts
usability somewhat, but doesn't affect me directly (using ultimate
edition).


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Ok, that clarifies it, I was under the impression that there was some licensing conflict for IDEA CE.

P.S.: the agent-less attach doesn't provide full access to all features (due to JVMTI design)

0
Comment actions Permalink

It looks like I'm doing something wrong:

- build IDEA from sources, unpacked
out/artifacts/ideaIC-100.SNAPSHOT.win.zip to "C:\IDEA X"

- added the line

-agentlib:yjpagent

  to "C:\IDEA X\bin\idea.exe.vmoptions" (after the "-ea" line)

- copied yjpagent.dll (1.183.744 byte, MD5:
22B1D6BF4ADBE0DA5166EF7DC6CBBBF2) from yjp-9.5.2.exe to "C:\IDEA X\bin"

- started "C:\IDEA X\bin\idea.bat"; console shows

Loaded. Log file: C:\Dokumente und
Einstellungen\tom\.yjp\log\704.log

- loaded my plain Java project

=> there are NO toolbar buttons to record CPU usage

Is there a plug-in or option which has to be enabled/selected?

Tom

0
Comment actions Permalink

Omission in documentation.
You also need to copy YOURKIT_HOME\lib\yjp-controller-api-redist.jar into IDEA_HOME\lib\ directory.

0
Comment actions Permalink

Done. I'm still not seeing any new toolbar buttons. :(

Tom

0
Comment actions Permalink

Oh, sorry for misleading. These buttons appear to be available in ultimate edition only.
You still can connect to IDEA using YourKit's UI (if it's trial period isn't expired yet), or use it's free command-line tool.

0
Comment actions Permalink

OK, I'm giving up. Will try IDEA 10.0.3 or .4 again.

Tom

0
Comment actions Permalink

OK, I've downloaded IDEA X Ultimate and - what should I say - it is fast.
Again using the ICE built from sources - very sluggish caret movement.

Tom

0
Comment actions Permalink

Can you explain the performance problem in ICE? How to proceed?

Tom

0
Comment actions Permalink

Hi Tom,

I was unable to reproduce that with the latest CE build (100.79).

I don't see other way to go over than analyze performance snapshot.

Denis

0
Comment actions Permalink

I was unable to reproduce that with the latest CE build (100.79).


Sorry, same problem with this build.

I don't see other way to go over than analyze performance snapshot.


I'd like to help, but I don't know how without trying a day to get Yourkit
working on IDEA.

Tom

0

Please sign in to leave a comment.