bad performance with intelliji on Virtual machine 关注
i have a problem with performance of intelliji :
i have a pc with 8GB memory and with core i5 and ssd disk that installed on intellij idea on my pc it work perfect with no problem
but i have create a vm on HPDL 380G8 server with 8G memory and 10vcpu and sas disks but performance of intelliji on virtual machine is bad and when using intelliji on vm it will be slow
now i am confused what is my problem how can solve this issue ? intelliji has problem with xeon cpu ?
Could be a lot of things like I/O performance, video emulation and other overheads.
is that important set video emulation on virtual machine ? how can set video emulation ? but i think have to set specific config on intellij idea for get best performance
We do not have experience running IDEA in a VM and don't have any specific recommendations for VM tuning, sorry.
who or where can i solve my problem when restart vm after few minutes intelliji work perfect but after a few minutes system performance will be decrease very slow another after restart system all of things will be ok i am sure intelliji has problem realy confused how can solve issue?
Hard to tell without a CPU snapshot at least.
what is your means from cpu snapshot i just have attached a pic from cpu usage for 1 day from that vm
I've provided a link to the instructions in the very first reply above, here it is again in case you have missed: https://intellij-support.jetbrains.com/hc/articles/207241235.
you said Start CPU Usage Profiling where is this option or how can run this ?
The article describes what you need to add into .vmoptions to enable this menu option.
in product directory we have a file with name idea64.exe.vmoptions and there are a few config lines on that do we have to change configs on this file if our intelliji is now working on virtual machine?
if my intelliji is installed on physical pc don't need edit this file ?
It should work fine with the same options no matter where you run it. To identify the specific problem we'll need a CPU snapshot at least.
i have read your doc but for get cpu snapshot confused for get that do i have to these steps:
1 - download this file (https://www.yourkit.com/download/yjp-2016.02-b45.exe)
2 - install that on my virtual machines that intelliji has been installed on that
3 - add this line to idea64.exe.vmoptions ?
4 - start intelliji idea Tools menu: Start CPU Usage Profiling and Capture Memory Snapshot.
are these steps correct ?
It depends on the JVM you are running and on your IDE version.
For Ultimate you don't need to download the agent. For 32-bit JVM (default), VM option would be different as well as the .vmoptions file.
VM Options can be edited directly from inside the IDE (Help | Edit Custom VM Options).
You can get 2017.1 Ultimate EAP from https://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.1+EAP. It already has the profiling agent enabled and you will not need to perform any configuration. Just get the snapshot and upload it: https://intellij-support.jetbrains.com/hc/articles/206869619.
i have installed intelligi idea ultimate 13 with ultimate version don't need install agent file ?
1 - for 32bit and 64bit versions for edit vm options file just use this path : Help | Edit Custom VM Options ?
2 - for get cpu snapshot with ultimate version just use Tools menu: Start CPU Usage Profiling ?
1. Yes, just the option would be different depending on the bits.
now intelliji idea ultimate is installed and please see attached pic can not see from tools menue
Start CPU Usage Profiling
what is problem ?
Agent is not loaded for some reason, to understand why idea.log is needed: https://intellij-support.jetbrains.com/hc/articles/207241085. Please don't post large logs here, you can share it via some other service or upload at https://intellij-support.jetbrains.com/hc/articles/206869619 (make some unique name to avoid conflicts with other logs that could be already uploaded there).
I'd recommend trying with the latest version available at https://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.1+EAP.
IDEA 13 is 4 years old and performance issues you have may be already fixed in the later updates.
i have uploaded file idea here
idea.log (1009 kb) 100%
2 - second problem is can not see Help | Edit Custom VM Options file
You don't see it because your IDEA version is too old. This feature was added in IDEA 15.
The logs shows that IDEA runs on 32-bit Java 1.7 and you didn't enable profiling:
> Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
how can understand intelliji is 32bit or 64bit version ?
here i see the latest version of intelliji
1- is this 32bit or 64bit ?
2 - is this ultimate version ?
3- if install this do i need install agent ?
4- is there Start CPU Usage Profiling in this version ?
1. This specific version comes with both 32-bit and 64-bit JDKs, if you run idea.exe, it will be 32-bit, if you run idea64.exe, it will be 64-bit.
2. Yes, IU in the file name stands for IDEA Ultimate.
3. No, the agent is already present in the bin directory.
4. Yes, and it's enabled by default (you can notice -agentlib:yjpagent... line already present in both idea.exe.vmoptions and idea64.exe.vmoptions files)
dear friend hi now i am using ideaIU.2016.3.2 on my virtual machine now when i open a few tabs in intellij and scroll in my code intellij idea will be so slow i get capture memory snapshot and could not understand from that size of that is 90MB
what info do i have to send for you for help for troubleshooting?
We need a CPU snapshot, not a memory snapshot.
i get cpu snapshot and upload here with this name
IU-171.2272.14_m.pirhadi_06.02.2017_19.48.35.zip (2.1 mb) 100%
please help me i am so confused why intelligi is so slow
The snapshot shows that IDE is indexing the project. Please wait until indexing is finished, then start the new snapshot capture, perform the most slow actions (scrolling?) for about 1 minute, then stop recording and upload the new CPU snapshot.
i have attached file with this name
IU-171.2272.14_m.pirhadi_06.02.2017_20.02.02.zip (3.4 mb) 100%
what is problem?
I've asked the responsible developer to look into it, may take some days.
excuseme i have a question i have to get cpu snapshot when cpu usage is high ? or everytime can get cpu snapshot for solve problem and troubleshoot ?