intellij Memory heap does not increased.

已回答

Hi.

 

I using intellij, when i open chrome (maybe 4~5 tap) and change something in javascript file then intellij have some struggle.

 

so i change intellij configuration vmoption (xmx is 750m, so i change it to 2048m) but my intellij's memory indicator still show me Max Heap memory is 989M.

(Of course my pc have a lot of extra memory)

How can i fix it? anyone experience like this?

0

How did you change the settings? Have you tried to use "Help | Change Memory Settings"? 

Do you receive the "out of memory" popup: https://i.imgur.com/yDCY17d.png

What do you have in idea.log? Pay attention to these strings (the last one contains the actual Xms/Xmx value): 

 

2020-06-05 15:27:29,633 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------

2020-06-0515:27:29,640 [ 7] INFO - .intellij.util.EnvironmentUtil - loading shell env: /bin/zsh -l -i -c '/Users/konstantin.annikov/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/IntelliJ IDEA.app/Contents/bin/printenv.py''/private/var/folders/87/l6k6x3qj0_388ns2879ql_w80000gn/T/intellij-shell-env.tmp'

2020-06-05 15:27:29,648 [ 15] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-201.7223.91, 30 Apr 2020 10:29)

2020-06-05 15:27:29,649 [ 16] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.15.4, x86_64)

2020-06-05 15:27:29,649 [ 16] INFO - #com.intellij.idea.Main - JRE: 11.0.6+8-b765.40 (JetBrains s.r.o)

2020-06-05 15:27:29,649 [ 16] INFO - #com.intellij.idea.Main - JVM: 11.0.6+8-b765.40 (OpenJDK 64-Bit Server VM)

2020-06-05 15:27:29,649 [ 16] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:ErrorFile=/Users/konstantin.annikov/java_error_in_idea_%p.log -XX:HeapDumpPath=/Users/konstantin.annikov/java_error_in_idea.hprof -Dide.no.platform.update=true -Didea.plugins.path=/Users/konstantin.annikov/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/IntelliJ IDEA.app.plugins -Djb.vmOptionsFile=/Users/konstantin.annikov/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/IntelliJ IDEA.app.vmoptions -Didea.paths.selector=IntelliJIdea2020.1 -Didea.executable=idea -Didea.home.path=/Users/konstantin.annikov/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7223.91/IntelliJ IDEA.app/Contents -Didea.vendor.name=JetBrains
 
0

Hi, Thanks to fast response.

I Using three way, As you Say, "Help | Change Memory Settings", and "Help | Edit Custom VM Options...", using tool box change property - "intellij | Configuration | Maximum Heap Size".

 

And In log, It looks like well loading on XMX option.

Recently log like this.

INFO - #com.intellij.idea.Main - JVM Args: exit -Xms1024m -Xmx4096m <- It is what am i change in VMOption. Change Memory and toolbox set 2048.

 

Update Information.

after that log, intellij log say

 

j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: Picked up _JAVA_OPTIONS: -Xmx1024M

 

Did you know this option? It is not VM Option?

0

If you have these environment variables, please remove them and then logout/login or reboot:

JAVA_TOOL_OPTIONS
_JAVA_OPTIONS

Adding these environment variables will affect all the java apps running on the system and is not recommended. 

0

Your right. Thanks for your help!

My Window environment option _JAVA_OPTIONS are setting on XMX 1024M. So Intellij set heap memory by VMOption, but Computer's Java Heap is forced.

0

请先登录再写评论。