Memory leaks in McIDAS-V
Posted: Thu Mar 26, 2009 5:12 pm
I've used McIDAS-V beta 1 for about a week now and I'm 100% sure that there is a significant memory leak. This always occurs when using McIDAS AREA files from NCDC (10 MB, covering around 1000 X 15,000 elements), however I don't use other types of data so I don't know if this occurs in smaller files. The memory usage increases when Create Display is selected and the product is displayed, but is NOT freed back to original levels when Edit > Remove All Layers and Data Sources is chosen. Continued image loads and removals increase the memory use substantially until the memory panel begins turning red, then the software stops working and has to be restarted.
In the McIDAS config I have it set to 80% memory usage. When I had 1 GB of memory in the computer, it would rapidly run out of the 800 MB available after only 4 or 5 image loads. When I have 2 GB of memory in the computer, it exhausts the 1200 MB available after about 12 to 14 image loads.
This is the win32 build under Windows XP Pro SP 3, JRE 1.6.
I know how important debugging details are, so I offer this:
1. I start Mc-IDASV. Memory now 67/112/1316 MB.
2. I load an AREA file from Data Explorer and Create Display. Memory now 428/593/1316 MB.
3. Edit > Remove > All Layers and Data Sources. Memory now 200/593/1316 MB.
4. I load another file. Memory now 517/593/1316 MB.
5. Edit > Remove > All Layers and Data Sources. Memory now 531/593/1316 MB.
6. I load another file. Memory now 546/639/1316 MB.
7. Edit > Remove > All Layers and Data Sources. Memory now 559/639/1316 MB.
8. I load another file. Memory now 620/876/1316 MB.
So you can see how clearly usage is spiralling upward.
Tim
In the McIDAS config I have it set to 80% memory usage. When I had 1 GB of memory in the computer, it would rapidly run out of the 800 MB available after only 4 or 5 image loads. When I have 2 GB of memory in the computer, it exhausts the 1200 MB available after about 12 to 14 image loads.
This is the win32 build under Windows XP Pro SP 3, JRE 1.6.
I know how important debugging details are, so I offer this:
1. I start Mc-IDASV. Memory now 67/112/1316 MB.
2. I load an AREA file from Data Explorer and Create Display. Memory now 428/593/1316 MB.
3. Edit > Remove > All Layers and Data Sources. Memory now 200/593/1316 MB.
4. I load another file. Memory now 517/593/1316 MB.
5. Edit > Remove > All Layers and Data Sources. Memory now 531/593/1316 MB.
6. I load another file. Memory now 546/639/1316 MB.
7. Edit > Remove > All Layers and Data Sources. Memory now 559/639/1316 MB.
8. I load another file. Memory now 620/876/1316 MB.
So you can see how clearly usage is spiralling upward.
Tim