PowerShell script exchange
Post Reply
Talom
Influencer
Posts: 23
Liked: 2 times
Joined: Oct 21, 2014 7:56 am
Contact:

OutOfMemory from SnapIn

Post by Talom » Jun 21, 2017 2:36 pm

A few days ago, we created some new repositories and reconfigured a few jobs and since that my powershell script throws an OutOfMemory Exception.

Code: Select all

Get-VBRBackupSession : Exception of type 'System.OutOfMemoryException' was thrown.
I already increased the MaxMemoryPerShellMB from 1024 to 2048 MB but nothing changed.
I monitored the memory with task manager while executing the script and there were no unusual memory consumption.

I never had a problem with this script on all my server and some of them are a lot bigger then the problem server.

Has anyone an advice where to look for more information or a solution for the problem?

Thanks
BACKUP EAGLE® Developer

veremin
Product Manager
Posts: 17047
Liked: 1470 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: OutOfMemory from SnapIn

Post by veremin » Jun 21, 2017 3:03 pm

Hmm, does not look like a PS specific issue. Can you expand backup session list, using GUI, or will you have similar problems?

Talom
Influencer
Posts: 23
Liked: 2 times
Joined: Oct 21, 2014 7:56 am
Contact:

Re: OutOfMemory from SnapIn

Post by Talom » Jun 23, 2017 5:55 am

Sorry for the late reply. We tried a reboot and now everything works fine.
BACKUP EAGLE® Developer

veremin
Product Manager
Posts: 17047
Liked: 1470 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: OutOfMemory from SnapIn

Post by veremin » Jun 23, 2017 7:21 am

Seems like a temporary system issue (not necessarily related to PowerShell) that went away with reboot. Thanks for the update; appreciated.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests