IntelliJ在启动时无法运行

时间:2015-02-24 16:34:19

标签: intellij-idea

我遇到IntelliJ问题。我以前没有遇到任何问题但最近因为启动时出现以下错误而无法使用,因此无法使用。

me@mymachine:~/idea-IU-139.1117.1$ ./bin/idea.sh 
Exception in thread "AWT-XAWT" 
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-XAWT"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-0 14.0.3#IU-139.1117.1, eap:false"
Exception in thread "Performance watcher" 
Exception: java.lang.OutOfMemoryError thrown from theUncaughtExceptionHandler in thread "Performance watcher"

异常:从线程“Timer-0”中的UncaughtExceptionHandler抛出java.lang.OutOfMemoryError

我试过增加我的vmoptions但它没有用。我甚至尝试重新安装。

机器:ubuntu,64位

1 个答案:

答案 0 :(得分:1)

因为有这一行:Exception: java.lang.OutOfMemoryError,我想你的内存堆大小问题。 您应该尝试更改Java堆大小。

sudo nano /etc/profile

添加以下行:

_JAVA_OPTIONS = -Xms1024m -Xmx1024m

1024 MB是内存堆大小,您可以更改此值。

参考:Setting environment variables permanentlyJVM options