Results 1 to 3 of 3

Thread: ICE creates localhost to localhost connections

  1. #1
    nefilim is offline Registered User
    Name: Peter vanRensburg
    Organization: Lockerz
    Project: Social Platform
    Join Date
    Jun 2008
    Posts
    12

    ICE creates localhost to localhost connections

    Hi

    I am trying to diagnose a problem where we notice sporadic high utilization and load spikes on an ICE server application. Interestingly corresponding exactly to these spikes are small bursts in traffic over the lo interface (usually there is virtually no traffic).

    Now, I have noticed that the ICE application opens & maintains connections to itself:

    Code:
    java      10213   root   41u     IPv6           18046494                 TCP localhost.localdomain:42569->localhost.localdomain:42568 (ESTABLISHED)
    java      10213   root   42u     IPv6           18046495                 TCP localhost.localdomain:42568->localhost.localdomain:42569 (ESTABLISHED)
    java      10213   root   50u     IPv6           18046506                 TCP localhost.localdomain:42571->localhost.localdomain:42570 (ESTABLISHED)
    java      10213   root   51u     IPv6           18046507                 TCP localhost.localdomain:42570->localhost.localdomain:42571 (ESTABLISHED)
    java      10213   root   58u     IPv6           18046515                 TCP localhost.localdomain:42573->localhost.localdomain:42572 (ESTABLISHED)
    java      10213   root   59u     IPv6           18046516                 TCP localhost.localdomain:42572->localhost.localdomain:42573 (ESTABLISHED)
    Three pairs it looks like. From searching through the forum the only tidbit I learned was that it apparently these are opened for each thread pool?

    Here is the relevant config:

    Code:
    EventSystemAdapter.Endpoints=tcp -p 21500 -t 10000
    EventSystemAdapter.ThreadPool.Size=15
    EventSystemAdapter.ThreadPool.SizeMax=35
    
    EventSystemAdminAdapter.Endpoints=tcp -p 21550 -t 2000
    EventSystemAdminAdapter.ThreadPool.Size=5  
    EventSystemAdminAdapter.ThreadPool.SizeMax=25
    
    Ice.ThreadPool.Client.Size=5
    Ice.ThreadPool.Client.SizeMax=35
    
    Ice.ThreadPool.Server.Size=5
    Ice.ThreadPool.Server.SizeMax=35
    Could you tell me what these localhost to localhost connections are used for and why there would be this correlation between localhost traffic and high load?

    Thanks
    Peter

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Which Ice version do you use? It sounds like you're using an old Ice for Java version (Ice for Java 3.3.0 do not open anymore these socket pairs). These sockets are indeed used by the thread pool implementation. There's traffic on these sockets when new connections are opened/closed but I would expect the traffic to be unnoticeable.

    Note that we do not provide free support for old Ice versions on the forums. If you need further help with this matter, I recommend to upgrade to Ice 3.3.0 if not already done.

    Cheers,
    Benoit.

  3. #3
    nefilim is offline Registered User
    Name: Peter vanRensburg
    Organization: Lockerz
    Project: Social Platform
    Join Date
    Jun 2008
    Posts
    12
    Hi Benoit

    Indeed, we are using 3.0.1. I'm currently evaluating 3.3.0 for upgrading in the near future (I'll start another topic for this, interesting performance comparisons between the two).

    The traffic is very small indeed but the correlation is undeniable:

    lo traffic

    CPU load

    I was just trying to get a better understanding of the ICE internals to help me narrow down the cause of these spikes. From what you are saying it seems that one possibility is an extreme amount of connections being opened/closed.

    Cheers
    Peter

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-15-2010, 05:53 AM
  2. Replies: 0
    Last Post: 04-04-2009, 07:22 PM
  3. socket error creating endpoint on localhost
    By gminorcoles in forum Help Center
    Replies: 1
    Last Post: 08-11-2008, 05:16 PM
  4. Bidir connections and Ice::Blobject
    By vincei in forum Help Center
    Replies: 2
    Last Post: 03-14-2008, 01:17 PM
  5. slice2html creates broken links for nested modules
    By mefoster in forum Bug Reports
    Replies: 1
    Last Post: 05-01-2007, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •