System.OutOfMemoryException on tests
Completed
Hi,
I have some heavy flow to test, which loads memory to around 500MB. When running the process locally (via visual studio or running the exe itself), everything is working fine. But when I ran it as a test via Resharper with Xunit it cause System.OutOfMemoryException.
Is there some way to increase the allowed memory allocation when running via Resharper and Xunit?
Please sign in to leave a comment.
Hello Tomer,
Thank you for the feedback.
Could you please try collecting a snapshot using a standalone dotMemory tool when you running tests with ReSharper - https://confluence.jetbrains.com/display/ReSharper/ReSharper+Profiling+Instructions#ReSharperProfilingInstructions-StandalonedotMemoryprofiler
Thank you.
Ok, just got one.
Where to send it?
Also, in the meantime, is there some way to increase the allowed memory allocation before running the test? Some resharper properties which control it?
Thanks,
Tomer
Here are some general suggestions - https://resharper-support.jetbrains.com/hc/en-us/articles/207242725-Visual-Studio-with-ReSharper-is-high-on-memory-usage.
Anyway, we need to investigate the problem, so please share your snapshot using "Submit a request" form.
Thanks in advance.
Hi,
I've solved the issue by changing the Platform target to x64 instead of Any CPU.
Thanks!
Tomer