Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313678

Summary: [Viewers] java.lang.OutOfMemoryError: Java heap space
Product: [Eclipse Project] Platform Reporter: marzia maugeri <marzia.maugeri>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED INVALID QA Contact: Hitesh <hsoliwal>
Severity: normal    
Priority: P3 CC: prakash, tom.schindl
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description marzia maugeri CLA 2010-05-20 05:14:21 EDT
Hi,
I need to create a tableviewer or a treeviewer containing large amount of data such as million and million of data.
I'm using SWT.VIRTUAL and LazyContentProvider to handle the navigation of the data into tableviewer or treeviewer.
Until 2000000 of data, I don't have any problem, but for data > 2000000 I get this error:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at org.eclipse.jface.viewers.AbstractTableViewer$VirtualManager.adjustCacheSize(AbstractTableViewer.java:199)
	at org.eclipse.jface.viewers.AbstractTableViewer.setItemCount(AbstractTableViewer.java:1039)
	at lazytableexample.TableViewerPaging.setItemCount(TableViewerPaging.java:13)

For me it's very important to handle huge amount of data, so Can you help me to fix this problem?

Many thanks.

Ignazia Maugeri
Comment 1 Lakshmi P Shanmugam CLA 2010-05-20 05:52:30 EDT
sending to Platform UI
Comment 2 Thomas Schindl CLA 2010-05-20 06:58:24 EDT
I don't see how JFace-Viewers could help you here. If you don't fit 2.000.000 objects into memory then they don't fit.
Comment 3 Hitesh CLA 2010-05-24 04:13:02 EDT
(In reply to comment #2)
> I don't see how JFace-Viewers could help you here. If you don't fit 2.000.000
> objects into memory then they don't fit.

+1
Thanks Tom .

Updating bug severity to a realistic value. And marking this as INVALID . 

Anyway, if you do have information that points to a problem in the viewer code, please feel free to update the bug accordingly.