A global action on a resource control enables you to receive notice of any entity that is tripping over a resource control value that is set too low.
For example, assume you want to determine whether a web server possesses sufficient CPUs for its typical workload. You could analyze sar data for idle CPU time and load average. You could also examine extended accounting data to determine the number of simultaneous processes that are running for the web server process.
However, an easier approach is to place the web server in a task. You can then set a global action, using syslog, to notify you whenever a task exceeds a scheduled number of LWPs appropriate for the system's capabilities.
See the sar(1) man page for more information.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
# prctl -n task.max-lwps -v 40 -t privileged -d all `pgrep httpd`
# rctladm -e syslog task.max-lwps
If the workload trips the resource control, you will see /var/adm/messages similar to the following:
Jan 8 10:15:15 testmachine unix: [ID 859581 kern.notice] NOTICE: privileged rctl task.max-lwps exceeded by task 19