Bad performance (it's stuck, actually) of Search/Replace

Hi,

Build 7041.
I was replacing in the file attached (10k lines) "null, null, null);" by "null, 2, 1);". - IDEA stuck and I had to kill the process after about 3 minutes



Attachment(s):
items.rar
11 comments

CPU snapshot please?

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Evgeny Goldin" <no_reply@jetbrains.com> wrote in message
news:16495971.1183464925573.JavaMail.itn@is.intellij.net...

Hi,

>

Build 7041.
I was replacing in the file attached (10k lines) "null, null, null);" by
"null, 2, 1);". - IDEA stuck and I had to kill the process after about 3
minutes



0

Attached (http://download.yousendit.com/0903931B1FC0A8E6 - can't use FTP) but here's the thing - after I clicked "All" in Search/Replace dialog and CPU started to climb up I've clicked the "CPU snapshot icon" in the toolbar but it wasn't an easy thing to do as IDEA as taking 97-98% CPU at this time already (according to Process Explorer). Now, suddenly, the CPU went down and I saw that all replacements were made (same 10000-lines file, same replacement as in my first message) but now IDEA was busy taking the snapshot which is attached. After the snapshot was taken - I've pressed Ctrl+S to save the file modified and here again, "idea.exe 94%" and I can't even take a CPU snapshot as the corresponding icon seem not to respond to my clicks on it (when I hover the cursor over it - it's not even modified to "pointer")

0

So taking a CPU snapshot from IDEA is simply not possible when it's most needed ... Is there any other way it can be taken ? May be by running some command-line tool ?

0

I think IDEA has too little memory, could you please try to increase the
limit.

Evgeny Goldin wrote:

So taking a CPU snapshot from IDEA is simply not possible when it's most needed ... Is there any other way it can be taken ? May be by running some command-line tool ?


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

0

Unfortunately, the snapshot you've sent contains nothing interesting.
Could you please try the following:
- Press 'CPU snapshot' icon inthe toolbar
- Then perform search/replace
- Press the button again, after the CPU went to normal


--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Evgeny Goldin" <no_reply@jetbrains.com> wrote in message
news:26011535.1183637006116.JavaMail.itn@is.intellij.net...

Attached (http://download.yousendit.com/0903931B1FC0A8E6 - can't use FTP)
but here's the thing - after I clicked "All" in Search/Replace dialog and
CPU started to climb up I've clicked the "CPU snapshot icon" in the
toolbar but it wasn't an easy thing to do as IDEA as taking 97-98% CPU at
this time already (according to Process Explorer). Now, suddenly, the CPU
went down and I saw that all replacements were made (same 10000-lines
file, same replacement as in my first message) but now IDEA was busy
taking the snapshot which is attached. After the snapshot was taken - I've
pressed Ctrl+S to save the file modified and here again, "idea.exe 94%"
and I can't even take a CPU snapshot as the corresponding icon seem not to
respond to my clicks on it (when I hover the cursor over it - it's not
even modified to "pointer")



0

I mean, it was running with default settings. On my previous place I used to run it with custom JVM arguments (including memory bounds) but still didn't get to it in the new project.

0

Did exactly as you say, the replacement took about 3-4 minutes:
http://download.yousendit.com/DBE2D10D5C4B32BD

0

And here is my "idea.exe.vmoptions":
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

0

Thanks, the problem seems to be connected with the tracking changes against
version control.
I've notified the developer responsible.

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Evgeny Goldin" <no_reply@jetbrains.com> wrote in message
news:11449906.1183642775101.JavaMail.itn@is.intellij.net...

And here is my "idea.exe.vmoptions":
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

 -Xms128m
> -Xmx384m
> -XX:MaxPermSize=92m
> -ea
> -server
> -agentlib:yjpagent
> ]]>



0

Good, thanks for letting us know

0

Please sign in to leave a comment.