NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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
visad
archives: