[Feedback on issues] 出现窗口假死怎么办
Tofloor
poster avatar
157******96
deepin
2026-04-10 11:10
Author

电脑配置:华为Matebook 14s 2022款笔记本,CPU为Intel core® i5-12500H,16GRAM+512G硬盘,系统为Deepin V25(25.0.10社区版)+Windows10 22H2(自己极限精简的版本,在安装部署阶段禁用了一堆的Windows相关的自带组件)

问题描述:电脑在运行某个软件的时候,不管是Windows还是Linux软件,会有那么一段时间出现窗口假死的现象,这种现象多发生于当我退出某一个最大化窗口之时,当我退出某一个最大化的窗口的时候,想要去控制其他的窗口,那么这个窗口就会有极大概率出现假死,无法进行任何点击操作,只能够通过敲击ESC按键之后才能够继续操作,就算是敲击了ESC按键,那么也会出现窗口可以进行点击,但是无法拖动现象。且第二种现象的出现包含我说的退出某一个最大化窗口,和单纯的挂在桌面上久了之后的情况。那么请教一下社区的各位大佬,我这边的话要怎么处理,是通过在终端输入什么指令还是说别的操作才能够继续运行?

Reply Favorite View the author
All Replies
avatar
9136
deepin
2026-04-10 12:11
#1

用QQ了吗,版本是哪个?感觉跟我遇到的应用x11连接泄漏问题有点类似。

Reply View the author
avatar
157******96
deepin
2026-04-10 14:23
#2
9136

用QQ了吗,版本是哪个?感觉跟我遇到的应用x11连接泄漏问题有点类似。

用了,而且还有一种情况就是,有的时候我不用QQ也会出现这样子的问题,很烦

Reply View the author
avatar
157******96
deepin
2026-04-10 14:24
#3
9136

用QQ了吗,版本是哪个?感觉跟我遇到的应用x11连接泄漏问题有点类似。

image.png

Reply View the author
avatar
9136
deepin
2026-04-10 15:00
#4
#!/bin/bash

echo "1. 查找所有与 X11-unix 相关的连接:"
ss -p | grep X11-unix

echo
echo "2. 统计每个进程的连接数量:"

# 提取所有本地端口号
ports=$(ss -p | grep X11-unix | awk '{print $6}' | sed 's/.*://')

declare -A pid_count

for port in $ports; do
    # 查找连接到该显示端口的进程
    while IFS= read -r line; do
        # 提取PID
        pid=$(grep -o 'pid=[0-9]*' <<<"$line" | head -n1 | cut -d= -f2)
        [ -z "$pid" ] && continue
    
        # 获取进程名(更可靠的方式)
        pname=$(ps -p "$pid" -o comm= 2>/dev/null | tr -d '\n')
        [ -z "$pname" ] && pname="unknown"
    
        # 统计
        key="$pid:$pname"
        ((pid_count["$key"]++))
    done < <(ss -p | grep "$port " | grep -v X11-unix)
done

# 计算总连接数
total_connections=0
for count in "${pid_count[@]}"; do
    ((total_connections += count))
done

echo "总连接数: $total_connections"
echo

# 按连接数从高到低排列输出统计结果
echo "各进程连接数统计(按连接数从高到低排列):"
for key in "${!pid_count[@]}"; do
    echo "${pid_count[$key]} $key"
done | sort -nr | while read count key; do
    echo "进程: $key, 连接数: $count"
done

echo
echo "总结:"
echo "- 总进程数: ${#pid_count[@]}"
echo "- 总连接数: $total_connections" 


#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port
#do sudo ss -p -x | grep -w $port | grep -v X11-unix
#done | grep -Eo '".+"' | sort | uniq -c | sort -rn

#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn

终端运行下这个脚本,看是不是有应用泄露了x11连接

Reply View the author
avatar
157******96
deepin
2026-04-11 09:58
#5
9136
#!/bin/bash

echo "1. 查找所有与 X11-unix 相关的连接:"
ss -p | grep X11-unix

echo
echo "2. 统计每个进程的连接数量:"

# 提取所有本地端口号
ports=$(ss -p | grep X11-unix | awk '{print $6}' | sed 's/.*://')

declare -A pid_count

