[GH-ISSUE #2888] debian信息多处显示错误 #1895

Closed
opened 2026-02-27 00:05:14 +03:00 by kerem · 4 comments
Owner

Originally created by @cangkuai on GitHub (Jul 19, 2023).
Original GitHub issue: https://github.com/electerm/electerm/issues/2888

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.27.5-win-x64-installer.exe

Platform detail (平台详情)

Microsoft Windows NT 10.0.22621.0 x64

What steps will reproduce the bug?(重新问题的详细步骤)

在连接debian11时内存使用比例直接不显示,Activities里面显示进程的内存使用量单位也有错误,比如占了我1.4g的一个java进程却显示之用了1.4m(其他进程也是这样不是特例)

What should have happened?(期望的结果)

显示正常

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @cangkuai on GitHub (Jul 19, 2023). Original GitHub issue: https://github.com/electerm/electerm/issues/2888 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.27.5-win-x64-installer.exe ### Platform detail (平台详情) Microsoft Windows NT 10.0.22621.0 x64 ### What steps will reproduce the bug?(重新问题的详细步骤) 在连接debian11时内存使用比例直接不显示,Activities里面显示进程的内存使用量单位也有错误,比如占了我1.4g的一个java进程却显示之用了1.4m(其他进程也是这样不是特例) ### What should have happened?(期望的结果) 显示正常 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem 2026-02-27 00:05:14 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jul 19, 2023):

可以运行

ps --no-headers -o pid,user,%cpu,size,command ax | sort -b -k3 -r

给个输出看看不,我看看格式有什么不同,以及

free -h

的输出

<!-- gh-comment-id:1641407934 --> @zxdong262 commented on GitHub (Jul 19, 2023): 可以运行 ```bash ps --no-headers -o pid,user,%cpu,size,command ax | sort -b -k3 -r ``` 给个输出看看不,我看看格式有什么不同,以及 ```bash free -h ``` 的输出
Author
Owner

@cangkuai commented on GitHub (Jul 19, 2023):

第一个命令
1092 nginx 300 2236 ps --no-headers -o pid,user,%cpu,size,command ax 1 root 0.4 18780 /sbin/init 491 root 0.1 19400 /usr/bin/vmtoolsd 404 root 0.1 17164 /lib/systemd/systemd-journald 1080 root 0.1 1324 sshd: nginx [priv] 519 root 0.0 984 dhclient -4 -v -i -pf /run/dhclient.ens192.pid -lf /var/lib/dhcp/dhclient.ens192.leases -I -df /var/lib/dhcp/dhclient6.ens192.leases ens192 810 root 0.0 948 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 807 root 0.0 932 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; 781 root 0.0 932 /lib/systemd/systemd-logind 486 systemd+ 0.0 8944 /lib/systemd/systemd-timesyncd 801 root 0.0 740 /bin/login -p -- 770 message+ 0.0 680 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only 729 root 0.0 456 /usr/sbin/cron -f 917 nginx 0.0 18876 (sd-pam) 1093 nginx 0.0 16872 sort -b -k3 -r 1086 nginx 0.0 1584 sshd: nginx@pts/0 430 root 0.0 1496 /lib/systemd/systemd-udevd

第二个命令
total used free shared buff/cache available 内存: 7.8Gi 381Mi 7.5Gi 712Ki 124Mi 7.4Gi 交换: 974Mi 0B 974Mi

<!-- gh-comment-id:1642147045 --> @cangkuai commented on GitHub (Jul 19, 2023): 第一个命令 ` 1092 nginx 300 2236 ps --no-headers -o pid,user,%cpu,size,command ax 1 root 0.4 18780 /sbin/init 491 root 0.1 19400 /usr/bin/vmtoolsd 404 root 0.1 17164 /lib/systemd/systemd-journald 1080 root 0.1 1324 sshd: nginx [priv] 519 root 0.0 984 dhclient -4 -v -i -pf /run/dhclient.ens192.pid -lf /var/lib/dhcp/dhclient.ens192.leases -I -df /var/lib/dhcp/dhclient6.ens192.leases ens192 810 root 0.0 948 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 807 root 0.0 932 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; 781 root 0.0 932 /lib/systemd/systemd-logind 486 systemd+ 0.0 8944 /lib/systemd/systemd-timesyncd 801 root 0.0 740 /bin/login -p -- 770 message+ 0.0 680 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only 729 root 0.0 456 /usr/sbin/cron -f 917 nginx 0.0 18876 (sd-pam) 1093 nginx 0.0 16872 sort -b -k3 -r 1086 nginx 0.0 1584 sshd: nginx@pts/0 430 root 0.0 1496 /lib/systemd/systemd-udevd` 第二个命令 ` total used free shared buff/cache available 内存: 7.8Gi 381Mi 7.5Gi 712Ki 124Mi 7.4Gi 交换: 974Mi 0B 974Mi`
Author
Owner

@cangkuai commented on GitHub (Jul 19, 2023):

第一个命令输出太长我就取了前面一部分,格式是一样的最后没有其他类型的输出

<!-- gh-comment-id:1642148534 --> @cangkuai commented on GitHub (Jul 19, 2023): 第一个命令输出太长我就取了前面一部分,格式是一样的最后没有其他类型的输出
Author
Owner

@zxdong262 commented on GitHub (Jul 19, 2023):

明白了,感谢反馈,将在下个版本修复

<!-- gh-comment-id:1642813523 --> @zxdong262 commented on GitHub (Jul 19, 2023): 明白了,感谢反馈,将在下个版本修复
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1895
No description provided.