可以看到连接到数据库的机器名为perass: PROCESS 1234表示是JDBC的进程 查询SQL: select username, machine, status, prev_sql_addr, prev_hash_value, prev_sql_id, process, count(*) from v$session group by
18 commands to monitor network bandwidth on Linux server – BinaryTides https://www.binarytides.com/linux-commands-monitor-network/ yum install iptraf iptraf iptraf-ng 网卡 ip 端口 监控 netstat linux win [root@hadoop2 ~]# netstat Active Internet connect
前言 现在项目组基本都用Springboot,每个服务占用一个端口号,有时需要选择性的关闭,但在任务管理器上他们的名称都是java.exe,无法区分,这才学以致用. killPort.sh 作用:根据端口号查询PID(process id),再根据PID杀死进程 #!/bin/bash if [[ "$1" = "" ]] then echo "port num must not be null" exit 2 fi pidInfo=`netst
java检测端口号是否被占用的工具类: package com.frank.util; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; public class NetUtil { /*** * true:already in using false:not using * @param port