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

【建议】区分console模式和定时任务模式 #474

Open
RayWangQvQ opened this issue Mar 4, 2023 · 1 comment
Open

【建议】区分console模式和定时任务模式 #474

RayWangQvQ opened this issue Mar 4, 2023 · 1 comment

Comments

@RayWangQvQ
Copy link
Owner

建议内容:

console是单次运行的,运行完指定的runTasks,就结束。

定时任务模式启动后不会终止进程,由hangfire或quzrtz触发定时运行不同的runTasks。

前者适用于手动运行,或依赖外部任务调度系统(如青龙、云函数)触发的运行;
后者适用于docker等容器化运行。

@xixici
Copy link

xixici commented Aug 8, 2023

这个是不是导致内存增长的主因,我的内存棘突:

root     3204376  0.0  4.9 2623192 191004 pts/0  Sl   Jul31   0:57 dotnet run
root      621222  0.0  4.9 2628420 190152 pts/0  Sl   Jul29   1:08 dotnet run
root     2728611  0.0  4.6 2618496 178528 pts/0  Sl   Jul30   1:00 dotnet run
root      432085  0.0  4.5 2604940 174748 pts/0  Sl   Aug03   0:40 dotnet run
root     3075339  0.0  4.1 2597996 158080 pts/0  Sl   Aug05   0:27 dotnet run
root     4040681  0.0  4.0 2593444 155472 pts/0  Sl   Aug07   0:16 dotnet run
root      329176  0.0  4.0 2588536 154732 pts/0  Tl   00:05   0:06 dotnet run
root     3675909  0.0  3.9 2586592 151652 pts/0  Tl   Aug01   0:05 dotnet run
root     3556889  0.0  3.7 2586408 142256 pts/0  Tl   Aug06   0:05 dotnet run
root     4150327  0.0  3.7 2586460 142256 pts/0  Tl   Aug02   0:05 dotnet run
root     2594938  0.0  3.6 2586364 140040 pts/0  Tl   Aug04   0:05 dotnet run
root     3075434  0.0  2.2 2447632 84688 pts/0   Tl   Aug05   0:04 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root      142148  0.0  2.1 2450288 83552 pts/0   Tl   Jul28   0:05 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root     3204454  0.0  2.1 2447248 82964 pts/0   Tl   Jul31   0:05 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root      621291  0.0  2.1 2448708 82700 pts/0   Tl   Jul29   0:04 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root      432182  0.0  2.1 2447156 82080 pts/0   Tl   Aug03   0:04 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root     2728682  0.0  2.1 2447260 82008 pts/0   Tl   Jul30   0:05 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console
root     4040772  0.0  2.1 2448840 81972 pts/0   Tl   Aug07   0:04 /ql/data/repo/RayWangQvQ_BiliBiliToolPro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console

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

No branches or pull requests

2 participants