question

dadadon avatar image
dadadon asked durekpo answered

Gui Hangs and screen will become white in scale scenario.

Hi ,

We developed new Gui which will have two form pages and when are testing scale testing(10000 elements on each page) if we issue commands after some time GUI Hangs and screen will become white. Here our Session memory keep on increasing with every command and if we shuffle from one page to another then memory utilization will be more,When memory reaches 200 mb then  whole screen is painted white and session will be useless,we need to close the Gui to use it again.

We are using so many Listeners and we tried to remove them still we don't see much change in Memory utilization are using TreeViewers and buttons and images in our Gui.

 

We used  "system.gc" for garbage collection but still there is no change

We are not able to figure out what could be the issue while painting Gui if the memory reaches 200 mb, Because memory used not too high and Cpu Utilization for the process is 0 or 1



Thanks

iTestsdk
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted

I am assuming that you are trying to write an iTest application using our SDK. You seem to have a simple case of memory leak. You will have to find out by using memory leak analysis tools what objects you are not freeing. You can search internet for a number of memory leak detection tools for Java and they come with instructions on how to use them.

 

GUIs in addition use GDI objects (or equivalent on other platforms) on Windows. There is a limited number of them per process and per machine. If you run out of them, Windows will stop drawing the objects. You have to worry about freeing these as well (e.g. colors, fonts, brushes, etc...).

 

These are simply "bugs" in your code and there are standard Java tools to help you find these.

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

RushabhS avatar image RushabhS commented ·

You can use YourKit http://www.yourkit.com/ to find memory leaks .

 

For the GDI object leak , I would recommend Sleak http://www.eclipse.org/swt/tools.php .

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.