Adding Ant File causes IDEA to hang

Ok need help here figuring out how to get a snapshot on OS X with yjp.
I have installed YourKit already and the buttons are there, but not sure
what the proper way to proceed is.

What happens is that I have an ant script file, which import 8 other
script files, one for each module. When I right click on the build.xml
file and choose add as ant script, I get the spinning pizza wheel, and
the IDE hangs for a good 30 seconds. In the mean time memory jumps from
98MB to 141, then when it's done it goes down to 73MB. I'm not
concerned with the memory jump since it seems to GC after it's done, but
rather the CPU hit I'm taking and the hang I get.

Any clues would be great thanks.

Thanks
R

3 comments
Comment actions Permalink

Robert, pressing the "memory snapshot" button should automatically create a snapshot at your home directory. For practical purposes, where's what you should do:

1) Press the "memory snapshot" button. This will save a snapshot on your home directory.
2) Do whatever you need to profile
3) Press the "memory snapshot" button again. This will save a second snapshot.
4) Send both snapshots to JetBrains, so they can compare each other

Things work a bit different for CPU snapshots: the first time you press the "cpu snapshot" button, it will start recording data, and only wher you press it again (presumably after doing whatever you wanted to profile), the snapshot will be saved on your home directory. So, for a CPU snapshot, you should do:

1) Press the "cpu snapshot" button. Nothing happens right now.
2) Do whatever you need to profile
3) Press the "cpu snapshot" button again. This will save a snapshot on your home directory.
4) Send the snapshot to JetBrains

... which leads me to a suggestion: how about drawing the "cpu snapshot" button in the activated state (ie, blue background) while the data is being recorded?

0
Comment actions Permalink

In article <29669675.1107461303496.JavaMail.itn@is.intellij.net>,
Marcus Brito <mbrito@gmail.com> wrote:

Robert, pressing the "memory snapshot" button should automatically create a
snapshot at your home directory. For practical purposes, where's what you
should do:

1) Press the "memory snapshot" button. This will save a snapshot on your home
directory.
2) Do whatever you need to profile
3) Press the "memory snapshot" button again. This will save a second
snapshot.
4) Send both snapshots to JetBrains, so they can compare each other

Things work a bit different for CPU snapshots: the first time you press the
"cpu snapshot" button, it will start recording data, and only wher you
press it again (presumably after doing whatever you wanted to profile), the
snapshot will be saved on your home directory. So, for a CPU snapshot, you
should do:

1) Press the "cpu snapshot" button. Nothing happens right now.
2) Do whatever you need to profile
3) Press the "cpu snapshot" button again. This will save a snapshot on your
home directory.
4) Send the snapshot to JetBrains

.. which leads me to a suggestion: how about drawing the "cpu snapshot"
button in the activated state (ie, blue background) while the data is being
recorded?


There is no memory snapshot button :) That's the start of the problem
:D

R

0
Comment actions Permalink

There is no memory snapshot button :) That's the
start of the problem


Oh well, you started your post with:

I have installed YourKit already and the buttons are
there, but not sure what the proper way to proceed
is.


So I figured you got at least that working. Anyway, I'm not sure how YJP works on the Mac, but if you manage to start IDEA with YJP enabled (you'll see something like "YourKit Java Profiler listening or port 10100", read the YJP docs on how to do that) you can later launch YJP, connect to IDEA and repeat the steps I outlined above -- jut replace "memory snapshot button" and "cpu snapshot items" with the correspondent menu items in YJP itself :)

0

Please sign in to leave a comment.