liunx 查看进程,查看线程的命令

正在运行的进程的信息

ps -ef

查看正在运行的Java 进程

ps -ef | grep java

查看Java 进程

[root@geexek_web ~]# jps
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd
5588 Bootstrap
20359 Bootstrap
20853 Bootstrap
3731 Bootstrap
677 Bootstrap
7792 Bootstrap
26105 jar
14456 Bootstrap
20981 Bootstrap
2827 Bootstrap
14664 Bootstrap
10030 Bootstrap
11274 Bootstrap
1291 Application
10649 jar
5067 Bootstrap
12178 Jps
7333 Bootstrap
4527 Bootstrap
20723 Bootstrap
14618 Bootstrap
7446 jar

top 查看进程的实时信息

top 

查看进程的实时信息

top -H -p 10763

Tasks: 469 total,   0 running, 469 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.3%us,  2.6%sy,  0.0%ni, 94.8%id,  0.2%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:  32880448k total, 31343836k used,  1536612k free,   959936k buffers
Swap: 10239996k total,   331640k used,  9908356k free,  5291368k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                 
10763 root      20   0 14.1g 1.0g 7820 S  2.0  3.1   1541:08 java                                                                                                     
10713 root      20   0 14.1g 1.0g 7820 S  1.0  3.1 731:05.43 java                                                                                                     
10655 root      20   0 14.1g 1.0g 7820 S  0.3  3.1 145:24.03 java                                                                                                     
10658 root      20   0 14.1g 1.0g 7820 S  0.3  3.1 145:31.65 java                                                                                                     
10699 root      20   0 14.1g 1.0g 7820 S  0.3  3.1  13:49.94 java                                                                                                     
26759 root      20   0 14.1g 1.0g 7820 S  0.3  3.1  17:55.61 java                                                                                                     
10649 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:00.00 java                                                                                                     
10651 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:16.30 java                                                                                                     
10652 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:57.89 java                                                                                                     
10653 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:45.38 java                                                                                                     
10654 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:58.80 java                                                                                                     
10656 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:36.32 java                                                                                                     
10657 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:37.35 java                                                                                                     
10659 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 145:52.16 java                                                                                                     
10660 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 215:13.65 java                                                                                                     
10661 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:54.98 java                                                                                                     
10662 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:16.42 java                                                                                                     
10663 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:00.00 java                                                                                                     
10664 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:43.72 java                                                                                                     
10665 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:39.28 java                                                                                                     
10666 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:48.19 java                                                                                                     
10667 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:48.78 java                                                                                                     
10668 root      20   0 14.1g 1.0g 7820 S  0.0  3.1  12:33.57 java                                                                                                     
10669 root      20   0 14.1g 1.0g 7820 S  0.0  3.1  29:06.31 java                                                                                                     
10680 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:32.68 java                                                                                                     
10681 root      20   0 14.1g 1.0g 7820 S  0.0  3.1 133:06.53 java                                                                                                     
10693 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:44.65 java                                                                                                     
10694 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:27.55 java                                                                                                     
10698 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:01.87 java                                                                                                     
10701 root      20   0 14.1g 1.0g 7820 S  0.0  3.1  11:48.38 java                                                                                                     
10704 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   2:52.53 java                                                                                                     
10706 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:00.00 java                                                                                                     
10709 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:00.74 java                                                                                                     
10710 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   1:05.78 java                                                                                                     
10711 root      20   0 14.1g 1.0g 7820 S  0.0  3.1   0:00.00 java        

查看进程的详细信息

jstack  10649
com.alibaba.nacos.client.Worker.longPolling.fixed-nacos.geexek.com" #132 daemon prio=5 os_prio=0 tid=0x00007f3cec1d1000 nid=0x2bd9 waiting on condition [0x00007f3dca4e7000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005cd6a2c88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1081)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

"com.alibaba.nacos.client.Worker.longPolling.fixed-nacos.geexek.com-1bc7c9a2-3cd3-4223-bf3d-17c10a8a501b" #125 daemon prio=5 os_prio=0 tid=0x00000000008ed000 nid=0x2b8b waiting on condition [0x00007f3dca5e8000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005ca8d08a0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1081)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

"com.alibaba.nacos.client.Worker.longPolling.fixed-nacos.geexek.com" #123 daemon prio=5 os_prio=0 tid=0x00007f3d18012000 nid=0x2b88 waiting on condition [0x00007f3dca6e9000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005cd6a2c88> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

"DataPublisher" #121 daemon prio=5 os_prio=0 tid=0x00007f3d302ea000 nid=0x2b57 waiting on condition [0x00007f3dca7ea000]
   java.lang.Thread.State: TIMED_WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005cd164e80> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

"RibbonApacheHttpClientConfiguration.connectionManagerTimer" #120 daemon prio=5 os_prio=0 tid=0x00007f3d30203000 nid=0x2b56 in Object.wait() [0x00007f3dca8eb000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.util.TimerThread.mainLoop(Timer.java:552)
	- locked <0x00000005cd1f52f0> (a java.util.TaskQueue)
	at java.util.TimerThread.run(Timer.java:505)

"hystrix-news-service-1" #119 daemon prio=5 os_prio=0 tid=0x00007f3cdd377000 nid=0x2b54 waiting on condition [0x00007f3dca9ec000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005cd741dd8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
	at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

"HystrixTimer-1" #118 daemon prio=5 os_prio=0 tid=0x00007f3cdd352800 nid=0x2b53 waiting on condition [0x00007f3dcaaed000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x00000005cd731878> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1081)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

jconse的图形化界面的使用

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MonkeyKing.sun

对你有帮助的话,可以打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值