Specifically, I am trying to run the following command on both CentOS and Fedora14 (same issue with both)
watch sudo jmap -heap 31945
However, there are a few lines of standard error that screw up the output after jmap is called more than once:
Attaching to process ID 31945, please wait... Debugger attached successfully. Server compiler detected. JVM version is 14.2-b01
These lines are stripped if I run:
sudo jmap -heap 31945 2> /dev/null
However, if I try:
watch sudo jmap -heap 31945 2> /dev/null
then too many lines are removed (many lines of the actual output are removed).
Why is this happening? Is there a way to fix this?