Sharepoint 2013 Sandbox Solution ProcessCPUCycles Powershell dont save settings.

hi guys,

my SharePoint farm makes me insane. My Problem is that i get this error.

Resource "ProcessCPUCycles(site collection 90d7b01f-1e78-4451-8f41-8a2dffd0909b" for monitored process "ipc://ffed01f1-3f50-4fa5-8751-9fb442ac8a96:7000 (PID=2208)" has value: 100320321564 which is above absolute resource limit: 100000000000.  

After that I build this powershell script. But the crazy Thing is that the userercode host dont save the settings. After a reboot, everything has the default value. Here my course of action

1. Run the Script

$uc=[Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$uc.ResourceMeasures["ProcessCPUCycles"].AbsoluteLimit = 100000000000000000000000000000000
$uc.ResourceMeasures["ProcessHandleCount"].AbsoluteLimit = 500000000
$uc.Update($True)

2. Restart user code host

3. Restart Server

I have no idea, greets from Germany

August 26th, 2015 3:33am

I got it here is the right script YEHAA

This Values can be update with this script

$spCodeService = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$cycles = $spCodeService.ResourceMeasures["ProcessCPUCycles"]
$cycles.AbsoluteLimit = 9000000000000000000000000 # VALUE
$cycles.Update()

$spCodeService = [Microsoft.SharePoint.Administration.SPUserCodeService]::Local
$Process = $spCodeService.ResourceMeasures["ProcessHandleCount"]
$Process.AbsoluteLimit = 5000000000 # VALUE
$Process.Update()

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 5:23am

Hi,

It is very happy that you have resolved your problem.

Thank you for your sharing and it will help others have the same issue.

Best regards,

Sara Fan

August 26th, 2015 10:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics