Error500 internal server error

1.在WorkSpace-社区-论坛中发布帖子时,经常会出现下图中错误,并导致WorkSpace的Web页面无法使用,只有重启服务器才能重新使用:

2.在Windows服务器事件查看器-应用程序中提示警告信息如下:
日志名称: Application
来源: ASP.NET 4.0.30319.0
日期: 2025/5/9 14:13:52
事件 ID: 1309
任务类别: Web Event
级别: 警告
关键字: 经典
用户: 暂缺
计算机: WIN-VBCQIEM4G8U
描述:
Event code: 3005
Event message: 发生了未经处理的异常。
Event time: 2025/5/9 14:13:52
Event time (UTC): 2025/5/9 6:13:52
Event ID: 06740678c4ab4bb6a29f56e0be413106
Event sequence: 262
Event occurrence: 3
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT-1-133912433113102396
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files (x86)\Ascensio System SIA\CommunityServer\WebStudio\
Machine name: WIN-VBCQIEM4G8U

Process information:
Process ID: 5536
Process name: w3wp.exe
Account name: IIS APPPOOL\ONLYOFFICE Server

Exception information:
Exception type: MySqlException
Exception message: 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.
在 MySql.Data.MySqlClient.MySqlPool.GetConnection()
在 MySql.Data.MySqlClient.MySqlConnection.Open()
在 ASC.Common.Data.AdoProxy.DbConnectionProxy.Open()
在 ASC.Common.Data.DbManager.get_Command()
在 ASC.Common.Data.DataExtensions.ApplySqlInstruction(IDbManager manager, ISqlInstruction sql, ISqlDialect dialect)
在 ASC.Common.Data.DbManager.ExecuteList(ISqlInstruction sql)
在 ASC.Core.Data.DbBaseService.Execute[T](Func`2 action)
在 ASC.Core.Data.DbTenantService.GetTenants(Exp where)
在 ASC.Core.Data.DbTenantService.GetTenant(String domain)
在 ASC.Core.Caching.CachedTenantService.GetTenant(String domain)
在 ASC.Core.TenantManager.GetTenant(String domain)
在 ASC.Core.TenantManager.GetCurrentTenant(Boolean throwIfNotFound)
在 ASC.Web.Studio.Global.Application_BeginRequest(Object sender, EventArgs e)
在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request information:
Request URL: http://202.8.168.235/Products/Community/Modules/Forum/NewPost.aspx?t=2&m=3&a=2
Request path: /Products/Community/Modules/Forum/NewPost.aspx
User host address: 10.3.6.235
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\ONLYOFFICE Server

Thread information:
Thread ID: 299
Thread account name: IIS APPPOOL\ONLYOFFICE Server
Is impersonating: False
Stack trace: 在 MySql.Data.MySqlClient.MySqlPool.GetConnection()
在 MySql.Data.MySqlClient.MySqlConnection.Open()
在 ASC.Common.Data.AdoProxy.DbConnectionProxy.Open()
在 ASC.Common.Data.DbManager.get_Command()
在 ASC.Common.Data.DataExtensions.ApplySqlInstruction(IDbManager manager, ISqlInstruction sql, ISqlDialect dialect)
在 ASC.Common.Data.DbManager.ExecuteList(ISqlInstruction sql)
在 ASC.Core.Data.DbBaseService.Execute[T](Func`2 action)
在 ASC.Core.Data.DbTenantService.GetTenants(Exp where)
在 ASC.Core.Data.DbTenantService.GetTenant(String domain)
在 ASC.Core.Caching.CachedTenantService.GetTenant(String domain)
在 ASC.Core.TenantManager.GetTenant(String domain)
在 ASC.Core.TenantManager.GetCurrentTenant(Boolean throwIfNotFound)
在 ASC.Web.Studio.Global.Application_BeginRequest(Object sender, EventArgs e)
在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details:

事件 Xml:



1309
3
3
0x80000000000000

1423
Application
WIN-VBCQIEM4G8U



3005
发生了未经处理的异常。
2025/5/9 14:13:52
2025/5/9 6:13:52
06740678c4ab4bb6a29f56e0be413106
262
3
0
/LM/W3SVC/2/ROOT-1-133912433113102396
Full
/
C:\Program Files (x86)\Ascensio System SIA\CommunityServer\WebStudio</Data>
WIN-VBCQIEM4G8U


5536
w3wp.exe
IIS APPPOOL\ONLYOFFICE Server
MySqlException
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.
在 MySql.Data.MySqlClient.MySqlPool.GetConnection()
在 MySql.Data.MySqlClient.MySqlConnection.Open()
在 ASC.Common.Data.AdoProxy.DbConnectionProxy.Open()
在 ASC.Common.Data.DbManager.get_Command()
在 ASC.Common.Data.DataExtensions.ApplySqlInstruction(IDbManager manager, ISqlInstruction sql, ISqlDialect dialect)
在 ASC.Common.Data.DbManager.ExecuteList(ISqlInstruction sql)
在 ASC.Core.Data.DbBaseService.Execute[T](Func`2 action)
在 ASC.Core.Data.DbTenantService.GetTenants(Exp where)
在 ASC.Core.Data.DbTenantService.GetTenant(String domain)
在 ASC.Core.Caching.CachedTenantService.GetTenant(String domain)
在 ASC.Core.TenantManager.GetTenant(String domain)
在 ASC.Core.TenantManager.GetCurrentTenant(Boolean throwIfNotFound)
在 ASC.Web.Studio.Global.Application_BeginRequest(Object sender, EventArgs e)
在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

http://202.8.168.235/Products/Community/Modules/Forum/NewPost.aspx?t=2&m=3&a=2 /Products/Community/Modules/Forum/NewPost.aspx 10.3.6.235 False IIS APPPOOL\ONLYOFFICE Server 299 IIS APPPOOL\ONLYOFFICE Server False 在 MySql.Data.MySqlClient.MySqlPool.GetConnection() 在 MySql.Data.MySqlClient.MySqlConnection.Open() 在 ASC.Common.Data.AdoProxy.DbConnectionProxy.Open() 在 ASC.Common.Data.DbManager.get_Command() 在 ASC.Common.Data.DataExtensions.ApplySqlInstruction(IDbManager manager, ISqlInstruction sql, ISqlDialect dialect) 在 ASC.Common.Data.DbManager.ExecuteList(ISqlInstruction sql) 在 ASC.Core.Data.DbBaseService.Execute[T](Func`2 action) 在 ASC.Core.Data.DbTenantService.GetTenants(Exp where) 在 ASC.Core.Data.DbTenantService.GetTenant(String domain) 在 ASC.Core.Caching.CachedTenantService.GetTenant(String domain) 在 ASC.Core.TenantManager.GetTenant(String domain) 在 ASC.Core.TenantManager.GetCurrentTenant(Boolean throwIfNotFound) 在 ASC.Web.Studio.Global.Application_BeginRequest(Object sender, EventArgs e) 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

3.请问各位老师,这个问题如何解决?