【问题标题】:Why Azure portal is showing Redis Connections Connected client 4.99K?为什么 Azure 门户显示 Redis Connections Connected 客户端 4.99K?
【发布时间】:2015-05-04 20:24:48
【问题描述】:

我在我们的应用程序中使用了单例 azure-redis 数据库客户端。但是在 Azure 门户上,它显示已连接的客户端 4.99K。我不确定这些客户端是谁,为什么当我有单例实例时它显示 4.99K 客户端已连接?

示例代码:

using StackExchange.Redis;
if (instance == null)
            {
                lock (syncRoot)
                {
                    if (instance == null)
                    {
                        try
                        {
                            _cacheService = GetConnectionMultiplexer();
                            instance = _cacheService.GetDatabase();
                        }
                        catch (Exception ex)
                        {
                            Debug.WriteLine(ex.Message);
                        }
                    }
                }
            }

【问题讨论】:

  • 是否有可能您连接了任何其他客户端,例如 redis-cli 等工具?
  • 看看这篇文章,以确保您没有遇到其中发现的问题之一:stackoverflow.com/questions/26033488/…
  • @pranavrastogi 不,我没有连接任何其他客户端。
  • @JonCole 是的!非常感谢您。我认为这可能是问题所在。我正在更新库,看看是否可行。

标签: stackexchange.redis azure-redis-cache


【解决方案1】:

根据我们在 cmets 中的讨论,这与此处描述的问题相同:

Why are connections to Azure Redis Cache so high?

【讨论】:

    猜你喜欢
    • 2022-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-24
    • 2019-02-05
    • 1970-01-01
    相关资源
    最近更新 更多