bad performance with intelliji on Virtual machine
Answered
dear all
Hi
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 ?
BR
Please sign in to leave a comment.
now what do i have to do ?
have to send other cpu snapshot when it get so slow ?
You can try disabling IntelliLang plugin
how can disable that ?
In Setiings | Plugins
ok i will be disable that but untill now could not understand what was my problem for slow speed while using intelliji on virtual machine ?
Judging by the snapshots, there are performance issues caused by language injection and editor highlighting. The snapshots don't seem to show anything specific to virtual machine. In general, programs under VMs can be slower. It could be something related to the settings of that VM.
What exactly was slow during your last snapshot? BTW it shows that the VM has 20 CPU cores. Does the physical machine have enough CPUs to support these 20 cores plus cores for all other VMs running on the same server?
so thanks
what is your means from editor highlighting here ?
Q : What exactly was slow during your last snapshot?
A: when i start intelliji it is ok for working but after a few minutes scroll and type code and move netween tabs in intellij will be so slow and can not work at all
BR
Babak
By "editor highlighting" I mean errors and warnings that are shown in the editor. In some cases (e.g. with language injection or methods with common names) issuing those warnings can take some time, BTW you can also consider disabling "Unused declaration" inspection for methods and fields, that might speed up highlighting a bit.
What exactly is slow? Do you mean that you press a button and the character appears on the screen after some delay? How long is the delay?
how can disabling "Unused declaration" ?
Do you mean that you press a button and the character appears on the screen after some delay? yes exactly
after 3-4 second or more sometimes and scroll will be so slow now today i see language injection and it autoselect now analyse references what do i have to do ?
BR
You can search in settings for "unused declaration", find the result in Inspections and disable the checkbox.
Have you disabled IntelliLang plugin? If yes, there should be no "Language Injection" settings anymore.
I've noticed that your IDEA is started with "-XX:ReservedCodeCacheSize=240m" option. It might be a bit too low a value. Could you please find this string in idea/bin/idea*.vmoptions file (or Help | Edit Custom VM Options...) and change it to 350m?
If this doesn't help, could you please provide a CPU snapshot where you experience these 3-4 second pauses during typing or scrolling, and specify what exactly you were doing at that time?
dear friend
hi
in new version of intellij JetBrains IntelliJ IDEA Ultimate 2017.1 Build 171.3780.107 i just could find memory snapshot how can use cpu snapshot in this version ?
BR
Hi,
Just wish to share my research on this subject...
I'm a fan of windows with Linux VM working environment. I can't stress more how stable is windows lately, maybe also from the official support they receive for drivers ( maybe I am lucky... but no blue screen for more than 6 years ). I have a powerful working station with 20 cores and 124GB RAM on a 5K monitor, where only windows showed to be the most stable. CentOS/Fedora/Ubuntu had many issues with video card drivers and 5K resolution which is mostly not supported (yet) plus wireless, M2ssd performance. I was not able to do updates without some of those drivers creating problems.
Anyway, I kinda have a lot of powerful resources and for sure I wish to harvest the benefits using Linux. I did a lot of tests with different VM configurations and did not reached a smooth experience interacting with the desktop environment viewed from Virtualbox window. This is for all applications... there seems to be always a delay which I find it very frustrating. Though windows VM's are way better. I guess there is not so much effort done for GUI support from Linux community or Virtualbox...
My solution for all of this is to use X11 forwarding. The feedback is instant for intellij so far. To achieve this on windows I use cygwin where I have XServer starting with multiwindow mode. Using xterm I start a "ssh -Y [dev]" session and from there I start idea.sh. This will start a windows window "canvas" where the program will forward and listen for events as a Display. This basically looks like you start intellij as a normal windows program but everything you do in it is executed on the Linux VM.
The best of Linux and Windows experience at once ( and stable :) ).