Idea.exe.vmoptions not used?

Hi,

In Maia I've had problems with changing the memory settings in the idea.exe.vmoptions file.

There is no change in Idea when I update the file C:\Program Files\JetBrains\IntelliJ IDEA 92.24\bin\idea.exe.vmoptions
so that it contains the following rows:
-Xms256m
-Xmx396m

Idea still displays "41M of 51M" in right bottom (and the max seems to be 256m).

How can I be sure that I update the right file? The window title is "Intellij IDEA (Maia) IU-92.24".


thanks,
Lennart

5 comments
Comment actions Permalink

Hello Lennart,

Because of the Program Files virtualization in Windows Vista and later, you
need to make sure that you run the tool you use to edit the vmoptions file
as an administrator.

In Maia I've had problems with changing the memory settings in the
idea.exe.vmoptions file.

There is no change in Idea when I update the file C:\Program
Files\JetBrains\IntelliJ IDEA 92.24\bin\idea.exe.vmoptions

so that it contains the following rows:

-Xms256m

-Xmx396m

Idea still displays "41M of 51M" in right bottom (and the max seems to
be 256m).

How can I be sure that I update the right file? The window title is
"Intellij IDEA (Maia) IU-92.24".

thanks,
Lennart
---
Original message URL:
http://www.jetbrains.net/devnet/message/5250902#5250902

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

elhoo wrote:

Hi,

In Maia I've had problems with changing the memory settings in the idea.exe.vmoptions file.

There is no change in Idea when I update the file C:\Program Files\JetBrains\IntelliJ IDEA 92.24\bin\idea.exe.vmoptions
so that it contains the following rows:
-Xms256m
-Xmx396m

Idea still displays "41M of 51M" in right bottom (and the max seems to be 256m).

How can I be sure that I update the right file? The window title is "Intellij IDEA (Maia) IU-92.24".


thanks,
Lennart


The file you indicate should be the correct file.If you want to be sure it is the correct one being read, make a purposeful erroneous entry like:

    -XmsAm

You should then get an error that the JVM could not be started.

When it starts, IDEA, or more accurately the JVM, does not allocate a block of memory as large as the maximum. That would be wasteful. Instead it allocates the minimum amount.  The 51 MB you are seeing is based on the minimum memory specified. By default, the minimum is 32MB. So initially 32 MB was allocated. As some point IDEA needed more memory, about 51MB, and more memory was allocated.

What's curious though is that you have set your minimum to 356MB (and your maximum to 396MB). As such, I would expect that 51 to be close to 256 (It's usually a few MB less than the maximum specification).


Message was edited by: Mark Vedder:  Accidentally posted before I finished my initial edits... oops.

0
Comment actions Permalink

Thanks,

I was using Notedpad++ and editing the file. The save command worked as far as I know, but when I opened it using Windows Notepad as an administrator I did see two different files!?!?

This whas what I did see on notepad:
-Xms32m
-Xmx256m
-XX:MaxPermSize=150m
-ea
-agentlib:yjpagent=disablej2ee,disablecounts,disablealloc,sessionname=IntelliJIdea90

This in notepad++:
-Xms256m
-Xmx512m
-XX:MaxPermSize=150m
-ea
-agentlib:yjpagent=disablej2ee,disablecounts,disablealloc,sessionname=IntelliJIdea90


I dont understand it, but changing it in notepad as an administrator did it! thanks!

//LH

Ps why dont you have an dialog in Intellij that can do this for me?

0
Comment actions Permalink

In the cold weather, the UGG boots are considered as the best shoes.More and more people like wearing the UGG boots such as the http://sell-ugg.com/UGG-Classic-Metallic-5812/c9/index.html.With its development ,the UGG boots have lauched different kinds of boots into the fashion market,including the http://uggboots-euro.com/UGG-Classic-Short-Boots/c3/index.html and the http://uggboots-euro.com/UGG-Women%27s-ighkoo/c23/index.html.However,in the fashion world,if you want to be more attractive and elegant,the beautiful shoes are not enough.You have to choose the best stylish handbag to match your shoes.Therefor,the designer replica handbags are very necessary.If you want to buy the best designer cheap handbags,i would like to introduce two famous brand handbags to you.I think there must be one handbag is your favorite.One is the famous brand http://www.famousbrandbag.com/Versace/c40/index.html,the other is the Ferragamo Handbags.Both of them are the famous brand in the world.Their quality are very good.

---
Original message URL: http://www.jetbrains.net/devnet/message/5254921#5254921

0

Please sign in to leave a comment.