Slow startup time

Answered

I have Pycharm installed on my local machine, and in a virtual box on my machine.

If I run a hello world script by right clicking on the  script and selecting Run (or CTRL+Shift+F10) on the local machine, it takes 5 seconds to start. On the virtual box the same script takes 2 seconds to start.

Both machines are running Anaconda.

How can I debug the difference in start times between the two machines? I would have thought things would be faster on the local machine instead of on the virtual box

4 comments

Hello,

Please record CPU snapshot during slowness as described here: https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems and upload it to http://uploads.jetbrains.com/ with your zipped log folder (Help| Show log). Please tell us the exact file names, thank you.

0

Thank you for the tip Anna.

 

I have installed Yourkit Java Profile as described, but can't find the yjpagent file to copy to my bin directory.

Where can I find it? The contents of my Yourkit-JavaProfiler-2017.02 folder are

drwxr-xr-x 23 jon jon 4096 Sep 5 15:47 bin
drwxr-xr-x 4 jon jon 4096 Sep 5 15:46 jre64
drwxr-xr-x 7 jon jon 4096 Sep 5 15:47 lib
-rw-r--r-- 1 jon jon 19284 Sep 5 15:47 license.html
-rw-r--r-- 1 jon jon 1631 Sep 5 15:47 license-redist.txt
drwxr-xr-x 3 jon jon 4096 Sep 5 15:47 probes
drwxr-xr-x 5 jon jon 4096 Sep 5 15:47 samples

 

Thanks!

0

I think I got part of the way there.

I copied libjpagent.so from /bin/linux-x86-64 to my Pycharm bin folder (please note that I am using the community edition)

I then added this to my pycharm64.vmoptions file:

-agentlib:yjpagent=delay=10000,probe_disable=*

 

When I run pycharm.sh, I now see this in the shell:

[YourKit Java Profiler 2017.02-b66] Log file: /home/jon/.yjp/log/Main-10562.log

 

So I assume that Pycharm is running Yourkit Java Profiler.

 

however, under my Tools menu, I don't see the Start CPU Usage Monitoring button. Where can I find it?

 

 

0

> under my Tools menu, I don't see the Start CPU Usage Monitoring button.

It's correct. You need to connect to the running IDE instance from the standalone YourKit Profiler UI.

0

Please sign in to leave a comment.