Is there pam diagnostics mode where you can see how much memory and cpu is being used by orchestrator and agent?
I know pam can queue up a process. What controls this? Can pam queue up a process to run on touchpoint if touchpoint resources are busy?
I am trying to avoid sending commands to agent that it cant handle because cpu or memory is maxed out.
There is no built in mechanism in PAM to get memory usage. You could query the OS to see how much memory Java.exe is utilizing, and then maybe use the Resource Operators / feature to limit process instances being run at a particular touch point.
But you are going to run into a road block due to how PAM, and more specifically Java, assumes that once X amount of memory is required, it will be required again and will not release the memory back to the OS as long as the max memory threshold is not exceeded.
As an example using an Orchestrator that has 4gb set as for the max memory value: The orchestrator may take 1.5gb of memory initially, then through normal usage the memory slowly increases to 3.5 and will maintain this 3.5 until PAM is restarted again. Then, say there is a period of extreme load which pushes the memory requirement to 4.5. As long as the OS has available memory it to provide it will. Once this unusual load has diminished Java will slowly release the memory back to the Max threshold of 4gb, where again it will settle until restarted.