Custom counters file view is out of memory


G

Guest

We have a dll that writes to custom performance counters. We just started
catching this exception:

Exception Type: System.InvalidOperationException
Message: Custom counters file view is out of memory.
TargetSite: Int32 CreateCounter(Int32, System.String)

Some research I did found some configurable settings for this in version 2
of the framework. Unfortunately we're running across this problem in a v 1.14
application. How do I provide more memory for the performance couters?
 
Ad

Advertisements

Joined
May 27, 2015
Messages
2
Reaction score
0
Result Message:
Test method SterlingVDR.Test.BL.InvitationServiceTestFixture.InviteExistingNowTest threw exception:
System.TypeInitializationException: The type initializer for 'SterlingVDR.Telemetry.MethodCounter' threw an exception. ---> System.InvalidOperationException: Custom counters file view is out of memory.
Result StackTrace:
at System.Diagnostics.SharedPerformanceCounter.CalculateMemory(Int32 oldOffset, Int32 totalSize, Int32& alignmentAdjustment)
at System.Diagnostics.SharedPerformanceCounter.CreateCategory(CategoryEntry* lastCategoryPointer, Int32 instanceNameHashCode, String instanceName, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.SharedPerformanceCounter.GetCounter(String counterName, String instanceName, Boolean enableReuse, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.SharedPerformanceCounter..ctor(String catName, String counterName, String instanceName, PerformanceCounterInstanceLifetime lifetime)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, Boolean readOnly)
at SterlingVDR.Telemetry.MethodCounter..cctor() in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Telemetry\MethodCounter.cs:line 731
--- End of inner exception stack trace ---
at SterlingVDR.Telemetry.MethodCounter.Begin[T](String operation)
at SterlingVDR.Telemetry.CounterInterceptor`1.Invoke(IMethodInvocation invocation) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Telemetry\CounterInterceptor.cs:line 25
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors)
at CompositionAopProxy_61b2c2c09f7c4c648675fa55471cbe0e.ListProjectRoles(PstSID , Int64 , SideCode )
at (Object , Object[] )
at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments)
at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at SterlingVDR.Core.Persistence.PstInterceptor.Invoke(IMethodInvocation invocation) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Core\Core\Persistence\PstInterceptor.cs:line 141
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors)
at CompositionAopProxy_42cb1314f755400994e86a5554b5f42b.ListProjectRoles(PstSID , Int64 , SideCode )
at SterlingVDR.BL.Impl.PersonService.AssignSellSideUserToQAExpertAtCreation(PstSID Sid, Int64 projectID, String email) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Service.Impl\PersonService.cs:line 392
at SterlingVDR.BL.Impl.PersonService.CreateDealAdmin(PstSID Sid, String username, String email, String cellPhone, String password, Boolean isApproved, Int64 projectId) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Service.Impl\PersonService.cs:line 313
at (Object , Object[] )
at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments)
at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at SterlingVDR.Core.Persistence.PstInterceptor.Invoke(IMethodInvocation invocation) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Core\Core\Persistence\PstInterceptor.cs:line 141
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors)
at CompositionAopProxy_9de4830488a74e288a7f7f6b9d9df3fa.CreateDealAdmin(PstSID Sid, String username, String email, String cellPhone, String password, Boolean isApproved, Int64 projectId)
at SterlingVDR.BL.Impl.InvitationService.InviteDealAdmin(PstSID sid, String email, String cellPhone, Int64 projectId, Boolean isFirstInvitation) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Service.Impl\InvitationService.cs:line 122
at SterlingVDR.BL.Impl.InvitationService.InviteDealAdmin(PstSID sid, String email, String cellPhone, Int64 projectId) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Service.Impl\InvitationService.cs:line 113
at (Object , Object[] )
at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments)
at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at SterlingVDR.Core.Persistence.PstInterceptor.Invoke(IMethodInvocation invocation) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Core\Core\Persistence\PstInterceptor.cs:line 141
at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
at Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors)
at CompositionAopProxy_2101bca4f2b0414c80c0f65acca76aa6.InviteDealAdmin(PstSID sid, String email, String cellPhone, Int64 projectId)
at SterlingVDR.Test.BL.InvitationServiceTestFixture.InviteNewAndExisting(Boolean isInviteScheduled) in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Test\BL\InvitationServiceTestFixture.cs:line 366
at SterlingVDR.Test.BL.InvitationServiceTestFixture.InviteExistingNowTest() in d:\Philip\Branches\Interceptors_V2\SterlingVDR.Test\BL\InvitationServiceTestFixture.cs:line 61
 
Ad

Advertisements

Joined
May 27, 2015
Messages
2
Reaction score
0
How many custom counters can be added to the Performance Monitor? I don't see any specification in MSDN. When I add many. I don't have the count, but it says cannot be monitored.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top