2017-08-04 42 views
0

現在、外部にアクセスして支払いを行うことができるサイトがあり、APIを介して第三者に支払いが行われ、支払いがそこに表示されます。また、サイトとは異なるサーバーにあるデータベースもあります。例外 'System.OutOfMemoryException'がスローされました

支払いが行われると「System.OutOfMemoryException型の例外がスローされました」というエラーが発生しました。サーバーにログインして再起動する以外に何もしないと、サーバー。たとえば、顧客がオンラインでトランザクションを作成しようとすると、このエラーが発生することがあります。後で再試行すると、エラーなく正常に処理される可能性があります。

このエラーに慣れていて、見た目や始点を知っている人はいませんか?アプリケーションは、サーバリソースの適切な使用をしないとき

Exception of type 'System.OutOfMemoryException' was thrown. 
    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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. 

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: 



[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.] 
    System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) +0 
    System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType, Object target) +41 
    System.Linq.Expressions.Expression`1.Compile() +187 
    System.Data.Common.Internal.Materialization.Translator.Compile(Expression body) +154 

[TargetInvocationException: Exception has been thrown by the target of an invocation.] 
    System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76 
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211 
    System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35 
    System.Data.Common.Internal.Materialization.Translator.Compile(Type resultType, Expression body) +237 
    System.Data.Common.Internal.Materialization.ReplacementExpressionVisitor.Visit(Expression expression) +222 
    System.Linq.Expressions.EntityExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original) +155 
    System.Linq.Expressions.E 

答えて

0

ありがとうこれは一般的なエラーです。パフォーマンスに影響する可能性のあるコードやその他の悪い習慣でのメモリリークを探します。その間に、アプリケーションプールを1日に数回リサイクルすることができます。これは、IISプロセスを再起動してクライアントのトラブルを軽減するよりも優れています。

チェックアウト可能ですlink詳細について

関連する問題