Tag: memory

(2 Scripts)

<< Back to Script Library
This is an example of how the 'Show message dialogue' script can be tailored for a specific use case.
_ClientMetric1 has been set to the Memory (Working Set) from ControlUp and the message includes this metric.
Use WPF to display a modal dialogue in a user's session with a message, optional title, and solid colour background.
Take a copy of the script and either add parameters to use as a regular SBA, or set the defaults in the Param() block so it can be used in an automated action. If you have created parameters, setting default values for these will also allow use in an automated action.
Unless -showForSeconds is specified and the value is less than the script timeout, it will timeout and show an eror but if no other errors are shown, the message will have been displayed
Version: 1.11.48  •   Created: 2021-05-07  •   Modified: 2022-02-07
Set the maximum working set size for a process such that it cannot consume more than that amount of memory. Gives the ability to set a memory limit on a process, such as one with a known memory leak, so that it cannot consume more than the maximum memory specified via the parameter. Additional memory allocations will be allowed by the OS paging out some of the existing working set, generally the least recently used.
Version: 1.1.2  •   Created: 2019-06-10  •   Modified: 2019-12-12