Out of Memory Error

All,

I am receiving an OutOfMemory error when trying to do a Find in Path on a
project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for several
hours. It does not appear to happen when I have just started Idea.

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

Dave Simmons
dsimmons@objectventure.com

Idea build 663
Win2000 Pro


0
Avatar
Permanently deleted user

Dave,

Try increasing the maximum heap size for IDEA and you will not have the
OutOfMemory error.

Eugene

"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on a
project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>


0
Avatar
Permanently deleted user

All well and good, but my system is maxed out at 384M. Idea already
consumes a good deal of that. I can't realisiticly give Idea any more as
nothing else will run before large amounts of virtual memory swapping
occurs.

My only criticism of Idea is the LARGE amount of memory it requires. I
always thought JBuilder was bad. :)

Dave


"Eugene Belyaev" <beg@intellij.com> wrote in message
news:ap706l$dus$1@is.intellij.net...

Dave,

>

Try increasing the maximum heap size for IDEA and you will not have the
OutOfMemory error.

>

Eugene

>

"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on

a

project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>

>
>


0
Avatar
Permanently deleted user

Well I think the issue of Idea consuming LARGE amount of memory has been
addressed a few times, but the people behind Idea seem not to be serious
about this factor, and I don't think they will take any active step towards
it either. Most probably licence holders of Idea will have to live with this
issue.

My project contains 3000 java files and for this reason I had to increase
maximum heap size. But what ever, still the memory consumption is quite high
of Idea which is a FACT. The solution is certainly not by adding more and
more ram. Well I have 520mb of rambus memory on my P4 computer and all my
slots are full.

I do think that Idea is an excellent product as it contains all the features
that of my requirement. Before using Idea, I had to use 2 or 3 softwares for
my programming. Now I have all the tools integrated in Idea which is
excellent. But as Dave mentioned:

My only criticism of Idea is the LARGE amount of memory it requires. I
always thought JBuilder was bad. :)


This follows true for me.


0
Avatar
Permanently deleted user

I also agree regarding this problem. There is a bug (6143) reported in the
tracker regarding something similiar to this problem. I am on build 664 and
I hate the memory consumption.


0
Avatar
Permanently deleted user

maybe its just me but I thought build 661,662 were better with memory use, then 663 started using lots again...

0
Avatar
Permanently deleted user

Dave,

How many occurences of the string you've been searching you expected to
appear?
How many files contain that string?
Have you used a regular expression search or that was a plain text?

We need more info in order to reproduce the problem.

Thanks.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on a
project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>


0
Avatar
Permanently deleted user

Alica,

As the matter of fact we DO take serious memory consumption. But it is not
enough info for us you are not satisified. Please try to express your
situation at least like Dave Simmons did.
1. What is you -mx?
2. What type your project is? (JSP, EJB, plain java, etc.)
3. What activity leads to memory consumption (find, compile, inspect,
editing, etc.)
4. How many projects you have opened simultaneously?
5. Do you close/reopen project in the same IDEA session?

Whatever, any details could help to move forward.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Alica" <something@something.com> wrote in message
news:ap91ea$358$1@is.intellij.net...

Well I think the issue of Idea consuming LARGE amount of memory has been
addressed a few times, but the people behind Idea seem not to be serious
about this factor, and I don't think they will take any active step

towards

it either. Most probably licence holders of Idea will have to live with

this

issue.

>

My project contains 3000 java files and for this reason I had to increase
maximum heap size. But what ever, still the memory consumption is quite

high

of Idea which is a FACT. The solution is certainly not by adding more and
more ram. Well I have 520mb of rambus memory on my P4 computer and all my
slots are full.

>

I do think that Idea is an excellent product as it contains all the

features

that of my requirement. Before using Idea, I had to use 2 or 3 softwares

for

my programming. Now I have all the tools integrated in Idea which is
excellent. But as Dave mentioned:

>

My only criticism of Idea is the LARGE amount of memory it requires. I
always thought JBuilder was bad. :)

>

This follows true for me.

>
>


0
Avatar
Permanently deleted user

Maxim,

I was only expecting one instance of the string in one file. It was not a
regular expression search.

The settings I am using are the default memory values in the distribution.

I am working in only in a single project.

After closing and restarting Idea, the same search worked fine.

Looking at memory usage in the task manager (not the greatest measure of
memory usage...) the java process for Idea is generally in the neighborhood
of 170M.

Dave


"Maxim Shafirov" <max@intellij.net> wrote in message
news:ap96kp$8q0$1@is.intellij.net...

Dave,

>

How many occurences of the string you've been searching you expected to
appear?
How many files contain that string?
Have you used a regular expression search or that was a plain text?

>

We need more info in order to reproduce the problem.

>

Thanks.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on

a

project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>

>
>


0
Avatar
Permanently deleted user

Alica,

Pardon my question but I would like to ask why do you need 3000 files in
your project :)
Well what I really mean, is that for project of this size apart from IDE
performance issues it might be a good idea to break it into set of
independent APIs with well defined dependencies, maintain them separately
and include these APIs into you project the same way as you do with third
party libraries. Of course you loose global (across entire code base)
refactoring but assuming that these APIs are relatively stable it should not
be a major problem. And if you do need to refactor across multiple
subprojects you still can have one IDEA project which includes your entire
codebase

Alex


"Alica" <something@something.com> wrote in message
news:ap91ea$358$1@is.intellij.net...

Well I think the issue of Idea consuming LARGE amount of memory has been
addressed a few times, but the people behind Idea seem not to be serious
about this factor, and I don't think they will take any active step

towards

it either. Most probably licence holders of Idea will have to live with

this

issue.

>

My project contains 3000 java files and for this reason I had to increase
maximum heap size. But what ever, still the memory consumption is quite

high

of Idea which is a FACT. The solution is certainly not by adding more and
more ram. Well I have 520mb of rambus memory on my P4 computer and all my
slots are full.

>

I do think that Idea is an excellent product as it contains all the

features

that of my requirement. Before using Idea, I had to use 2 or 3 softwares

for

my programming. Now I have all the tools integrated in Idea which is
excellent. But as Dave mentioned:

>

My only criticism of Idea is the LARGE amount of memory it requires. I
always thought JBuilder was bad. :)

>

This follows true for me.

>
>


0
Avatar
Permanently deleted user

I feel the problem is not a project size. Ariadna project is slightly bigger
than 3000 files and we do not get OutOfMemoryError on mx96m.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Alex Roytman" <roytman@smart.net> wrote in message
news:apagr9$b43$1@is.intellij.net...

Alica,

>

Pardon my question but I would like to ask why do you need 3000 files in
your project :)
Well what I really mean, is that for project of this size apart from IDE
performance issues it might be a good idea to break it into set of
independent APIs with well defined dependencies, maintain them separately
and include these APIs into you project the same way as you do with third
party libraries. Of course you loose global (across entire code base)
refactoring but assuming that these APIs are relatively stable it should

not

be a major problem. And if you do need to refactor across multiple
subprojects you still can have one IDEA project which includes your entire
codebase

>

Alex

>
>

"Alica" <something@something.com> wrote in message
news:ap91ea$358$1@is.intellij.net...

Well I think the issue of Idea consuming LARGE amount of memory has been
addressed a few times, but the people behind Idea seem not to be serious
about this factor, and I don't think they will take any active step

towards

it either. Most probably licence holders of Idea will have to live with

this

issue.

>

My project contains 3000 java files and for this reason I had to

increase

maximum heap size. But what ever, still the memory consumption is quite

high

of Idea which is a FACT. The solution is certainly not by adding more

and

more ram. Well I have 520mb of rambus memory on my P4 computer and all

my

slots are full.

>

I do think that Idea is an excellent product as it contains all the

features

that of my requirement. Before using Idea, I had to use 2 or 3 softwares

for

my programming. Now I have all the tools integrated in Idea which is
excellent. But as Dave mentioned:

>

My only criticism of Idea is the LARGE amount of memory it requires.

I

always thought JBuilder was bad. :)

>

This follows true for me.

>
>

>
>


0
Avatar
Permanently deleted user

Maxim Shafirov wrote:

Alica,

As the matter of fact we DO take serious memory consumption. But it is not
enough info for us you are not satisified. Please try to express your
situation at least like Dave Simmons did.
1. What is you -mx?
2. What type your project is? (JSP, EJB, plain java, etc.)
3. What activity leads to memory consumption (find, compile, inspect,
editing, etc.)
4. How many projects you have opened simultaneously?
5. Do you close/reopen project in the same IDEA session?

Whatever, any details could help to move forward.


I general, I see no memory problems with idea. Even with huge projects.

However, in the last few days I have been doing some heavy work with
ant. And now my memory grows to max (for me 786M). I restart, my
starting memory is about 80M. After about, hmmm, lets say fifty ant
invocations (via idea) I hit the max.

1. -Xms196 -Xmx786
2. plain java
3. running ant from idea
4. one
5. no

Hope this helps some.

-bk

0
Avatar
Permanently deleted user

IDEA costs around US$400
JBuilder will cost you many thousands
IDEA will also save your 3000 file project an absolute fortune with the increases in productivity you'll get.

Why don't you use a tiny portion of those savings and buy a machine with more memory? They're not very expensive. Go buy a machine with a couple of gig of ram. While you're at it, why not get a nice big flat screen monitor too?

Your bosses should be so pleased with the performance boost you get that they'll buy you just about anything you want.

B

0
Avatar
Permanently deleted user

Out of curiosity, has anyone tuned the jvm arguments for idea and have
recommendations, preferably on Win32, large-ish projects, plenty of RAM, not
a lot of debugger activity?

-a.

"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on a
project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>


0
Avatar
Permanently deleted user

We have a >5000 file project. I set my -mx to 256M (I have 1GB RAM)

"Art Taylor" <idea@astrogoth.com> wrote in message
news:appplf$l65$1@is.intellij.net...

Out of curiosity, has anyone tuned the jvm arguments for idea and have
recommendations, preferably on Win32, large-ish projects, plenty of RAM,

not

a lot of debugger activity?

>

-a.

>

"Dave Simmons" <dsimmons@roamingmedia.com> wrote in message
news:ap6vrm$dld$1@is.intellij.net...

All,

>

I am receiving an OutOfMemory error when trying to do a Find in Path on

a

project with >2500 files. Unfortunately, I can't seem to recreate this
everytime. It appears to occur when I have been working in Idea for

several

hours. It does not appear to happen when I have just started Idea.

>

Is anyone else noticing this behavior? I hesitate to write a bug report
when I can't reproduce it consistently.

>

Dave Simmons
dsimmons@objectventure.com

>

Idea build 663
Win2000 Pro

>
>

>
>


0

请先登录再写评论。