Re: Extreme memory usage

Hi Ben,

_From the code you sent I can't tell why Java is using 300 MB.
I don't know how many samples in your Sets or what Set class
you are using, I don't know the value of _plotCountTotal, and I
don't now whether you are using DisplayImplJ2D or DisplayImplJ3D.
Is there only one DisplayImpl? Java3D is hungry for memory. It
is also true that VisAD uses some temporary memory in computing
its data depictions (not as much as it used to, thanks to recent
work by Jeff McWhirter). However, if really know the sizes of
all the things involved in a display, then we can usually
understand memory use.


On Fri, 30 May 2003, Ben Monnahan wrote:

> Hi, I'm having some problems with VisAD using seemingly way more memory
> than it should.  I'm loading a data file that is less than a megabyte, yet
> my program wants at least 300MB(it throws an OutOfMemoryError).  I figure
> I must be doing something wrong.  I'm not really sure what it could be
> because there just isn't that much data around.  In fact all the data
> into loaded into an array before the usage starts skyrocketing.  When I
> start creating all of the VisAD stuff the usage skyrockets.  I know people
> are using this for large data sets, so I must be doing something wrong.
> Can anyone see what might be causing the problem? (Code attatched, if you
> need clarification of something, or more of the code let me know)
> The reason I'm using the arrays for everything is that I have a 6 models
> that I want to plot data for, but there are a bunch of different views.
> There is a separate view for each datatype/forecast time/sample area.  I
> want to be able to switch between the views quickly so I'm loading all the
> data and adding it to the display, and then adding and removing references
> to only show the data that I want.  So this is much more data than I'm
> displaying but still much less than 1 MB total.
> Again if you have any questions I'd be happy to answer them.
> Thanks,
> Ben

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: