Re: Question about memory size and performance

"Mann, Ivan H" <[email protected]> Tue, 11 Dec 2007 13:32:57 -0600
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <3E47D20FD1918B48AC434AA83B5752960148A69D@usplm215.amer.corp.eds.com>
I remember years ago reading that as a design goal, but I don't know if
today's jvm does that.

My expectation would be that it does this at garbage collection time.

Ivan

 

-----Original Message-----
From: Discussion of advanced Java topics.
[mailto:[email protected]] On Behalf Of Jeff Kesselman
Sent: Tuesday, December 11, 2007 12:40 PM
To: [email protected]
Subject: Re: [ADVANCED-JAVA] Question about memory size and performance

Mann, Ivan H wrote:
> I recall the studies from the 60's on memory allocation, and the
answer then was that after a while memory fragmentation gets to be a
serious problem as requests for memory blocks of different sizes are
made and they use most of pieces of existing blocks, but leave small
pieces that can be too small.  The result is that you can have a lot of
memory not being used but not available because it exists in blocks
smaller than the requests that you make.
>

I'm pretty sure Java moves things in memory to defragment the heap.

Thats why a reference isnt a pointer.


--
=======================================================================
Journalism 101: The difference between news and a press release

News tells you what the reporter thinks is true.

A press release tells you what a company wants *you* to think is true.

Only bad reporters think the two are the same.

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com