It seems likely that there are stale references somewhere, then. I remember
an older version of the GridBagLayout used to have a bug where all obljects
added to it were hung onto for the life of the GBL, because the remove code
didn't take refernces out of an internal Hashtable. Has anybody tried
something like JProbe on the problem? I've had a fair amount of success with
that in the past. Conveniently, I now work for the company that wrote
JProbe, so I'm sure I can give it a go, if nobody else has...
-Craig
On 5/21/07, david alejandro garcia ortega <[EMAIL PROTECTED]> wrote:
I think is a problem with the code, like Larry says , i think is possible
to free memory but the gc() doesn´t work because there are references to the
Layer.
DAVID GARCIA
------------------------------
From: *"Larry Becker" <[EMAIL PROTECTED]>*
Reply-To: *"List for discussion of JPP development and use." <
jump-pilot-devel@lists.sourceforge.net>*
To: *"List for discussion of JPP development and use." <
jump-pilot-devel@lists.sourceforge.net>*
Subject: *Re: [JPP-Devel] Question?*
Date: *Mon, 21 May 2007 11:55:47 -0500*
Hi Craig,
Good point, however if you close the task (project) all memory is
reclaimed, so it would seem to be possible to reclaim it by removing a
layer.
Larry
On 5/21/07, A. Craig West <[EMAIL PROTECTED]> wrote:
>
> Do we know if this is a problem with references being hung onto
> internally, or just the standard Java VM behavior where the Java VM
> normally doesn't return memory to the OS?
> -Craig
>
> On 5/21/07, Stefan Steiniger < [EMAIL PROTECTED]> wrote:
> > hei David,
> >
> > in case you don't know
> > what sometimes can help a bit is to press the "garbage collect" button
>
> > of the help/about/info tab
> >
> > but only sometimes :I
> >
> > stefan
> >
> > david alejandro garcia ortega schrieb:
> > > Thanks Larry i will try to find a solution to the problem.
> > >
> > > DAVID GARCIA
> > >
> > >
> ------------------------------------------------------------------------
> > > From: /"Larry Becker" < [EMAIL PROTECTED]>/
> > > Reply-To: /"List for discussion of JPP development and use."
> > > <jump-pilot-devel@lists.sourceforge.net >/
> > > To: /"List for discussion of JPP development and use."
> > > <jump-pilot-devel@lists.sourceforge.net>/
> > > Subject: /Re: [JPP-Devel] Question?/
> > > Date: /Mon, 21 May 2007 11:03:03 -0500/
> > >
> > > Hi David,
> > >
> > > Welcome to the list. That is an excellent question. I wish I
> had
> > > an answer for you, but it is one of the unsolved problems with
> JUMP
> > > (all flavors I believe). In my tests, it is not even
> consistent.
> > > Sometimes removing a layer will free most of the memory, but
> usually
> > > it will not.
> > >
> > > There have been attempts made to fix the problem in
> OpenJump. See
> > > :
> > >
> com.vividsolutions.jump.workbench.ui.plugin.RemoveSelectedLayersPlugIn
> > > method remove(Layerable[]) which calls
> > > selectedLayers[i].getLayerManager().dispose(selectedLayers[i])
> and
> > > does everything you could reasonably expect, however much of the
> > > memory, usually all of it, is still committed after this code
> runs.
> > >
> > > Apparently some plugin(s) still have references to the disposed
> > > layers. Probably via a listener of some kind, but no one has
> ever
> > > tracked down the problem.
> > >
> > > David, you would be doing a great service to the whole JUMP
> > > community if you could find the solution to this problem.
> > >
> > > regards,
> > > Larry Becker
> > >
> > > On 5/21/07, *david alejandro garcia ortega* <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
> > >
> > > Hi I am working with the source code of OpenJump and i have
> the
> > > following question:
> > >
> > > When I load a dataset(shapefile) commited memory is about
> > > 150Mb, then when I remove the dataset the commited memory is
> > > about 140Mb. Why doesn´t memory free?
> > >
> > > I want to free memory when the layer is turned invisible
> calling
> > > dispose() of layer class, and when is turned visible I load
> the
> > > featurecollection again. But this not work i can´t free
> memory.
> > > What can i do?
> > >
> > > Thanks, and sorry for my English i am from México.
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Windows Live Spaces en Prodigy/MSN Haz clic aquí
> > > <http://g.msn.com/8HMBESMX/2743??PS=47575>La red más grande
> en
> > > México y el mundo.
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and
> take
> > > control of your XML. No limits. Just data. Click to get it
> now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Jump-pilot-devel mailing list
> > > Jump-pilot-devel@lists.sourceforge.net
> > > <mailto: Jump-pilot-devel@lists.sourceforge.net>
> > >
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> > >
> > >
> > > --
> > > http://amusingprogrammer.blogspot.com/
> > >
> >
> >
>-------------------------------------------------------------------------
>
> > > >This SF.net email is sponsored by DB2 Express
> > > >Download DB2 Express C - the FREE version of DB2 express and
> take
> > > >control of your XML. No limits. Just data. Click to get it
> now.
> > > >http://sourceforge.net/powerbar/db2/
> > >
> > > >_______________________________________________
> > > >Jump-pilot-devel mailing list
> > > >Jump-pilot-devel@lists.sourceforge.net
> > > >https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Comparte archivos de manera inmediata con Windows Live Messenger en
> > > Prodigy/MSN Haz clic aquí < http://g.msn.com/8HMAESMX/2731??PS=47575
> >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Jump-pilot-devel mailing list
> > > Jump-pilot-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
>
> -------------------------------------------------------------------------
>
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
--
http://amusingprogrammer.blogspot.com/
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Jump-pilot-devel mailing list
>Jump-pilot-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------
¿ Ya conoces el mejor buscador? Haz clic aquí
<http://g.msn.com/8HMAESMX/2728??PS=47575> Corregido y aumentado: Live
Search en Prodigy/MSN
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel