intellij Memory heap does not increased.
Answered
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?
Please sign in to leave a comment.
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):
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?
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.
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.