简体   繁体   English

Jvm错误-6,在64位启动Intellij-IDEA时

[英]Jvm error -6 while starting Intellij-IDEA in 64 bit

I have a problem starting Intellij IDEA (15.0.3) in 64 bit mode. 我在64位模式下启动Intellij IDEA(15.0.3)时遇到问题。 When clicking on the idea6.exe I get this error (Failed to create a JVM error code -6): 单击idea6.exe时出现此错误(无法创建JVM错误代码-6):

JVM错误代码6

This is my configuration: 这是我的配置:

  • System: 系统:

      Windows 7 - 64 bit - 16GB RAM 
  • System Variables: 系统变量:

      IDEA_JDK_64: C:\\Program Files\\Java\\jdk1.8.0_74 JVM_HOME: C:\\Program Files\\Java\\jdk1.7.0_79 (1.7 version is needed for my dev activity) 
  • vm options: idea64.exe.vmoptions left as default vm选项:idea64.exe.vmoptions默认保留

As a trial: I've tried various combinations like system variables pointing to the same JDK path or also to increase -Xmx value in idea64.exe.vmoptions, but the error is still there. 作为试验:我尝试了各种组合,例如指向同一JDK路径的系统变量,或者也在idea64.exe.vmoptions中增加-Xmx值,但错误仍然存​​在。

What can the root cause be? 根本原因是什么?

Thank you very much. 非常感谢你。

I solved problem in my case by deleting file C:\\Users\\username\\.IdeaIC2016.2\\idea.exe.vmoptions , because I created it before to customize VM options. 我通过删除文件C:\\ Users \\ username \\ .IdeaIC2016.2 \\ idea.exe.vmoptions解决了我的问题,因为我之前创建了它来自定义VM选项。 File can have name idea64.exe.vmoptions if you overrode options under 64-bit version of Intellij IDEA. 如果您在64位版本的Intellij IDEA下覆盖选项,则文件可以具有名称idea64.exe.vmoptions

Tracked it down to a mis-typed VM option in the end. 最后将其跟踪到错误输入的VM选项。

Somehow one of the lines in my idea64.exe.vmoptions file has been mis-typed. 不知怎的,我的idea64.exe.vmoptions文件中的一行已被错误输入。 Instead of -XX:UseParNewGC I had -XX:USeParNewGC (note the unwanted extra capital letter). 而不是-XX:UseParNewGC我有-XX:USeParNewGC (注意不需要的额外大写字母)。

Correcting that fixed the problem - so check your .vmoptions file for typos if you get the -6 error on startup. 更正修复了问题 - 如果启动时出现-6错误,请检查.vmoptions文件是否存在拼写错误。

And note that there may be several copies of this file. 请注意,此文件可能有多个副本。 The default is in the installation folder (eg "Program Files (x86)\\Jetbrains\\Intellij 2016.1\\bin\\idea64exe.vmoptions"), but if you select "Help...Edit Custom VM Options" in the IDE it will create an override file in \\Users\\.IntellijIdea2016.1\\idea64exe.vmoptions 默认位于安装文件夹中(例如“Program Files(x86)\\ Jetbrains \\ Intellij 2016.1 \\ bin \\ idea64exe.vmoptions”),但如果在IDE中选择“帮助...编辑自定义VM选项”,它将创建一个覆盖\\ Users \\ .IntellijIdea2016.1 \\ idea64exe.vmoptions中的文件

I experienced the same issue with IntelliJ IDEA 2016.1.3 on 64bit Windows 7 with JDK1.8.0_92. 我在使用JDK1.8.0_92的64位Windows 7上遇到了与IntelliJ IDEA 2016.1.3相同的问题。

Executing idea.bat instead of idea.exe worked for me. 执行idea.bat而不是idea.exe为我工作。

I think issue caused because you are using 32 bit launcher, and it has limitation as 4G for RAM. 我认为问题是因为你使用的是32位启动器,而且它的RAM有限制为4G。

So, if you will change value "-Xmx" to 2048 in c:\\users\\XXXXXX.WebStorm2016.3\\webstorm.exe file -> this should help. 因此,如果您将c:\\ users \\ XXXXXX.WebStorm2016.3 \\ webstorm.exe文件中的值“-Xmx”更改为2048 - >这应该有帮助。 Otherwise -> delete this file and wait when WebSrotm propose you to change it from IDE 否则 - >删除此文件并等待WebSrotm建议您从IDE更改它

Note: there are also webstorm.exe and webstorm64.exe files in your c:\\Program Files 注意:c:\\ Program Files中还有webstorm.exe和webstorm64.exe文件

Had same problem, any option in studio64.exe.vmoptions led to this window. 有同样的问题, studio64.exe.vmoptions任何选项studio64.exe.vmoptions导致了这个窗口。

Fixed by changing entry in PATH , it had old JDK folder, which pointed to different Java installation(Java 7) than JAVA_HOME (Java 8), after replacing it — Android Studio started normally with entries in studio64.exe.vmoptions file. 通过更改PATH条目来修复,它有旧的JDK文件夹,它指向不同的Java安装(Java 7)而不是JAVA_HOME (Java 8),在替换它之后 - Android Studio正常启动了studio64.exe.vmoptions文件中的条目。

For me, using Intelli J Idea Community Version 2017.3, I found the idea.exe.vmoptions file in C:\\Users\\${UserName}.IdeaIC2017.3\\config. 对我来说,使用Intelli J Idea社区版2017.3,我在C:\\ Users \\ $ {UserName} .IdeaIC2017.3 \\ config中找到了idea.exe.vmoptions文件。 I had increased the JVM Heap Memory to 4096MB from 512MB due to an earlier crash (-Xmx4096m). 由于早期的崩溃(-Xmx4096m),我已经将JVM堆内存从512MB增加到4096MB。 Changing to 1024MB seemed to do the job. 改为1024MB似乎可以胜任。

对我来说,它删除了在C:USERS.IntelliJIdea2017.2 \\ config文件夹下创建的vmoptions文件。

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

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