Results 1 to 2 of 2

Thread: running out of threadpool limit

  1. #1
    LAstakhov's Avatar
    LAstakhov is offline Registered User
    Name: Leonid Astakhov
    Organization: Kaspersky Lab
    Project: AVP
    Join Date
    Mar 2008
    Posts
    8

    running out of threadpool limit

    Here is a problem:

    We have one dedicated server and 60 clients. The server is configured as following:
    Ice.ThreadPool.Server.Size=64
    Ice.ThreadPool.Client.Size=32

    It works fine until it comes with a warning of thread pool size and falling into a deadlock after the final warning to the log:

    thread pool `Ice.ThreadPool.Server' is running low on threads
    Size=64, SizeMax=64, SizeWarn=51

    It looks like there is no any free thread available anymore to send a response. So every locked thread is waiting for at least one free thread to be available but it will never happen.

    What would be your advise of how to locate this kind of problems in a code? Maybe Ice has some configuration properties for deadlock diagnostic?


    Best regards, Leo

  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 Leo,

    The best way to figure out the cause of a deadlock is to attach to the process with the debugger and take a look at the stack trace of each thread. This will tell you why the threads are blocked (waiting on a mutex? waiting on twoway request to return? etc).

    I also recommend reading Bernard's newsletter articles about deadlocks here. It should give you a better idea on the possible reasons for deadlocks and how to avoid them.

    Note however that the articles are a bit out of date with respect to AMI. Since Ice 3.3.0, AMI calls are guaranteed to not block. If you don't want to block a thread from the Ice server thread pool by making a potentially blocking Ice remote call, you can now use AMI.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Communicator connection limit
    By Andrew in forum Help Center
    Replies: 2
    Last Post: 10-13-2008, 01:04 PM
  2. Replies: 1
    Last Post: 08-13-2007, 01:16 AM
  3. 64kBytes limit?
    By hotlips in forum Help Center
    Replies: 9
    Last Post: 05-16-2007, 03:25 PM
  4. A question about memory limit in Ice.
    By ehero in forum Help Center
    Replies: 3
    Last Post: 06-28-2005, 10:35 AM
  5. TCP connection limit in WinXP SP2
    By mario in forum Help Center
    Replies: 2
    Last Post: 01-27-2005, 05:56 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
  •