Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Memory currently allocated by SWT?
Memory currently allocated by SWT? [message #458549] Fri, 15 July 2005 16:51 Go to next message
Eclipse UserFriend
Originally posted by: joerg.von.frantzius.artnology.nospam.com

Hi,

I have a problem of process sizes getting out of control no matter what
-Xmx I put as VM arguments. I suspect that to be memory allocated by
SWT, as explained in https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250#c4

Is there any way of finding out how much memory currently is allocated
through SWT?

Thanks for any information,
Jörg
SWT/RCP and number of GDI handles (was: Memory currently allocated by SWT?) [message #458656 is a reply to message #458549] Mon, 18 July 2005 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.von.frantzius.artnology.nospam.com

This is a multi-part message in MIME format.
--------------060201090704050700000908
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Meanwhile I came across the Sleak plugin myself
( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#tools).
For my running RCP application, it shows 99 Colors, Images, Cursors and
Fonts. Procexp, on the other hand, reports 138 GDI handles for my
process. Now I'd have two questions:

1. Do Colors, Images etc. correspond to one GDI handle each? Or more?
2. If they correspond to GDI handles, where does the difference of 39
GDI handles come from? Is that maybe a basic number of GDI handles
that SWT/RCP need to show a window?

Thanks for any hints,
J
Re: SWT/RCP and number of GDI handles [message #458904 is a reply to message #458656] Tue, 26 July 2005 02:42 Go to previous message
Eclipse UserFriend
Originally posted by: qauck.msn.com

Joerg,

Don't know what OS you are using, but under Windows system, Brush, DC,
Pen, Palette, Region, all these are considered as GDI objects.

HTH.

Joerg von Frantzius wrote:
> Meanwhile I came across the Sleak plugin myself
> ( http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#tools).
> For my running RCP application, it shows 99 Colors, Images, Cursors and
> Fonts. Procexp, on the other hand, reports 138 GDI handles for my
> process. Now I'd have two questions:
>
> 1. Do Colors, Images etc. correspond to one GDI handle each? Or more?
> 2. If they correspond to GDI handles, where does the difference of 39
> GDI handles come from? Is that maybe a basic number of GDI handles
> that SWT/RCP need to show a window?
>
> Thanks for any hints,
> Jörg.
>
>
> Joerg von Frantzius schrieb:
>
>> Hi,
>>
>> I have a problem of process sizes getting out of control no matter
>> what -Xmx I put as VM arguments. I suspect that to be memory allocated
>> by SWT, as explained in
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250#c4
>>
>> Is there any way of finding out how much memory currently is allocated
>> through SWT?
>>
>> Thanks for any information,
>> Jörg
>
>
Previous Topic:Want to show Tree selection when tree does not have focus
Next Topic:jgraph & swing under swt
Goto Forum:
  


Current Time: Sun Nov 29 08:34:08 GMT 2020

Powered by FUDForum. Page generated in 0.02041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top