OS: Ubuntu 15.10 Gnome
Tool: IntelliJ 15
지금까지 신경을 안쓰고 있었는데 이제보니 IntelliJ가 OpenJDK로 구동이 되는것을 발견했다.
아무래도 SunJDK가 좀더 퍼포먼스가 빠르지 않을까 싶어 SunJDK로 구동이 되도록 변경을 했다.
아래와 같이 기본적으로 IntelliJ가 OpenJDK로 실행되고 있음을 볼 수 있다.
1004lucifer
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
4월 08, 2016 10:14:00 오후 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
4월 08, 2016 10:14:00 오후 java.util.prefs.FileSystemPreferences$6 run
명령어가 아닌 아이콘을 눌러서 실행한다면 아래의 위치에 로그가 쌓이게 된다.
2016-04-08 22:28:31,101 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-04-08 22:28:31,131 [ 30] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-145.597.3, 29 Mar 2016 00:00)
2016-04-08 22:28:31,131 [ 30] INFO - #com.intellij.idea.Main - OS: Linux (4.2.0-35-generic, amd64)
2016-04-08 22:28:31,131 [ 30] INFO - #com.intellij.idea.Main - JRE: 1.8.0_76-release-b18 (JetBrains s.r.o)
2016-04-08 22:28:31,132 [ 31] INFO - #com.intellij.idea.Main - JVM: 25.76-b18 (OpenJDK 64-Bit Server VM)
2016-04-08 22:28:31,136 [ 35] INFO - #com.intellij.idea.Main - JVM Args: -Xbootclasspath/a:/devTools/idea-IU-145.597.3/bin/../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=/devTools/idea-IU-145.597.3/bin/idea64.vmoptions -XX:ErrorFile=/home/lucifer/java_error_in_IDEA_%p.log -XX:HeapDumpPath=/home/lucifer/java_error_in_IDEA.hprof -Djb.restart.code=88 -Didea.paths.selector=IntelliJIdea2016.1 -Didea.jre.check=true
SunJDK로 변경방법
1. 명령어를 이용해 IntelliJ를 실행하는 경우
vi ~/.bashrc
export IDEA_JDK
2. 아이콘을 이용해 IntelliJ를 실행하는 경우
vi {_IDEA_HOME_}/bin/idea.sh
ex) vi /devTools/idea-IU-145.597.3/bin/idea.sh
#
# ---------------------------------------------------------------------
# IntelliJ IDEA startup script.
# ---------------------------------------------------------------------
#
IDEA_JDK=/sdk/jdk1.8.0_77
message()
{
...
위와같이 작업 후 IntelliJ를 구동하면 이제는 SunJDK로 구동이 되는 것을 볼 수 있다.
lucifer@lucifer-Vostro-V13:~/.IntelliJIdea2016.1/system/log$ tail -f idea.log
2016-04-08 22:41:10,793 [ 1] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 2016-04-08 22:41:10,826 [ 34] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-145.597.3, 29 Mar 2016 00:00)
2016-04-08 22:41:10,826 [ 34] INFO - #com.intellij.idea.Main - OS: Linux (4.2.0-35-generic, amd64)
2016-04-08 22:41:10,826 [ 34] INFO - #com.intellij.idea.Main - JRE: 1.8.0_77-b03 (Oracle Corporation)
2016-04-08 22:41:10,826 [ 34] INFO - #com.intellij.idea.Main - JVM: 25.77-b03 (Java HotSpot(TM) 64-Bit Server VM)
2016-04-08 22:41:10,834 [ 42] INFO - #com.intellij.idea.Main - JVM Args: -Xbootclasspath/a:/devTools/idea-IU-145.597.3/bin/../lib/boot.jar -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=/devTools/idea-IU-145.597.3/bin/idea64.vmoptions -XX:ErrorFile=/home/lucifer/java_error_in_IDEA_%p.log -XX:HeapDumpPath=/home/lucifer/java_error_in_IDEA.hprof -Djb.restart.code=88 -Didea.paths.selector=IntelliJIdea2016.1 -Didea.jre.check=true
참고: http://stackoverflow.com/questions/8382641/installing-idea-on-ubuntu-11-10/8384111#8384111
댓글
댓글 쓰기