How to get Ice.ThreadPool.Server

sinofoolsinofool Bochun BaiOrganization: sinofool.comProject: http://sinofool.com/Member ✭✭
Hi,
I recently found some WARN level logs about Ice.ThreadPool.Server in both IceBox and IceRegistry.
thread pool `Ice.ThreadPool.Server' is running low on threads

I found the log statement in src/Ice/ThreadPool.cpp, but there are no interface return _inUse variable.

How do I get the current ThreadPool running thread size?

Comments

  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    You can't get this information programatically. You can however tune when the warnings show up with the Ice.ThreadPool.Server.SizeWarn property or increase the size of the thread pool if necessary with Ice.ThreadPool.Server.SizeMax.

    Cheers,
    Benoit.
  • sinofoolsinofool Bochun BaiOrganization: sinofool.comProject: http://sinofool.com/Member ✭✭
    well, Thanks!

    This threadpool problem is not critical. Getting these runtime information and handling the events will help monitoring the whole system.

    :)
    Have a nice day!
Sign In or Register to comment.