简体   繁体   English

Intellij - 如何使用 nVidia 运行它

[英]Intellij - How to run it with nVidia

I think here is the most suitable place for me to ask this question.我觉得这里是最适合我问这个问题的地方。

Well, Intellij is very lag at the beginning.好吧, Intellij一开始就非常滞后。 I tried it run the 64 bit version of the IDE, lag reduced a lot.我试过它运行 64 位版本的 IDE,延迟减少了很多。 But it is still lagging at the beginning.但它在开始时仍然滞后。 I think the best solution is, run it with my nVidia graphics card.我认为最好的解决方案是,用我的nVidia显卡运行它。 I added idea64.exe (I found the location at task manager ....\\bin\\idea64.exe).我添加了idea64.exe (我在任务管理器中找到了位置....\\bin\\idea64.exe)。 I launched it again.我再次启动它。 It was still lagging.它仍然滞后。 I checked the NVIDIA GPU Activity , none.我检查了NVIDIA GPU Activity ,没有。

Is that any way to launch it with nVidia?有没有办法用nVidia启动它? I think the idea64.exe is a launcher.我认为idea64.exe是一个启动器。 It will run another exe / jar after we selected the project.在我们选择项目后,它将运行另一个exe / jar

EDIT: What I mean by lag is, when you typed a word like p , the ide lagged about 1~2 seconds, after that the auto complete box popped out.编辑:我所说的滞后是指,当你输入一个像p这样的词时,ide 滞后了大约 1~2 秒,之后自动完成框弹出。 If I click File, the ide also lagged about 1~2 seconds.如果我点击文件,ide 也滞后了大约 1~2 秒。 After that it work very fine if you click it again.之后,如果您再次单击它,它就可以正常工作。

Last time my graphics card software broke.上次我的显卡软件坏了。 Eclipse also have problem like this. Eclipse也有这样的问题。 After I reinstall the graphics card software, Eclipse work smoothly.重新安装显卡软件后, Eclipse工作顺利。

IDE's don't use much graphics processing power. IDE 不使用太多的图形处理能力。 They primarily use your CPU, memory, and hard drive.它们主要使用您的 CPU、内存和硬盘。

One of those is probably your bottleneck.其中之一可能是您的瓶颈。 IntelliJ is very resource intensive in all three of those categories. IntelliJ 在所有这三个类别中都非常占用资源。

Yes, idea64.exe is the launcher.是的,idea64.exe 是启动器。 Note that NVIDIA GPU Activity doesnt always show everything the gpu is running (but in this case it should).请注意,NVIDIA GPU 活动并不总是显示 gpu 正在运行的所有内容(但在这种情况下应该)。

Also its probably not an issue with graphics, an ide does not require any graphical performance.此外,它可能不是图形问题,IDE 不需要任何图形性能。 Probably some other requirement.可能还有其他要求。 Could you post your system specifications?你能发布你的系统规格吗? and ram usage?和内存使用?

Just FYI to run application on gpu you can simply right click the exe and select "run with graphics processor" -> "Nvidia GPU"仅供参考以在 gpu 上运行应用程序,您只需右键单击 exe 并选择“使用图形处理器运行”->“Nvidia GPU”

Please see the lists of the plugins enabled in your installation and disable those that you don't need.请查看安装中启用的插件列表并禁用不需要的插件。

It's very easy to enable all out of the box plugins in IntelliJ by mistake when you install it by repeatedly clicking on Next .当您通过重复单击Next安装 IntelliJ 时,很容易错误地启用 IntelliJ 中的所有开箱即用插件。

To force running on Nvidia assigning in NVidia Controlpanel is not sufficient:在 NVidia 控制面板中强制在 Nvidia 上运行是不够的:

These steps can be used for any Swing application - eg Java2D Demo.这些步骤可用于任何 Swing 应用程序 - 例如 Java2D Demo。

  1. Add these vm options (Help -> Edit Custom VM Options):添加这些虚拟机选项(帮助 -> 编辑自定义虚拟机选项):

    -Dsun.java2d.d3d=true -Dsun.java2d.d3d=true

    -Dsun.java2d.noddraw=false -Dsun.java2d.noddraw=false

  2. In NVidia Controlpanel: Add the idea64.exe to be run on NVidia GPU Any java process using the GPU will be shown in the 'NVIDIA GPU Activity' systray.在 NVidia 控制面板中:添加要在 NVidia GPU 上运行的idea64.exe 任何使用 GPU 的 Java 进程都将显示在“NVIDIA GPU 活动”系统托盘中。

My experience is that using the GPU for the IDE is not worth it - see below GPU/CPU usages.我的经验是将 GPU 用于 IDE 是不值得的 - 请参阅下面的 GPU/CPU 使用情况。

However, it is extremely beneficial for Graphic Intensive Swing Application.但是,它对于图形密集型 Swing 应用程序非常有益。 They make use of the GPU and you have a bit more CPU resources.他们使用 GPU,你有更多的 CPU 资源。

In my case, the IDE is not using much GPU except for scrolling and even here the CPU is sufficient.就我而言,IDE 没有使用太多 GPU,除了滚动,甚至在这里 CPU 就足够了。

With my recent Hardware the overall CPU+GPU load was higher which is bad because Laptop fans turn on quicker.使用我最近的硬件,整体 CPU + GPU 负载更高,这很糟糕,因为笔记本电脑风扇启动得更快。 So I disabled running it on GPU - see the Screenshots below.所以我禁用在 GPU 上运行它 - 请参阅下面的屏幕截图。

My Config:我的配置:

IntelliJ 2020.02 (See taskmgr) Windows 1903, Dell Laptop 15" 7540 - Xeon E-2286M - 128GB ECC RAM - NVidia RTX 5000 (16GB) IntelliJ 2020.02(参见 taskmgr)Windows 1903,戴尔笔记本电脑 15" 7540 - Xeon E-2286M - 128GB ECC RAM - NVidia RTX 5000 (16GB)

For example, if you scroll in text editor, you will see where the load is.例如,如果您在文本编辑器中滚动,您将看到负载在哪里。

The following screenshots were taken while I was scrolling in the text editor.以下屏幕截图是我在文本编辑器中滚动时拍摄的。

Running idea64.exe with GPU configs activated Here GPU is doing the painting work - and it is using too much GPU.在 GPU 配置激活的情况下运行idea64.exe这里 GPU 正在执行绘制工作 - 它使用了过多的GPU。 Main reason why i disabled the above steps.我禁用上述步骤的主要原因。

图形处理器

Running idea64.exe only CPU:仅运行idea64.exe CPU:

Scrolling again - Now CPU+GPU load in total is lesser when not using the GPU.再次滚动 - 现在 CPU+GPU 的总负载在不使用 GPU 时更小。 This time the GPU load is not in idea64.exe, but in crss.exe and dwm.exe.这次GPU负载不在idea64.exe中,而是在crss.exe和dwm.exe中。

It spikes up form some percentage only - they use anyway the NVidia GPU.它仅从某个百分比上升 - 他们无论如何都使用 NVidia GPU。

仅 CPU

Crashes I switched GPU off for Intellig2020.02 due performance reasons, but it also crashes on Laptop resume when monitor layout has changed:崩溃由于性能原因,我为 Intellig2020.02 关闭了 GPU,但当显示器布局改变时,它也会在笔记本电脑恢复时崩溃:

1 Display -> 3xFullHD or 1Display to 2x4k and vice versa 1 显示器 -> 3xFullHD 或 1Display 到 2x4k,反之亦然

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM