Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Memory usage

Hi,

Yes that is what we should be doing...I've opened bug #13791
(http://bugs.eclipse.org/bugs/show_bug.cgi?id=13791) to track it.  One
issue I've heard is that usually jvm's don't keep enough memory available
to do any object instantiation after the OutOfMemory, so we'll have to
experiment with what we can actually do after the exception occurs.  We'll
probably have to have some global pointing to objects that we can delete
immediately.

============================
  Jeff Turnham
  Linux Application Development
  IBM Toronto Lab, D2-328
  (905) 413-4319
============================
----- Forwarded by Jeff Turnham/Toronto/IBM on 04/15/2002 11:05 AM -----
                                                                                                                     
                    Andrew Haley                                                                                     
                    <aph@cambridge.r       To:     cdt-dev@xxxxxxxxxxx                                               
                    edhat.com>             cc:                                                                       
                    Sent by:               Subject:     Re: [cdt-dev] Memory usage                                   
                    cdt-dev-admin@ec                                                                                 
                    lipse.org                                                                                        
                                                                                                                     
                                                                                                                     
                    04/15/2002 10:50                                                                                 
                    AM                                                                                               
                    Please respond                                                                                   
                    to cdt-dev                                                                                       
                                                                                                                     
                                                                                                                     



turnham@xxxxxxxxxx writes:

 > Yes this is a known issue...The quick answer to your question is that
Yes
 > there is a way to control how much memory the parser uses.  If you
 > "right-click" on your project and choose "Properties", one of the
available
 > options is "Parse Quality".  By default this is set to the Maximum, but
 > moving the slider to the left will decrease the amount of work the
parser
 > does and the information it stores.  Of course changing the parse
quality
 > will affect the depth of information provided.  (You'll have to remove
your
 > project's parse information and re-parse for the change to take effect).
 >
 > At the "highest" setting the parser does (or tries to do) a relatively
 > complete job of parsing right down to the statement\identifier level and
 > creates references such as "variable uses", "function callees\callers",
 > etc.  At the "lowest" setting the parser will only show the highest
level
 > objects (classes, functions, etc).

Right, I see.  Perhaps the thing to do would be to generate a prompt
that says

"You have run out of memory while trying to parse this object.

You might be able to complete the parse by reducing the parse depth.
See <http://foo.bar.barf>"

Thanks for the prompt reply.

Andrew.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev





Back to the top