Intellj IDEA 에서 java 파일의 크기가 너무 클 경우 컴파일이 안되는 경우가 있다.

그럴 경우에는 아이콘이 다음과 같이 나타난다.

이럴 경우에는 idea.properties 파일의 idea.max.intellisense.filesize 의 값을 늘려주자.

idea.properties
#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=25000

기본값은 2500 이며, 필요한 크기만큼 늘려준다.


Idea.properties

idea.properties 파일은 ${INTELLIJ_HOME}/bin 디렉토리에서 찾을 수 있다.

예로 Win7(64bit) 의 경우엔 C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.6\bin 이다.

None 
     Edit Labels


    Intellij IDEA 시 과도하게 메모리 사이즈를 크게 설정할 경우 다음과 같은 오류가 발생하는 경우가 있다.

    The JVM could not be started. The maximum heap size (-Xmx) might be too large or an antivirus of firewall tool could block the execution.

     

     

    그럴 땐 다음 위치에서 파일을 변경해주면 된다.

    ${INTELLIJ_HOME}/bin/idea.exe.vmoptions

     

     

    기본 설정 값은 다음과 같다.

     

    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=256m
    -XX:ReservedCodeCacheSize=64m
    -XX:+UseCodeCacheFlushing
    -ea
    -Dsun.io.useCanonCaches=false

    + Recent posts