Hi,
I have a problem with one of our services.
We are seeing a number of errors in the exception logs, and over time (1-2 days) eventually causes the service to stop.
the errors appear to be one of three types:
- Forcibly closed connection
- Unable to bind
- Unable to get connection from pool
I have reviewed the code and regarding #3, all code appears to be safely within the using() pattern, the other two I am unsure about.
Service is currently running 5.5 and we are about to update it.
I intend to dig into code further, but any thoughts on potential causes of these three errors ? I am assuming that #3 is the result of either of #1,#2 or both.
020-05-15 00:24:35Z|INFO|An existing connection was forcibly closed by the remote host - An existing connection was forcibly closed by the remote host
2020-05-18 22:13:24Z|INFO|Unable to bind to request ‘GetSecurityUserByEmail’ - { at ServiceStack.Serialization.StringMapTypeDeserializer.PopulateFromMap(Object instance, IDictionary2 keyValuePairs, List
1 ignoredWarningsOnPropertyNames) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack.Client\Serialization\StringMapTypeDeserializer.cs:line 106
at ServiceStack.Host.RestPath.CreateRequest(String pathInfo, Dictionary2 queryStringAndFormData, Object fromInstance) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestPath.cs:line 544 at ServiceStack.Host.RestHandler.CreateRequest(IRequest httpReq, IRestPath restPath, Dictionary
2 requestParams, Object requestDto) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestHandler.cs:line 156
at ServiceStack.Host.RestHandler.CreateRequestAsync(IRequest httpReq, IRestPath restPath, Dictionary`2 requestParams) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestHandler.cs:line 145
at ServiceStack.Host.RestHandler.CreateRequestAsync(IRequest httpReq, IRestPath restPath) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestHandler.cs:line 136
at ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest req, IResponse httpRes, String operationName) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\RestHandler.cs:line 89}
2020-05-18 22:15:00Z|INFO|error connecting: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. - { at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at ServiceStack.OrmLite.OrmLiteConnection.Open() in C:\BuildAgent\work\27e4cc16641be8c0\src\ServiceStack.OrmLite\OrmLiteConnection.cs:line 79
at ServiceStack.OrmLite.OrmLiteConnectionFactory.OpenDbConnection() in C:\BuildAgent\work\27e4cc16641be8c0\src\ServiceStack.OrmLite\OrmLiteConnectionFactory.cs:line 95
at AccountManagement.ServiceInterface.AccountService.Any(GetClassByClassCode request) in C:\Users\Public\workspace\mico-2\Account\Account.ServiceInterface\School\SchoolClass.cs:line 41
at lambda_method(Closure , Object , Object )
at ServiceStack.Host.ServiceRunner`1.ExecuteAsync(IRequest req, Object instance, TRequest requestDto) in C:\BuildAgent\work\3481147c480f4a2f\src\ServiceStack\Host\ServiceRunner.cs:line 133}