Is there any particular reason for using sudo while running the jps and jstat commands?
The "user" under which the script runs should have the correct permissions to check for status of process and calculate the heap usage.
I see this error while running the check.
output: sudo: sorry, you must have a tty to run sudo
Is there any particular reason for using sudo while running the
jps
andjstat
commands? The "user" under which the script runs should have the correct permissions to check for status of process and calculate the heap usage.I see this error while running the check. output: sudo: sorry, you must have a tty to run sudo