Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apphub always cpu large usage #493

Open
chendelin1982 opened this issue May 14, 2024 · 5 comments
Open

apphub always cpu large usage #493

chendelin1982 opened this issue May 14, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@chendelin1982
Copy link
Contributor

chendelin1982 commented May 14, 2024

What type of your feature request?

docker stats websoft9-apphub

image

@chendelin1982 chendelin1982 added the enhancement New feature or request label May 14, 2024
@qiaofeng1227
Copy link
Contributor

gitea cpu is very small.

@zhaojing1987
Copy link
Contributor

主要原因是 "我的应用" 页面 每5秒刷新一次获取所有安装的app,注销cockpit或者重新登录后不进入 我的应用 时,CPU占用正常:
1715666233624

@qiaofeng1227
Copy link
Contributor

image
4c16g vm,page refresh

@qiaofeng1227
Copy link
Contributor

Webhooks 是一种允许应用程序提供实时信息的机制,它通过HTTP回调(即,HTTP POST请求)来实现,当某个事件发生时,信息会被推送到指定的URL。在您的场景中,后端系统可以在新的应用程序安装时触发一个Webhook事件,向前端系统发送通知。

@zhaojing1987
Copy link
Contributor

发现(基础环境基于开发机测试):
1、在python的docker容器中运行最简单的输出语句:cpu 高达 2%,当使用python的cli工具click开发一个最简单的输出语句cli时,cpu 高达 7%;
2、当多个用户同时登录使用时,特别是每五秒发起一次请求时,cpu 会更高,甚至会超过100%;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants