Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313678 - [Viewers] java.lang.OutOfMemoryError: Java heap space
Summary: [Viewers] java.lang.OutOfMemoryError: Java heap space
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Hitesh CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 05:14 EDT by marzia maugeri CLA
Modified: 2010-05-24 04:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.