Closed lowking closed 6 months ago
3ddd16b7449b2d9e2304301526f64889dba78be9
Ubuntu
x86
我安装了pmcaptcha,也就只用这个插件,但是过段时间机器人就没反应了,使用top查看发现内存占满了,怀疑程序出现内存泄漏
希望内存占用正常
内存占满了
No response
root@PagerMaid-pyro:/var/lib/pagermaid_pyro# cat /var/log/syslog Feb 5 00:00:21 PagerMaid-pyro systemd[1]: logrotate.service: Succeeded. Feb 5 00:00:21 PagerMaid-pyro systemd[1]: Finished Rotate log files. Feb 5 00:00:33 PagerMaid-pyro systemd[1]: man-db.service: Succeeded. Feb 5 00:00:33 PagerMaid-pyro systemd[1]: Finished Daily man-db regeneration. Feb 5 00:47:01 PagerMaid-pyro CRON[6273]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 01:05:50 PagerMaid-pyro systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs... Feb 5 01:06:04 PagerMaid-pyro systemd[1]: ua-timer.service: Succeeded. Feb 5 01:06:04 PagerMaid-pyro systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs. Feb 5 01:47:01 PagerMaid-pyro CRON[6286]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 02:26:50 PagerMaid-pyro systemd[1]: Starting Message of the Day... Feb 5 02:26:50 PagerMaid-pyro systemd[1]: motd-news.service: Succeeded. Feb 5 02:26:51 PagerMaid-pyro systemd[1]: Finished Message of the Day. Feb 5 02:47:01 PagerMaid-pyro CRON[6293]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 03:01:01 PagerMaid-pyro CRON[6297]: (root) CMD (reboot) Feb 5 03:01:02 PagerMaid-pyro postfix/pickup[6289]: 66311E8E: uid=0 from=<root> Feb 5 03:01:02 PagerMaid-pyro postfix/cleanup[6300]: 66311E8E: message-id=<20240204190102.66311E8E@PagerMaid-pyro.localdomain> Feb 5 03:01:02 PagerMaid-pyro postfix/qmgr[352]: 66311E8E: from=<root@PagerMaid-pyro.localdomain>, size=610, nrcpt=1 (queue active) Feb 5 03:01:03 PagerMaid-pyro postfix/local[6302]: 66311E8E: to=<root@PagerMaid-pyro.localdomain>, orig_to=<root>, relay=local, delay=1.8, delays=1.1/0.24/0/0.5, dsn=2.0.0, status=sent (delivered to mailbox) Feb 5 03:01:03 PagerMaid-pyro postfix/qmgr[352]: 66311E8E: removed Feb 5 03:05:01 PagerMaid-pyro CRON[6305]: (root) CMD (test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r) Feb 5 03:47:02 PagerMaid-pyro CRON[6309]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 04:47:02 PagerMaid-pyro CRON[6313]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 05:37:50 PagerMaid-pyro systemd[1]: Starting Daily apt download activities... Feb 5 05:37:51 PagerMaid-pyro systemd[1]: apt-daily.service: Succeeded. Feb 5 05:37:51 PagerMaid-pyro systemd[1]: Finished Daily apt download activities. Feb 5 05:47:01 PagerMaid-pyro CRON[6339]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 06:11:01 PagerMaid-pyro CRON[6343]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )) Feb 5 06:44:01 PagerMaid-pyro CRON[6406]: (root) CMD ( test -x /etc/cron.daily/popularity-contest && /etc/cron.daily/popularity-contest --crond) Feb 5 06:47:01 PagerMaid-pyro CRON[6409]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 06:49:50 PagerMaid-pyro systemd[1]: Starting Daily apt upgrade and clean activities... Feb 5 06:49:50 PagerMaid-pyro systemd[1]: apt-daily-upgrade.service: Succeeded. Feb 5 06:49:50 PagerMaid-pyro systemd[1]: Finished Daily apt upgrade and clean activities. Feb 5 07:21:50 PagerMaid-pyro systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs... Feb 5 07:21:51 PagerMaid-pyro systemd[1]: ua-timer.service: Succeeded. Feb 5 07:21:51 PagerMaid-pyro systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs. Feb 5 07:47:01 PagerMaid-pyro CRON[6444]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 08:47:01 PagerMaid-pyro CRON[6449]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 09:47:01 PagerMaid-pyro CRON[6453]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 10:47:01 PagerMaid-pyro CRON[6458]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 11:47:01 PagerMaid-pyro CRON[6462]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 12:46:50 PagerMaid-pyro systemd[1]: Starting Message of the Day... Feb 5 12:46:50 PagerMaid-pyro systemd[1]: motd-news.service: Succeeded. Feb 5 12:46:50 PagerMaid-pyro systemd[1]: Finished Message of the Day. Feb 5 12:47:01 PagerMaid-pyro CRON[6468]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 12:54:50 PagerMaid-pyro systemd[1]: Starting Daily apt download activities... Feb 5 12:54:50 PagerMaid-pyro systemd[1]: apt-daily.service: Succeeded. Feb 5 12:54:50 PagerMaid-pyro systemd[1]: Finished Daily apt download activities. Feb 5 13:47:01 PagerMaid-pyro CRON[6494]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 14:04:50 PagerMaid-pyro systemd[1]: Starting Ubuntu Advantage Timer for running repeated jobs... Feb 5 14:04:50 PagerMaid-pyro systemd[1]: ua-timer.service: Succeeded. Feb 5 14:04:50 PagerMaid-pyro systemd[1]: Finished Ubuntu Advantage Timer for running repeated jobs. Feb 5 14:47:01 PagerMaid-pyro CRON[6507]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 15:47:01 PagerMaid-pyro CRON[6512]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 16:47:01 PagerMaid-pyro CRON[6516]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Created slice User Slice of UID 0. Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Starting User Runtime Directory /run/user/0... Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Finished User Runtime Directory /run/user/0. Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Starting User Manager for UID 0... Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Reached target Paths. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Reached target Timers. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Starting D-Bus User Message Bus Socket. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on GnuPG network certificate management daemon. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers). Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on GnuPG cryptographic agent and passphrase cache (restricted). Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on GnuPG cryptographic agent (ssh-agent emulation). Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on GnuPG cryptographic agent and passphrase cache. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on REST API socket for snapd user session agent. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Listening on D-Bus User Message Bus Socket. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Reached target Sockets. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Reached target Basic System. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Reached target Main User Target. Feb 5 17:35:13 PagerMaid-pyro systemd[6523]: Startup finished in 145ms. Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Started User Manager for UID 0. Feb 5 17:35:13 PagerMaid-pyro systemd[1]: Started Session 82342 of user root.
不知道是不是内存给太少了,旧版就没问题,我提升下内存试试看
请确保您已阅读以上注意事项,并勾选下方的确认框。
PagerMaid 版本 (或 Commit Id)
3ddd16b7449b2d9e2304301526f64889dba78be9
运行环境
Ubuntu
运行架构
x86
重现步骤
我安装了pmcaptcha,也就只用这个插件,但是过段时间机器人就没反应了,使用top查看发现内存占满了,怀疑程序出现内存泄漏
期望的结果是什么?
希望内存占用正常
实际的结果是什么?
内存占满了
简单的复现代码/链接(可选)
No response
日志记录(可选)
补充说明(可选)