-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.OutOfMemoryException when uploading 200MB file #55
Comments
I have a different Exception with the same file on :
|
It appears that the remote server needs Powershell v4.0 to perform uploads of large files |
@mwrock do you have any idea, why Powershell v4 seems to be needed to upload large files ? |
Prior to ps v4, the MaxMemoryPerShell was 150mb. So an out of memory error makes total sense. To add confusion, on ps v3 (2012), there was a bug that did not allow you to customize this configuration. I think you actually could change it but it was not honored. I'm not sure why you get an access violation on 2008R2. Mybe try boosting the MaxMemoryPerShell on 2008R2 and see if that allows the upload. ps v4. bumps the limit to 1GB and v5 is effectively unlimited. |
Thanks @mwrock for the answer, we try to run more tests next week. |
Yeah thats the hotfix you want. Even with the patch, it seems like we could be doing a better job of freeing memory so we don't have to hold the entire file in memory. Maybe specifying a buffer size on the FileStream or flushing on every x chunk. |
I'm facing an System.OutOfMemoryException when I try to upload a 200MB file on :
I'm actually using the gem
winrm-fs (1.0.1)
The text was updated successfully, but these errors were encountered: