ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Looking for a way to increase load on system to simulate OOM

(1/2) > >>

wraith808:
I'm having a problem in a production environment while performing a memory intensive operation, the process gets an OOM exception.  In the debugger, because my local machine is not under the same memory pressure and has access to the entire address space, I can't reproduce it.  I'm pretty sure it's concurrent processing when processing this large document in memory that's the problem, but I can't verify it.

Is there a utility or a way in visual studio where you can limit the memory that the debugger can access to simulate memory pressure on the system, so I can determine under what conditions the process runs out of memory?  Either external to VS or internal?

Ath:
Have you tried ProcessTamer?
The first SuperUser answer in this question suggests that... ;D ;D ;D

wraith808:
I'm not looking to limit the CPU, though, but the RAM available.  Both of those operate on CPU.  Process Tamer reduces the priority of the process allowing other processes to interfere with it.  Process Lasso does the same, though it does have an option for RAM, it's not a limit; it just triggers an action.  However, that answer did contain my answer it seems!  Thanks for that!  There's a different answer that talks about process governor that seems to do what I want!

Shades:
Is there no debugger on the production machine?

With the Embarcadero RAD Studio software there is a piece of software (PIA server, if memory serves me) that you need to install on the production system and after that you can use the debugging environment from your own system to "hook" into the production system. Does the debugger software you use have a similar feature?

Such a solution does presume that you have full access to the production system. Not sure how such a solution would hold up if the production system is cloud-based.

I think I mentioned this software before, but here goes: API Monitor  This might give you a better idea of why process is running out of memory. It is portable freeware, so no installation required.

wraith808:
Is there no debugger on the production machine?

With the Embarcadero RAD Studio software there is a piece of software (PIA server, if memory serves me) that you need to install on the production system and after that you can use the debugging environment from your own system to "hook" into the production system. Does the debugger software you use have a similar feature?

Such a solution does presume that you have full access to the production system. Not sure how such a solution would hold up if the production system is cloud-based.

I think I mentioned this software before, but here goes: API Monitor  This might give you a better idea of why process is running out of memory. It is portable freeware, so no installation required.


-Shades (March 07, 2019, 07:20 PM)
--- End quote ---

Visual studio has such a feature, but I doubt that any enterprise that has external clients would want such a security risk installed on the production servers.  I don't even have access to the servers- that's the purview of Release Engineering.

Navigation

[0] Message Index

[#] Next page

Go to full version