IDEA 12 (123.4) and memory usage
I'm not understanding completely how memory works under the new IDEA 12.
according to the GC widget at the bottom of the IDEA window, i'm using 200 of 494M
My idea.exe.vmoptions is as follows
-Xms128m
-Xmx512m
-XX:MaxPermSize=200m
-XX:ReservedCodeCacheSize=64m
-XX:+UseCodeCacheFlushing
-ea
-XX:+HeapDumpOnOutOfMemoryError
-agentlib:yjpagent=disablej2ee,disablealloc,sessionname=IntelliJIdea12
and the TaskManager reports 995MB of used memory (and 1.06GB of Virtual Memory)
Closing IDEA results in freeing 1.15GB or so
Is this working as intended ?
I'm currently loving the new IDEA, performance seems smoother expecially. But unfortunately memory is in short supply here, and I can't dedicate >1G to IDEA, or i'm out there in swapping hell
请先登录再写评论。
If you are in memory constrained environment for Idea 12 you can
can switch off new compiler mode in settings : new compiler is external
process requiring additional memory.
As to original question.
Java heap allocated memory (heap stats widget) is not the only memory
used by IDEA. There is VM memory for loaded classes (aka PermGen), that
can be decreased if (e.g. -XX:MaxPermSize=150m)
Also IDEA uses quite a lot of native memory (up to 200M on x86) for the
caches handling.
On 11/26/2012 7:08 PM, Thibaut wrote:
>
>
>
>
>
>
>
>
>
thanks for the explanation.
I especially wasn't aware of the native cache handling. Is that new in Leda ?
No, but previously (< v12) we used memory mapping files and in Leda it
is direct buffers (sort of just native memory) with file streamed IO.
The limit of native memory size is the same between versions. First
variant can cause slightly smaller memory consumption though.
On 11/30/2012 1:13 AM, Thibaut wrote:
>
>
>