Developer Design build and test customizations Administrator Install
Developer • Design, build and test customizations Administrator • Install and monitor customizations Site Collection Owner • Activate and use customizations
Developer • Design, build and test customizations Administrator • Monitor customizations Site Collection Owner • Activate and use customizations • Install customizations
Installation • Upload into Solution Gallery Activation • Auto-activates features Deactivation • Inert operation, extended by developer • Web Parts no longer execute Deletion
SPSite SPWeb SPList. Item
Sandbox Asp. Net. Hosting. Permission, Level=Minimal Share. Point. Permission, Object. Model=true Security. Permission, Flags=Execution My. dll Other. dll System DLL Share. Point DLL User Code wss_usercode. config Framework Code Full Trust Share. Point OM Subset OM
Front end Back end Execution Manager Host Service Worker Process Untrusted Code Subset Object Model Full Object Model
Per-WFE Assembly. Cache Root SPWeb of SPSite 1 Solution gallery 2 Web. Parts. wsp <siteguid>company. intranet. webpart. wsp foo. dll 5 Web Part gallery 6 4 3 Sandboxed Worker Process 7
Non-Visual Web Parts Event/Feature Receivers Feature Activation Events Custom Workflow Actions Info. Path Forms Services List Definitions Custom Actions Site Pages Site Columns Content Types
x x x x
My. Web. Part. dll Full Object Model Runtime Subset Object Model Proxy
[Guid. Attribute("34805697 -1 FC 4 -4 b 66 -AF 09 -AB 48 AC 0 F 9 D 97")] public class Publisher. Validator : SPSolution. Validator{ public override void Validate. Solution( SPSolution. Validation. Properties properties){ properties. Valid = [true || false]; properties. Validation. Error. Message = “no soup for you”; } public override void Validate. Assembly( SPSolution. Validation. Properties properties, SPSolution. File assembly){ } } © 2010 Microsoft Corporation. All rights reserved. RTM Content - Published April 2010
How it works per day Sum solutions Max across
Metric Name Description Abnormal. Process. Termination. Count CPUExecution. Time Critical. Exception. Count Invocation. Count Percent. Processor. Time Process. CPUCycles Process. Handle. Count Process. IOBytes Process. Thread. Count Process. Virtual. Bytes Share. Point. Database. Query. Count Share. Point. Database. Query. Time Unhandled. Exception. Count Unresponsiveprocess. Count Process gets abnormally terminated CPU exception time Critical exception fired Number of times solution has been invoked Note: # of cores not factored in (Hard Limit Only) Bytes written to IO Number of Threads in Overall Process (Hard Limit Only) Memory consumed Share. Point DB Queries Invoked Amount of time spent waiting for a query to be performed Unhanded Exceptions We have to kill the process because it has become unresponsive Units Resources Hard Per Point Limit Count 1 1 Seconds Number 200 10 60 3 Count N/A 85 100 1 E+11 10, 000 1 E+07 1 E+11 5, 000 Threads 10, 000 200 Bytes 1 E+09 4 E+09 Number 400 100 Seconds 20 60 50 3 2 1 Percentage Units of Overall Processor Consumed CPU Cycles Windows Handles Bytes Number You can tweak these values to fit your need… 1 E+08
- Slides: 35