>Same as pretty much every Unix/Linux system: >"kill -STOP" with a list of process ids to stop them. >"kill -CONT" with a list of process ids to resume them. Excuse me... I am not sure about that. 1) prstat shows many java processes while ps command shows only 2. Also, after the 'kill -STOP', again the processes are active (shown in the ps output).
-bash-3.00$ prstat PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 1660 hadoop 1094M 953M cpu14 20 0 0:01:05 6.6% java/27 1666 hadoop 1099M 943M cpu6 20 0 0:01:02 6.6% java/27 1675 hadoop 1104M 945M cpu7 20 0 0:01:02 6.6% java/27 1694 hadoop 1103M 945M cpu3 20 0 0:01:02 6.5% java/27 1711 hadoop 1097M 946M cpu4 20 0 0:01:01 6.4% java/27 1706 hadoop 1126M 936M cpu12 10 0 0:01:01 6.2% java/27 1651 hadoop 1095M 946M cpu0 10 0 0:01:03 4.9% java/27 1663 hadoop 1098M 944M cpu2 20 0 0:01:02 4.6% java/27 1672 hadoop 1098M 943M cpu13 20 0 0:01:04 3.5% java/27 1657 hadoop 1098M 947M cpu9 20 0 0:01:02 3.5% java/27 1669 hadoop 1089M 942M cpu11 20 0 0:01:00 3.1% java/27 1648 hadoop 1099M 944M cpu10 10 0 0:01:01 3.1% java/27 1683 hadoop 1099M 944M cpu8 10 0 0:01:01 1.8% java/27 1643 hadoop 1121M 855M cpu15 20 0 0:01:04 1.4% java/27 1678 hadoop 1091M 943M run 10 0 0:01:00 1.1% java/27 Total: 68 processes, 1156 lwps, load averages: 11.62, 3.50, 1.27 -bash-3.00$ ps PID TTY TIME CMD 1264 console 0:04 java 1052 console 0:00 bash 1089 console 0:03 java 1592 console 0:00 iostat 1732 console 0:00 ps -bash-3.00$ kill -STOP 1264 1089 -bash-3.00$ ps PID TTY TIME CMD 1264 console 0:04 java 1052 console 0:00 bash 1089 console 0:03 java 1592 console 0:00 iostat 1733 console 0:00 ps Regards, Mahmood ------------------------------------------- dtrace-discuss Archives: https://www.listbox.com/member/archive/184261/=now RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f Modify Your Subscription: https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2 Powered by Listbox: http://www.listbox.com