for port in $ports; do
    # 查找连接到该显示端口的进程
    while IFS= read -r line; do
        # 提取PID
        pid=$(grep -o 'pid=[0-9]*' <<<"$line" | head -n1 | cut -d= -f2)
        [ -z "$pid" ] && continue
    
        # 获取进程名(更可靠的方式)
        pname=$(ps -p "$pid" -o comm= 2>/dev/null | tr -d '\n')
        [ -z "$pname" ] && pname="unknown"
    
        # 统计
        key="$pid:$pname"
        ((pid_count["$key"]++))
    done < <(ss -p | grep "$port " | grep -v X11-unix)
done

# 计算总连接数
total_connections=0
for count in "${pid_count[@]}"; do
    ((total_connections += count))
done

echo "总连接数: $total_connections"
echo

# 按连接数从高到低排列输出统计结果
echo "各进程连接数统计(按连接数从高到低排列):"
for key in "${!pid_count[@]}"; do
    echo "${pid_count[$key]} $key"
done | sort -nr | while read count key; do
    echo "进程: $key, 连接数: $count"
done

echo
echo "总结:"
echo "- 总进程数: ${#pid_count[@]}"
echo "- 总连接数: $total_connections" 


#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port
#do sudo ss -p -x | grep -w $port | grep -v X11-unix
#done | grep -Eo '".+"' | sort | uniq -c | sort -rn

#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn

终端运行下这个脚本,看是不是有应用泄露了x11连接

好,我等一下干完事情了以后去运行一下,然后再来把问题反馈给你

Reply View the author
avatar
157******96
deepin
2026-04-13 08:16
#6
It has been deleted!
avatar
157******96
deepin
2026-04-13 08:17
#7
9136
#!/bin/bash

echo "1. 查找所有与 X11-unix 相关的连接:"
ss -p | grep X11-unix

echo
echo "2. 统计每个进程的连接数量:"

# 提取所有本地端口号
ports=$(ss -p | grep X11-unix | awk '{print $6}' | sed 's/.*://')

declare -A pid_count

for port in $ports; do
    # 查找连接到该显示端口的进程
    while IFS= read -r line; do
        # 提取PID
        pid=$(grep -o 'pid=[0-9]*' <<<"$line" | head -n1 | cut -d= -f2)
        [ -z "$pid" ] && continue
    
        # 获取进程名(更可靠的方式)
        pname=$(ps -p "$pid" -o comm= 2>/dev/null | tr -d '\n')
        [ -z "$pname" ] && pname="unknown"
    
        # 统计
        key="$pid:$pname"
        ((pid_count["$key"]++))
    done < <(ss -p | grep "$port " | grep -v X11-unix)
done

# 计算总连接数
total_connections=0
for count in "${pid_count[@]}"; do
    ((total_connections += count))
done

echo "总连接数: $total_connections"
echo

# 按连接数从高到低排列输出统计结果
echo "各进程连接数统计(按连接数从高到低排列):"
for key in "${!pid_count[@]}"; do
    echo "${pid_count[$key]} $key"
done | sort -nr | while read count key; do
    echo "进程: $key, 连接数: $count"
done

echo
echo "总结:"
echo "- 总进程数: ${#pid_count[@]}"
echo "- 总连接数: $total_connections" 


#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port
#do sudo ss -p -x | grep -w $port | grep -v X11-unix
#done | grep -Eo '".+"' | sort | uniq -c | sort -rn

#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn

终端运行下这个脚本,看是不是有应用泄露了x11连接

看了以下,dde链接的进程数有十三个,有点怀疑是dde的问题

Reply View the author
avatar
157******96
deepin
2026-04-13 08:18
#8
9136
#!/bin/bash

echo "1. 查找所有与 X11-unix 相关的连接:"
ss -p | grep X11-unix

echo
echo "2. 统计每个进程的连接数量:"

# 提取所有本地端口号
ports=$(ss -p | grep X11-unix | awk '{print $6}' | sed 's/.*://')

declare -A pid_count

for port in $ports; do
    # 查找连接到该显示端口的进程
    while IFS= read -r line; do
        # 提取PID
        pid=$(grep -o 'pid=[0-9]*' <<<"$line" | head -n1 | cut -d= -f2)
        [ -z "$pid" ] && continue
    
        # 获取进程名(更可靠的方式)
        pname=$(ps -p "$pid" -o comm= 2>/dev/null | tr -d '\n')
        [ -z "$pname" ] && pname="unknown"
    
        # 统计
        key="$pid:$pname"
        ((pid_count["$key"]++))
    done < <(ss -p | grep "$port " | grep -v X11-unix)
done

# 计算总连接数
total_connections=0
for count in "${pid_count[@]}"; do
    ((total_connections += count))
done

echo "总连接数: $total_connections"
echo

# 按连接数从高到低排列输出统计结果
echo "各进程连接数统计(按连接数从高到低排列):"
for key in "${!pid_count[@]}"; do
    echo "${pid_count[$key]} $key"
done | sort -nr | while read count key; do
    echo "进程: $key, 连接数: $count"
done

echo
echo "总结:"
echo "- 总进程数: ${#pid_count[@]}"
echo "- 总连接数: $total_connections" 


#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port
#do sudo ss -p -x | grep -w $port | grep -v X11-unix
#done | grep -Eo '".+"' | sort | uniq -c | sort -rn

#sudo ss -x src "*/tmp/.X11-unix/*"| grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn

终端运行下这个脚本,看是不是有应用泄露了x11连接

1. 查找所有与 X11-unix 相关的连接:
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 15582                            * 9846                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 50511                            * 47597                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 90364                            * 89103                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 6065                             * 18422                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 53657                            * 57700                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 49702                            * 46588                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 23721                            * 18084                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 85963                            * 84934                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 86743                            * 81188                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25201                            * 25200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 52731                            * 51780                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 23556                            * 9683                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 20951                            * 14842                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 16076                            * 46585                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11074                            * 18083                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 50096                            * 48085                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5728                             * 18022                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 21862                            * 14013                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25199                            * 25198                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1788                             * 12742                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 18778                            * 1862                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 20631                            * 1796                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 16077                            * 46586                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5913                             * 15962                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25228                            * 15963                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1807                             * 17932                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 53658                            * 57701                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      13056                                      @/tmp/.X11-unix/X0 10700                            * 3885                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4059                             * 22556                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 87359                            * 86871                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1806                             * 12799                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25230                            * 25743                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 10996                            * 4549                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1824                             * 11045                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4058                             * 4534                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 85964                            * 84935                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 15580                            * 22820                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 39905                            * 42830                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11073                            * 13015                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1820                             * 21644                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 97618                            * 88616                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 15496                            * 18757                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4072                             * 19795                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4730                             * 25666                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 83730                            * 80864                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 58463                            * 56349                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 98492                            * 96591                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4071                             * 10992                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 81260                            * 86865                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 95242                            * 85960                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5662                             * 17914                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 22553                            * 10971                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 23722                            * 13018                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 21371                            * 27900                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 23557                            * 18744                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1808                             * 20641                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11044                            * 4559                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11072                            * 20863                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4060                             * 20626                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4731                             * 14808                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11259                            * 25239                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 21653                            * 18754                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

2. 统计每个进程的连接数量:
总连接数: 62

各进程连接数统计(按连接数从高到低排列):
进程: 1665:dde-session-dae, 连接数: 13
进程: 2441:uos-ai-assistan, 连接数: 4
进程: 1766:kwin_x11, 连接数: 4
进程: 39608:msedge, 连接数: 3
进程: 39555:msedge, 连接数: 3
进程: 25074:qq, 连接数: 3
进程: 1768:kglobalacceld, 连接数: 3
进程: 14906:qq, 连接数: 3
进程: 2853:trayplugin-load, 连接数: 2
进程: 25032:qq, 连接数: 2
进程: 2447:deepin-service-, 连接数: 2
进程: 14854:qq, 连接数: 2
进程: 4408:dde-lock, 连接数: 1
进程: 40901:deepin-terminal, 连接数: 1
进程: 40669:dde-file-dialog, 连接数: 1
进程: 39246:deepin-home-dae, 连接数: 1
进程: 39215:deepin-home, 连接数: 1
进程: 3051:xdg-desktop-por, 连接数: 1
进程: 3019:dde-clipboard-d, 连接数: 1
进程: 2540:service-manager, 连接数: 1
进程: 2537:service-manager, 连接数: 1
进程: 2500:fcitx5, 连接数: 1
进程: 2464:service-manager, 连接数: 1
进程: 2343:dde-shell, 连接数: 1
进程: 2322:dde-shell, 连接数: 1
进程: 2321:dde-polkit-agen, 连接数: 1
进程: 2315:dde-file-manage, 连接数: 1
进程: 2313:dde-clipboard, 连接数: 1
进程: 1784:dde-fakewm, 连接数: 1
进程: 1738:xdg-desktop-por, 连接数: 1

总结:
- 总进程数: 30
- 总连接数: 62

Reply View the author
avatar
9136
deepin
2026-04-13 14:59
#9
157******96
1. 查找所有与 X11-unix 相关的连接:
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 15582                            * 9846                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 50511                            * 47597                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 90364                            * 89103                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 6065                             * 18422                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 53657                            * 57700                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 49702                            * 46588                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 23721                            * 18084                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 85963                            * 84934                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 86743                            * 81188                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25201                            * 25200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 52731                            * 51780                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 23556                            * 9683                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 20951                            * 14842                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 16076                            * 46585                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11074                            * 18083                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 50096                            * 48085                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5728                             * 18022                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 21862                            * 14013                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25199                            * 25198                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1788                             * 12742                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 18778                            * 1862                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 20631                            * 1796                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 16077                            * 46586                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5913                             * 15962                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25228                            * 15963                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1807                             * 17932                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 53658                            * 57701                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      13056                                      @/tmp/.X11-unix/X0 10700                            * 3885                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4059                             * 22556                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 87359                            * 86871                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1806                             * 12799                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 25230                            * 25743                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 10996                            * 4549                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1824                             * 11045                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4058                             * 4534                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 85964                            * 84935                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 15580                            * 22820                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 39905                            * 42830                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11073                            * 13015                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 1820                             * 21644                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 97618                            * 88616                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 15496                            * 18757                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4072                             * 19795                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4730                             * 25666                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 83730                            * 80864                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 58463                            * 56349                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 98492                            * 96591                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4071                             * 10992                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 81260                            * 86865                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 95242                            * 85960                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 5662                             * 17914                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 22553                            * 10971                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 23722                            * 13018                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 21371                            * 27900                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 23557                            * 18744                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 1808                             * 20641                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11044                            * 4559                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11072                            * 20863                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 4060                             * 20626                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 4731                             * 14808                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                          @/tmp/.X11-unix/X0 11259                            * 25239                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
u_str ESTAB      0      0                                           /tmp/.X11-unix/X0 21653                            * 18754                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

2. 统计每个进程的连接数量:
总连接数: 62

各进程连接数统计(按连接数从高到低排列):
进程: 1665:dde-session-dae, 连接数: 13
进程: 2441:uos-ai-assistan, 连接数: 4
进程: 1766:kwin_x11, 连接数: 4
进程: 39608:msedge, 连接数: 3
进程: 39555:msedge, 连接数: 3
进程: 25074:qq, 连接数: 3
进程: 1768:kglobalacceld, 连接数: 3
进程: 14906:qq, 连接数: 3
进程: 2853:trayplugin-load, 连接数: 2
进程: 25032:qq, 连接数: 2
进程: 2447:deepin-service-, 连接数: 2
进程: 14854:qq, 连接数: 2
进程: 4408:dde-lock, 连接数: 1
进程: 40901:deepin-terminal, 连接数: 1
进程: 40669:dde-file-dialog, 连接数: 1
进程: 39246:deepin-home-dae, 连接数: 1
进程: 39215:deepin-home, 连接数: 1
进程: 3051:xdg-desktop-por, 连接数: 1
进程: 3019:dde-clipboard-d, 连接数: 1
进程: 2540:service-manager, 连接数: 1
进程: 2537:service-manager, 连接数: 1
进程: 2500:fcitx5, 连接数: 1
进程: 2464:service-manager, 连接数: 1
进程: 2343:dde-shell, 连接数: 1
进程: 2322:dde-shell, 连接数: 1
进程: 2321:dde-polkit-agen, 连接数: 1
进程: 2315:dde-file-manage, 连接数: 1
进程: 2313:dde-clipboard, 连接数: 1
进程: 1784:dde-fakewm, 连接数: 1
进程: 1738:xdg-desktop-por, 连接数: 1

总结:
- 总进程数: 30
- 总连接数: 62

62远没达系统上限,跟我遇到的不是一个问题,可以反馈当官排查下

Reply View the author