Re: Turn off dgc

al <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Thank you for your quick responses.
Some more details of my problem:
I have a Java Client compiled using Java 1.2 and
running with jre 1.4.1. This client communicates with
a Smalltalk Server. I am sure this smells like
trouble, but things are running rather smoothly.
Transitioning to a different version of the jre is for
various reasons not an option, but this is a different
story...

When calling methods in our client wich invoke many
RMI calls consecutively, every so often our client
hangs between one and five minutes. According to our
logs this happens about once per day per user.
In our test environment we have found a way to
reproduce this behaviour. It takes a few tries but
eventualy we have a situation where our java client
has to wait for a minute or longer for our server to
respond when this type of call usually only takes
fractions of a second.

So what is happening? We took a look at what packets
which were being sent between the server and the
client, and we found the following pattern:
1. Just before we make our rmi call, there is a dgc
call being made between client port 3333 and server
port 4444.
2. Client sends rmi call from port 3333 to server at
port 4444. Server responds with an ACK package (no
data).
3. No communication for about a minute.
4. The client sends an rmi admin/dgc call from a
different client port say 3335 to the same server port
4444. After this call is made, the original rmi call
is returned from server port 4444 to client port 3333.

While it is of course obvious to find out what is
going on on the server side, we would also like to
check, even if only for test purposes, what effect it
would have if we could turn off the dgc.

> I wouldn't want to disable the dgc.. but your email
> has that little tidbit.. do you have lots of
> clean-up threads?
No, I figure just the usual number of about 3

> Are you using custom socket factories?
As far as I know, no. Communication runs using tcp.

>  Do you have an RMI client connecting to lots
>(dozens+) of RMI servers concurrently?
No, each client only talks to one server at a time.

I hope this post is not too confusing thank you for
your time,
Alex


:-):-):-):-):-):-):-):-):-):-):-)






___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.