chef-boneyard / chef-provisioning-aws

AWS driver and resources for Chef that uses the AWS SDK
Apache License 2.0
142 stars 121 forks source link

MaxMemoryPerShellMB Configuration Very Low #318

Open smurawski opened 9 years ago

smurawski commented 9 years ago

https://github.com/chef/chef-provisioning-aws/blob/64e23b6acae83a0417f06795b6c4b8812635e71a/lib/chef/provisioning/aws_driver/driver.rb#L484

This sets the max memory per shell to 300 MB, which doubled the default for PowerShell 2 / Server 2008r2, but isn't big enough for consistent use. The default as of PowerShell 3 is 1024 (though through a bug it's hard coded to 300 - fixable via a hotfix - http://stevenmurawski.com/powershell/2015/5/powershell-3-winrm-maxmemorypershellmb-is-wrong ). This value should be at least 1024 to stay with the current PS3 and greater default value.

tyler-ball commented 9 years ago

I believe we already fixed this in kitchen-ec2 - we should look there for an example we can copy.