Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

压测时候出现大量超时错误 #8

Closed
a14907 opened this issue Oct 23, 2019 · 3 comments
Closed

压测时候出现大量超时错误 #8

a14907 opened this issue Oct 23, 2019 · 3 comments

Comments

@a14907
Copy link

a14907 commented Oct 23, 2019

日志是这样的:

fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
System.TimeoutException: SafeObjectPool.Get 获取超时(10秒)。
   at SafeObjectPool.ObjectPool`1.Get(Nullable`1 timeout)
   at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func`2 handler, Int32 jump, Int32 errtimes)
   at CSRedis.CSRedisClient.ExecuteScalar[T](String key, Func`3 hander)
   at CSRedis.CSRedisClient.HKeys(String key)
   at ImClient.GetChanListByClientId(Guid clientId) in D:\code\TT\001_src\im\ImCore\ImClient.cs:line 256
   at ImServer.Acceptor(HttpContext context, Func`1 next) in D:\code\TT\001_src\im\ImCore\ImServer.cs:line 116
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

是什么问题?

@2881099
Copy link
Owner

2881099 commented Oct 23, 2019

poolsize设置的多少,csredis的配置,加大一些

@a14907
Copy link
Author

a14907 commented Oct 23, 2019

poolsize设置的多少,csredis的配置,加大一些

设置了100

@2881099
Copy link
Owner

2881099 commented Oct 23, 2019

那就是处理不过来,把redis当本地试试,再不行就上redis集群

@a14907 a14907 closed this as completed Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants