SandboxBerry icon indicating copy to clipboard operation
SandboxBerry copied to clipboard

System.OutOfMemoryException

Open mengwei321 opened this issue 1 year ago • 6 comments

Hi,

While loading Opportunity products, the error below occurred.

System.ApplicationException: Error while fetching data for <custom_object_name>: Exception of type 'System.OutOfMemoryException' was thrown. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Please help.

Thanks for the great tool.

Jason

mengwei321 avatar Feb 22 '24 03:02 mengwei321

Hi, I guess you're just out of memory. How much data are you copying? Try closing down other apps on your PC, or try copying less data. Sandboxberry isn't really meant for large amounts of data. During copying it holds it all in memory so that it can keep track of old vs new ids.

codeulike avatar Feb 24 '24 21:02 codeulike

I am just copying one opportunity and one line item. I think the existing process uses too much automation. Is there a configuration to adjust max ram for Sandboxberry, like JVM? Or it is just using whatever physical memory the machine has. The machine I am using has 16G RAM.

Thanks, Jason

mengwei321 avatar Feb 26 '24 07:02 mengwei321

Hi - Sandboxberry is just a .net app so it doesnt have a max ram setting. Sounds like something strange is going on with your PC. Was something else taking up all the memory? Is this happening consistently every time you try?

codeulike avatar Feb 26 '24 14:02 codeulike

I ran the SB with system memory used 31%, and when the SB threw out of memory exception, SB used 1.6G RAM, with system memory used 41%. So the system has enough memory.The question is why SB cannot consume more memory to proceed?

傳自 iPhone 版的 Yahoo奇摩電子信箱

於 星期一, 2月 26, 2024, 10:12 下午,codeulike @.***> 寫道:

Hi - Sandboxberry is just a .net app so it doesnt have a max ram setting. Sounds like something strange is going on with your PC. Was something else taking up all the memory? Is this happening consistently every time you try?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mengwei321 avatar Feb 29 '24 05:02 mengwei321

I am using .net framework version 4.8, 64-bit windows. Not sure if it matters.

mengwei321 avatar Feb 29 '24 05:02 mengwei321

Aha I think I know whats going on. SandboxBerry is quite old and I guess you downloaded the latest Release which is from 2017 Its compiled as a 32-bit Windows exe so it will have a hard limit of 2GB memory. I think .NET itself uses about 0.5GB so you're probably hitting the 2GB limit.

If you've got Visual Studio handy you could re-build as a 64-bit exe to remove that limit.

But I still dont understand how you are using 1.6GB of memory ... you must be downloading/transferring much more data than you think you are.

codeulike avatar Feb 29 '24 11:02 codeulike