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

restart process on mem exceed #40

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

ayushaga14
Copy link

No description provided.

main.go Outdated
@@ -659,6 +659,11 @@ func logMemoryStats() {
var m runtime.MemStats
runtime.ReadMemStats(&m)

if (m.Alloc / 1024 / 1024) > 500 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this configurable please (flag = AKTO_MEM_THRESH_RESTART) - default 500MB.

@ayushaga14 ayushaga14 force-pushed the restart_process_on_mem_exceed branch from f471d2c to 431242d Compare August 8, 2023 09:46
@ayushaga14 ayushaga14 merged commit 8791dbb into feature/filter_header Aug 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants