[GH-ISSUE #2502] 同时上传大量文件时,线程貌似没有优化导致CPU爆炸,超卡 #1611

Open
opened 2026-02-27 00:04:11 +03:00 by kerem · 4 comments
Owner

Originally created by @r0ckysec on GitHub (May 20, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2502

Electerm Version(Electerm版本)

v1.21.57

Platform detail (平台详情)

Darwin MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

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

同时上传50个文件以上

image

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

确保正常的上传速度,优化线程,防止CPU泄漏导致性能下降

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

No response

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

No response

Originally created by @r0ckysec on GitHub (May 20, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2502 ### Electerm Version(Electerm版本) v1.21.57 ### Platform detail (平台详情) Darwin MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64 ### What steps will reproduce the bug?(重新问题的详细步骤) 同时上传50个文件以上 ![image](https://user-images.githubusercontent.com/44518337/169443650-1931f995-d22f-4bde-bde9-1bfbafd82b95.png) ### What should have happened?(期望的结果) 确保正常的上传速度,优化线程,防止CPU泄漏导致性能下降 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
Author
Owner

@zengxingchen commented on GitHub (May 23, 2022):

确实是这样的,每次同时上传多个文件会爆炸卡

<!-- gh-comment-id:1134144556 --> @zengxingchen commented on GitHub (May 23, 2022): 确实是这样的,每次同时上传多个文件会爆炸卡
Author
Owner

@zengxingchen commented on GitHub (May 24, 2022):

好办法~

<!-- gh-comment-id:1135319974 --> @zengxingchen commented on GitHub (May 24, 2022): > 上 好办法~
Author
Owner

@zxdong262 commented on GitHub (May 24, 2022):

确实是会这样子,有的时候还可能会卡死,所以我每次文件一多都是打包上传

最新版本传输文件夹是自动打包传输再解压的,不用手动这么做,所以多个文件可以放文件夹传输即可

<!-- gh-comment-id:1135470825 --> @zxdong262 commented on GitHub (May 24, 2022): > 确实是会这样子,有的时候还可能会卡死,所以我每次文件一多都是打包上传 最新版本传输文件夹是自动打包传输再解压的,不用手动这么做,所以多个文件可以放文件夹传输即可
Author
Owner

@zengxingchen commented on GitHub (May 24, 2022):

确实是会这样子,有的时候还可能会卡死,所以我每次文件一多都是打包上传

最新版本传输文件夹是自动打包传输再解压的,不用手动这么做,所以多个文件可以放文件夹传输即可

刚试验了一下,很棒的优化!感谢!👍😄

<!-- gh-comment-id:1135946293 --> @zengxingchen commented on GitHub (May 24, 2022): > > 确实是会这样子,有的时候还可能会卡死,所以我每次文件一多都是打包上传 > > 最新版本传输文件夹是自动打包传输再解压的,不用手动这么做,所以多个文件可以放文件夹传输即可 刚试验了一下,很棒的优化!感谢!👍😄
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#1611
No description provided.