🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #527

garbage collection / memory leaks / stubs & skeletons

#527
From: puiuvlad
Date: Tue, 18 May 1999 00:00
31 lines
2437 bytes
I'm just concerned about the garbage collector collecting more than
necessary or leaving around pockets of memory than cannot be used
(memory leaks) when a client in a distributed system crashes. This is
just a concern, I have not experienced any problems like these yet. Has
anyone a better idea on how garbage collection is handled when stubs and
skeletons are involved? The feature is difficult to test and reproduce
when it occurs. The distributed system can be RMI or CORBA based...

Assume the following scenario: An applet contains a pointer to a remote
object (i.e., a stub, which somehow is connected to a skeleton on the
server side). The skeleton points to a server object and facilitates the
data communication between server and client (marshalling and stuff).

Assume now that the gc on the server kicks in. How does it know not to
free the skeletons? As long as there is a client pointing to it, gc
should leave it alone. I assume there is nothing pointing to them from
the server side, but if I'm wrong then this is the answer. On second
thoughts, there must be a skeleton table that contains pointers to all
skeletons. Any insight?

Assume now that the client crashes and the pointer from the client to
the server disappears. Will the skeleton ever be garbage collected? It
should. Does the server know that the client is no longer there such
that to mark the skeleton as not used? If the skeleton is not garbage
collected this is equivalent to a memory leak... Any ideas?

Vladimir


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
Technical Details
Message-ID: <7hsbim$jk3$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108bbb,7c53fd2d391dd0f1,start
X-Google-Attributes: gid108bbb,public
X-Google-Thread: f5d71,7c53fd2d391dd0f1,start
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10b07f,7c53fd2d391dd0f1,start
X-Google-Attributes: gid10b07f,public
From: puiuvlad@my-dejanews.com
Subject: garbage collection / memory leaks / stubs & skeletons
Date: 1999/05/18
Message-ID: <7hsbim$jk3$1@nnrp1.deja.com>
X-Deja-AN: 478776817
X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 206.231.84.10
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Tue May 18 18:29:45 1999 GMT
Newsgroups: comp.lang.java,comp.lang.java.corba,borland.public.jbuilder.corba-rmi
X-Http-User-Agent: Mozilla/3.02 (Win16; I)