Am I the only one having severe memory problems?

Since we already got a release candidate, only tracker issues marked a "Stopship" are going to be fixed and no tracker issue concerning memory problems is marked as "Stopship", I wonder if nobody else has problems.

After opening my project, IDEA uses abou 70 MB. Just by editing/searching/refactoring and compiling/building (nothing run/debugged/etc.) I can get OutOfMemoryErrors with a maximum of 200 MB. At the moment I use a maximum of 400 MB to be able to work longer, but after some time I cannot manage to get the VM use less than 224 MB (even more if I work longer).

I already sumitted this into the tracker, but I would like to know if other people are experiencing this too.

20 comments
Comment actions Permalink

I've seen leaking to the point where I can't go all day without shutting
down. No severe but fairly annoying.

"Michael Descher" <no_mail@jetbrains.com> wrote in message
news:26735011.1089200147164.JavaMail.itn@is.intellij.net...

Since we already got a release candidate, only tracker issues marked a

"Stopship" are going to be fixed and no tracker issue concerning memory
problems is marked as "Stopship", I wonder if nobody else has problems.
>

After opening my project, IDEA uses abou 70 MB. Just by

editing/searching/refactoring and compiling/building (nothing
run/debugged/etc.) I can get OutOfMemoryErrors with a maximum of 200 MB. At
the moment I use a maximum of 400 MB to be able to work longer, but after
some time I cannot manage to get the VM use less than 224 MB (even more if I
work longer).
>

I already sumitted this into the tracker, but I would like to know if

other people are experiencing this too.
>


0
Comment actions Permalink

Depending on what I do with the IDE, I can easily bust the VM with 200 MB maximum settings in 1 - 2 hours. Problem is that as soon as the VM cannot get below 150 MB or so, it gets damn slow spending most of the time with garbage collection.

0
Comment actions Permalink

I've even seen IDEA's memory usage start climbing uncontrollably into the GB range. I saw it climb from 256MB all the way to 1.2GB of usage. Needless to say, there's a memory leak somewhere...

0
Comment actions Permalink

Rob Andres wrote:

I've even seen IDEA's memory usage start climbing uncontrollably into
the GB range. I saw it climb from 256MB all the way to 1.2GB of
usage. Needless to say, there's a memory leak somewhere...


This is easy reproducable for me.
I just have to open a dialog with a file/directory chooser.

Carsten


0
Comment actions Permalink

Carsten Schäfer wrote:

Rob Andres wrote:

>>I've even seen IDEA's memory usage start climbing uncontrollably into
>>the GB range. I saw it climb from 256MB all the way to 1.2GB of
>>usage. Needless to say, there's a memory leak somewhere...


This is easy reproducable for me.
I just have to open a dialog with a file/directory chooser.

Carsten

Just validated. That memory is collected away by pressing GC button. So this is not a memory leak.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Carsten Schäfer wrote:

This is easy reproducable for me.
I just have to open a dialog with a file/directory chooser.


Well, I have read in another thread about those file/directory chooser
problems, but it cannot be related to that only. Here's one of my
observations. The memory values behind the steps I took are the minimum
ones I can get by clicking the GC button dozens of times.

1) Open project => Memory: 47M
2) Rebuild project => Memory: 74M
3) Find in files (with no result) => Memory: 80M
4) Run tomcat integration and stop it => Memory: 113M

As you can see, rebuilding the project takes a large amount of memory.
This would not be a problem if it was a one-time consumption, but since
I can raise the memory consumption by just editing and building, I
suppose each build/compile makes more memory get wasted.

Michael

0
Comment actions Permalink

Michael Descher wrote:

Carsten Schäfer wrote:

>> This is easy reproducable for me.
>> I just have to open a dialog with a file/directory chooser.


Well, I have read in another thread about those file/directory chooser
problems, but it cannot be related to that only. Here's one of my
observations. The memory values behind the steps I took are the minimum
ones I can get by clicking the GC button dozens of times.

1) Open project => Memory: 47M
2) Rebuild project => Memory: 74M
3) Find in files (with no result) => Memory: 80M
4) Run tomcat integration and stop it => Memory: 113M

As you can see, rebuilding the project takes a large amount of memory.
This would not be a problem if it was a one-time consumption, but since
I can raise the memory consumption by just editing and building, I
suppose each build/compile makes more memory get wasted.

Michael

Are you sure that memory never gets back by pressing CG button? That's true rebuld takes a lot of memory but all that
memory is returned after rebuild is finished. Well, at least in my config.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

Michael Descher wrote:

>> Carsten Schäfer wrote:
>>
>>> This is easy reproducable for me.
>>> I just have to open a dialog with a file/directory chooser.
>>
>>
>>
>> Well, I have read in another thread about those file/directory chooser
>> problems, but it cannot be related to that only. Here's one of my
>> observations. The memory values behind the steps I took are the
>> minimum ones I can get by clicking the GC button dozens of times.
>>
>> 1) Open project => Memory: 47M
>> 2) Rebuild project => Memory: 74M
>> 3) Find in files (with no result) => Memory: 80M
>> 4) Run tomcat integration and stop it => Memory: 113M
>>
>> As you can see, rebuilding the project takes a large amount of memory.
>> This would not be a problem if it was a one-time consumption, but
>> since I can raise the memory consumption by just editing and building,
>> I suppose each build/compile makes more memory get wasted.
>>
>> Michael


Are you sure that memory never gets back by pressing CG button? That's
true rebuld takes a lot of memory but all that memory is returned after
rebuild is finished. Well, at least in my config.


Yes, I am pretty sure, since for the test described above I clicked on
the GC button at least 15 times with no further effect. In fact the
rebuild took more than 150 MB where a big chunk was returned with one or
two GC clicks. But the remaining 30 MB are somehow lost.

Today I configured IDEA to use 400 MB max memory. I opened the project
and did nothing but editing and building. After some time memory
consumption could not be forced to less than 224 MB.

I will remove my IPR and IML files and recreate them. Maybe I will even
try to completely rebuild my IML files, but this would be a rather time
consuming job. I am using IML files that worked with 4.0.x with no problems.

Michael

0
Comment actions Permalink


"Michael Descher" <mail@descher.de> wrote in message
news:cchhfj$le5$1@is.intellij.net...

Maxim Shafirov (JetBrains) wrote:

Michael Descher wrote:

>
>> Carsten Schäfer wrote:
>

Are you sure that memory never gets back by pressing CG button? That's
true rebuld takes a lot of memory but all that memory is returned after
rebuild is finished. Well, at least in my config.

>

Yes, I am pretty sure, since for the test described above I clicked on
the GC button at least 15 times with no further effect. In fact the
rebuild took more than 150 MB where a big chunk was returned with one or
two GC clicks. But the remaining 30 MB are somehow lost.

>

Yes. I also get this. Though to not as large a degree.



0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

Carsten Schäfer wrote:

>
>> Rob Andres wrote:
>>
>>> I've even seen IDEA's memory usage start climbing uncontrollably
>>> into
>>> the GB range. I saw it climb from 256MB all the way to 1.2GB of
>>> usage. Needless to say, there's a memory leak somewhere...
>>
>>
>> This is easy reproducable for me.
>> I just have to open a dialog with a file/directory chooser.
>>
>> Carsten
>>
>>

Just validated. That memory is collected away by pressing GC button.
So this is not a memory leak.


This is a memory leak !
Memory allocator is not increasing, so GC can not help.
But the virtual memory of the idea is increasing until my system runs out of
virtual memory.
Than i must shutdown the IDE.

Carsten


0
Comment actions Permalink

Yes, agreed, this is what is happening to me too.
Rob.

0
Comment actions Permalink

After re-creating IPR and IWS files from scratch and using build 2178 the problem seems to have gone. I do not know if it is the new build or the recreation of the project files, but after rebuilding the project the memory drops to the initial value again when using the GC button.

0
Comment actions Permalink

Ive also noticed this. I can normally manage about 6 hours before having to shut IDEA down due to this.

The main effect I see is that the menus and general operations start taking longer.

When I first startup, IDEA's menus are very responsive. By lunchtime, Im waiting 2-3 seconds for each menu operation. By mid afternoon, obtaining a CVS file diff via menu operations and CVS retrieval takes almost 30s.

If I shut IDEA down and restart, I can get the file diff up within a couple of seconds. This is not specific to CVS/CVS menus - Im using it as an example.

Build 2178.

Nick

0
Comment actions Permalink

Seems I spoke too eary. After some hours of working the same behaviour is back. 47M after opening the project and 74M after a rebuild. Since it was fine right after recreating IPR and IML from scratch, it seem to me that it is somehow related to what is in those files.

0
Comment actions Permalink

I have the same problem. I've been using IDEA 4.0 (build 1182) without
problems for months.
Yesterday I decided to try IDEA 4.5 RC III. I'm now using build 2192.
Today I already got
an OutOfMemoryException. I have specified -Xmx400m in idea.lax (100MB more
than I had set
in 4.0, just in case 4.5 needs more memory).
It ran out of memory when I tried to compile. I can easily reproduce the
problem by starting
IDEA and then pressing Ctrl+F9 a lot of times (each time it says that all
files are up to date,
so it doesn't even really compile anything). I have also got a Web module
that copies files
to an exploded web dir. I have no Ant targets to run before or after
compilation. After about
30 of these compilations it runs out of memory. I pressed the GC button
after about 10 and 20
compilations, but it did not help.
Is there any chance this will be fixed before the 4.5 release? If not,
we'll have to stick
to 4.0.


--

- Rene Smit

0
Comment actions Permalink

Max,

Looking at Top on OS X, I can see IDEA's memory growing over time, pressing the GC looks like it collects in idea, but the actual used memory on the system does not decrease and keeps increasing over time. I think I sent an email to Alexei showing the memory before and after quitting idea and by quitting I regained 700MB of RAM on my machine. Idea is set to run with the default settings it comes with. I don't understand where the heck the 700MB of RAM came from. Even running Tomcat and stopping it doesn't make that much of a diff when it's run on its own outside the IDE.

Also the speed of idea decreases tremendously over time, I presume as memory grows, and quitting idea and starting it doesn't cut it, I often have to reboot my mac to clear everything out.

There is a real problem here. Wish I could pin point it better.

R

0
Comment actions Permalink

I also have a web module which builds to an exploded directory. I also
suspected that it had to do with that. Unfortunately I did not have
enough time to evaluate this in more detail at work.

If this does not get fixed somehow, we will also not be able to upgrade
to 4.5 - although I would really regret it because of some of the new
features.

Michael

Rene Smit wrote:

I have the same problem. I've been using IDEA 4.0 (build 1182) without
problems for months.
Yesterday I decided to try IDEA 4.5 RC III. I'm now using build 2192.
Today I already got
an OutOfMemoryException. I have specified -Xmx400m in idea.lax (100MB
more than I had set
in 4.0, just in case 4.5 needs more memory).
It ran out of memory when I tried to compile. I can easily reproduce the
problem by starting
IDEA and then pressing Ctrl+F9 a lot of times (each time it says that
all files are up to date,
so it doesn't even really compile anything). I have also got a Web
module that copies files
to an exploded web dir. I have no Ant targets to run before or after
compilation. After about
30 of these compilations it runs out of memory. I pressed the GC button
after about 10 and 20
compilations, but it did not help.
Is there any chance this will be fixed before the 4.5 release? If not,
we'll have to stick
to 4.0.

0
Comment actions Permalink

This may be a VM issue. I once saw a similar issue on windows in the past.
You may set a maximum heap size, but if the VM itself has a memory leak (for example,
in native libraries, including ones packaged with Java), there is nothing you
can do about it.

Robert S. Sfeir wrote:

Max,

Looking at Top on OS X, I can see IDEA's memory growing over time, pressing the GC looks like it collects in idea, but the actual used memory on the system does not decrease and keeps increasing over time. I think I sent an email to Alexei showing the memory before and after quitting idea and by quitting I regained 700MB of RAM on my machine. Idea is set to run with the default settings it comes with. I don't understand where the heck the 700MB of RAM came from. Even running Tomcat and stopping it doesn't make that much of a diff when it's run on its own outside the IDE.

Also the speed of idea decreases tremendously over time, I presume as memory grows, and quitting idea and starting it doesn't cut it, I often have to reboot my mac to clear everything out.

There is a real problem here. Wish I could pin point it better.

R


--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Comment actions Permalink

I've just tried build 2222 and it seems that my memory leak problem has
been solved. Good work!

--

- Rene Smit

0
Comment actions Permalink

Yes, seems to be gone for me, too.

0

Please sign in to leave a comment.