2012-05-03 17 views
4

NopCommerce - ASP.net MVC3 Webアプリケーションでタイムアウトエラーが発生しました。ASP.netアプリケーションでSQL Serverタイムアウトエラーを調べる方法はありますか?

エラーは、sqlプロセスを終了するといつか再作成されます。終了時には、しばらくの間うまく動作し始め、再びそれが発生し始めます。

これは数日前から行われていますが、その前に正常に動作していました。コードに大きな変更は加えられていないことに注意してください。

私たちは問題となる可能性があり、調査して修正する方法については無知です。それは接続プール関連の問題なのでしょうか?ここで

がスタックトレースです:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +296 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +415 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2657 System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +88 System.Data.SqlClient.SqlDataReader.get_MetaData() +114 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +505 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1896 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +480 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +854 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +22 System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary 2 identifierValues, List 1 generatedValues) +269 System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) +528

答えて

3

@Dharmikバンダリ、いくつかの問題があるかもしれません。次のこと

  • は、プールのサイズに
  • セットを増やしてみCOMMANDTIMEOUT = 0(無限)
  • セットのConnectionTimeout = 0(無限)
  • リリース接続リソースとすぐにデータベース機能のオーバーとして