Reputation: 491
In my Eclipse RCP project, when I retrieve and load large data say around (100000) in Tableviewer, the RCP application hangs.
Can anybody tell me why the RCP application hangs and what is the solution for this problem?
Upvotes: 1
Views: 244
Reputation: 33
this is old, but i will add my answer anyway :D
I believe this is a memory allocation problem, try to extend the allocated memory for the RCP application in run time by adding the argument : "-XX:PermSize=1024M" in run configuration arguments area.
Also for extracted RCP app you can change the allocated memory by adjusting the same argument value in the "configuration settings" file extracted in the same folder of your app.
Upvotes: 0
Reputation: 3304
It is really important how do you load your data. If you do it in UI thread, then it will block your application from being responsive, until everything is loaded. Consider loading data in separate Thread (use Jobs for this purpose).
Also, I would like to encourage you to take a look at the Nebula NatTable project. It is just perfect for working with huge amounts of data.
Upvotes: 3
Reputation: 8849
Refer these examples its difficult to guess why your program hangs.
SWT snippets, Go to "Table, TableItem, TableColumn" section
Upvotes: 0