Very frequent OutOfMemory error
Ubuntu Linux 5.04 on AMD64 + 1GB RAM
JDK: 1.5.0_02
IntelliJ IDEA #3354
I see OutOfMemory error about every 4-5 minutes regardless of what I am doing (at least I was not able to find any pattern to it). The memory usage in IDEA shows very small footprint and I have sometimes juzt one small file opened to edit (small I mean less than 100 lines of code). I already assigned MAX for VM to 512MB - it does not change thing for a bit.
After the information popup shows up - pressing Ignore hangs whole IDEA so it has to be killed.
I can upload idea.log if you wish.
Jerzy Puchala
Please sign in to leave a comment.
It might be due to permanent generation size. Try adding -XX:MaxPermSize=92m
to idea.vmoptions
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
Same problem here - made the changes you suggested, but the problem
still appears (maybe a little later, can't say exactly).
At the moment I do heavy work on some ant build files. After some
minutes of pleasure, the code complition suddently stops working
(without the "red circle of doom").
Some minutes later (about 30) I get a dialog with "Out of memory"
written in the title. But it is still too late - no buttons or any other
widgets on the dialog are visible --> "kill -9"...
Johannes Schneider
Maxim Shafirov (JetBrains) wrote:
If it is the ant task that is running out of memory, you may have to increase the Maximum Heap Size in the Build Properties Popup (Properties button in the ant tab).
Ive been using IDEA under JDK5 since it was in Beta, and it (JDK) cores fairly regularly, somtimes memory related, other times something else (all issues have been reported to Sun).
Ive got the MaxPermGen set to 128M - are there any other unknown/undocumented flags that we can tweak to try and play with this a little?
Sory, but this:
>to idea.vmoptions
is not working... :(
I tryed with 92 and 128. Any oter suggestions? Will any log make it easier for you? I will be happy to provide one. I can reproduce it in few minutes on any project (even 4 classes project!).
Best regards
Jerzy Puchala
Chances are low there's any useful info in the log but we'll try...
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
For the record, he's not the only one getting these errors. I've seen a few OutOfMemory exceptions when working with #3354, thing that never happened with a prior build.
One thing I've noticed is these exceptions usually happen during project load time -- when I'm opening a second or third project in the same session.
Given, my memory settings are pretty tight (min 192, max 192, perm 64). I took these errors as IDEA really reaching my limits, and just gave up on opening more than one project.
I noticed I was getting StackOverflow exceptions when I had the structure pane open, and it appeared that when this was happening, idea would quickly leak memory, and I'd hit an OutOfMemory in short order. With the structure pane hidden, memory leakage seems under control.