>"ps" by default shows only the current user's processesSo, I switched to root >in order to find all processes
>See the man pages for ps and prstat. They have a lot of options. "ps >-el" might tell you more. >Yes, SIGSTOP and SIGCONT will stop and start processes, provided that >they're in a stoppable place (i.e., not blocked uninterruptably in the >kernel). OK. I found the java processes for user Hadoop. Problem is, after the -STOP, the 'job' command shows nothing. I expected to see some suspended processes. Is there any way to list the suspended processes? # prstat PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 1660 hadoop 1094M 953M cpu13 30 0 0:01:04 6.6% java/27 1666 hadoop 1099M 943M cpu6 30 0 0:01:02 6.6% java/27 1675 hadoop 1104M 945M cpu7 30 0 0:01:02 6.6% java/27 1694 hadoop 1103M 945M cpu14 30 0 0:01:02 6.5% java/27 1711 hadoop 1097M 946M cpu2 30 0 0:01:01 6.4% java/27 1706 hadoop 1126M 936M cpu3 30 0 0:01:01 6.2% java/27 1651 hadoop 1095M 946M cpu1 30 0 0:01:02 4.9% java/27 1663 hadoop 1098M 944M run 30 0 0:01:02 4.6% java/27 1672 hadoop 1098M 943M cpu12 30 0 0:01:04 3.5% java/27 1657 hadoop 1098M 947M cpu4 30 0 0:01:02 3.4% java/27 1669 hadoop 1089M 942M cpu11 30 0 0:01:00 3.1% java/27 1648 hadoop 1099M 944M cpu10 30 0 0:01:01 3.0% java/27 1683 hadoop 1099M 944M cpu9 30 0 0:01:01 1.8% java/27 1643 hadoop 1121M 855M cpu15 30 0 0:01:04 1.4% java/27 1678 hadoop 1091M 943M cpu8 30 0 0:01:00 1.0% java/27 Total: 69 processes, 1157 lwps, load averages: 11.62, 3.50, 1.27 # kill -STOP 1264 1648 1651 1089 1643 1657 1654 1155 1223 1329 1660 1663 1666 16 69 1672 1675 1678 1706 1683 1694 1711 # jobs # prstat PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 1660 hadoop 1094M 953M stop 59 0 0:01:05 6.6% java/27 1666 hadoop 1099M 943M stop 59 0 0:01:02 6.6% java/27 1675 hadoop 1104M 945M stop 59 0 0:01:02 6.6% java/27 1694 hadoop 1103M 945M stop 59 0 0:01:02 6.5% java/27 1711 hadoop 1097M 946M stop 59 0 0:01:01 6.4% java/27 1706 hadoop 1126M 936M stop 59 0 0:01:01 6.2% java/27 1651 hadoop 1095M 946M stop 59 0 0:01:03 4.9% java/27 1663 hadoop 1098M 944M stop 59 0 0:01:02 4.6% java/27 1672 hadoop 1098M 943M stop 59 0 0:01:04 3.5% java/27 1657 hadoop 1098M 947M stop 59 0 0:01:02 3.5% java/27 1669 hadoop 1089M 942M stop 59 0 0:01:00 3.1% java/27 1648 hadoop 1099M 944M stop 59 0 0:01:01 3.1% java/27 1683 hadoop 1099M 944M stop 59 0 0:01:01 1.8% java/27 1643 hadoop 1121M 855M stop 59 0 0:01:04 1.4% java/27 1678 hadoop 1091M 943M stop 59 0 0:01:00 1.1% java/27 Total: 69 processes, 1157 lwps, load averages: 11.62, 3.50, 1.27 # 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
