-
Notifications
You must be signed in to change notification settings - Fork 54
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
HTTP fails and stops the container #169
Comments
Hello you can disable http and exec httpd manually to see the error and debug. Don't hesitate to see closed issues, it sounds familiar to me. |
Hi, thank you for your hints. the thttpd is killed by OOM killer: [Fr Mai 3 09:51:25 2024] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/system.slice/docker-8bd35660a3190bbe7f501e1a3a8fc0226f392271f22e2fd86eefab8567427932.scope,task=thttpd,pid=2701529,uid=65534
[Fr Mai 3 09:51:25 2024] Out of memory: Killed process 2701529 (thttpd) total-vm:180355452kB, anon-rss:51083712kB, file-rss:320kB, shmem-rss:0kB, UID:65534 pgtables:100020kB oom_score_adj:0 It works by specifying ulimit according to #107 (comment) In my case, it's adding services:
fr24feed-piaware:
...
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000 to the docker compose file. Interestingly, the adding this actually lower the limit, before:
after:
The difference in on "open files" and "max user processes". and thttpd actually engages far less memory while running:
I'm quite confused why this works... and also why thttpd allocates so much memory in that condition. |
I would suggest mentioning it in your README. You may close the issue if you find it unnecessary. |
Ahh I see the Could you please explain why the number 1048576 is chosen? |
Yes, it was for fr24, if I remember it was the max value ? |
I see. What I figured out:
I think the proper solution here is to set a lower limit. In this case I believe 1024 is far beyond enough. |
Specifications
Expected Behavior
With
SERVICE_ENABLE_HTTP=true
one should be able to access something in the browser via binded address.Actual Behavior
The container runs normally with
SERVICE_ENABLE_HTTP=false
. But if I enable it, the container yields:and exits.
Steps to Reproduce the Problem
I have made sure that the port is not engaged. Is there anyway to print more verbose log?
The text was updated successfully, but these errors were encountered: