Wednesday, 21 September 2011

SPUserCodeService and ResourceMeasures

ResourceMeasures Gets the collection of measures for regulating the resource usage of services in the Microsoft SharePoint Foundation farm.

With this class you can have full control over the measures. That means you can disable them or just adjust the value you think are more appropriate for your farm. I will say it is dangerous to play around with these properties because it gives you a really powerful weapon.

For the time being these are the measures we can access, disable/enable or just assign a particular value:

AbnormalProcessTerminationCount

CPUExecutionTime

CriticalExceptionCount

InvocationCount

PercentProcessorTime

ProcessCPUCycles

ProcessHandleCount

ProcessIOBytes

ProcessThreadCount

ProcessVirtualBytes

SharePointDatabaseQueryCount

SharePointDatabaseQueryTime

UnhandledExceptionCount

UnresponsiveprocessCount

I am going to show you two simple snippets two show you how these works.

No comments:

About Me

I am a dedicated software developer who has been programming since I was 9 years old, when I made my first game in an Amstrad 128kb... after 25 years I keep doing the same stuff with different systems... If you have any problems or you want to contribute to this blog please email me to gabrielrenom@gmail.com

I have been Developing applications for mobile devices since late 90's I am keep dedicated to mobile development working with iPhone, iPad, iTouch , Windows Mobile and Android platforms having my own column in the US magazine i.Business. www.ibusinessmag.com.
Currently working in the legal industry for DWF LLP.