Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 引发了“System.OutOfMemoryException”类型的异常_Mysql_Ibatis_Ibatis.net - Fatal编程技术网

Mysql 引发了“System.OutOfMemoryException”类型的异常

Mysql 引发了“System.OutOfMemoryException”类型的异常,mysql,ibatis,ibatis.net,Mysql,Ibatis,Ibatis.net,我有一个抛出“System.OutOfMemoryException”类型异常的应用程序。这降低了服务器的性能,CPU使用率约为95%。 我不知道这个问题发生的原因。。。。 有人能告诉我错误的原因吗?我该怎么解决 这是我的堆栈跟踪: Message Exception of type 'System.OutOfMemoryException' was thrown. Source MySql.Data Stack at MySql.Data.MySqlClient.MySqlParamete

我有一个抛出“System.OutOfMemoryException”类型异常的应用程序。这降低了服务器的性能,CPU使用率约为95%。 我不知道这个问题发生的原因。。。。 有人能告诉我错误的原因吗?我该怎么解决

这是我的堆栈跟踪:

Message
Exception of type 'System.OutOfMemoryException' was thrown.

Source
MySql.Data

Stack
at MySql.Data.MySqlClient.MySqlParameterCollection..ctor() at
MySql.Data.MySqlClient.MySqlCommand..ctor() at
MySql.Data.MySqlClient.MySqlConnection.CreateDbCommand() at 
System.Data.Common.DbConnection.System.Data.IDbConnection.CreateCommand() at 
IBatisNet.Common.DbProvider.CreateDataParameter() at 
IBatisNet.DataMapper.SqlMapSession.CreateDataParameter() at   
IBatisNet.DataMapper.Configuration.Statements.PreparedStatementFactory.CreateParametersForTextCommand() at IBatisNet.DataMapper

问题最有可能出现在您正在运行的应用程序中,而不是mysql服务器。提供应用程序的一些详细信息,您将得到更清晰的答案。我有一个视频上载服务应用程序,他们可以在其中查看实时事件视频。我每30秒向用户显示一条消息,该消息将从数据库中检索,并在发送服务器请求后向用户显示30秒。如果更多的用户大量的请求被发送30秒一次,这导致了这个异常…你能告诉wats问题是???