![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2022
Device: none
|
Calibre-server being killed by OOM killer
Hi,
I've recently installed Calibre on a headless Ubuntu 22.04 server. My calibre-server service keeps getting killed by the OOM killer within 4 minutes of starting as stated in the systemctl status below. I'd greatly appreciate any advice to debug this problem. Code:
root@calibre:~# systemctl status calibre-server × calibre-server.service - calibre content server Loaded: loaded (/etc/systemd/system/calibre-server.service; enabled; vendor preset: enabled) Active: failed (Result: oom-kill) since Sun 2022-10-30 09:50:05 GMT; 1min 17s ago Process: 3397 ExecStartPre=/bin/sleep 30 (code=exited, status=0/SUCCESS) Process: 3398 ExecStart=/opt/calibre/calibre-server --enable-local-write --enable-auth /mnt/calibre/Books (code=kil> Main PID: 3398 (code=killed, signal=KILL) CPU: 2.445s Oct 30 09:46:14 calibre systemd[1]: Starting calibre content server... Oct 30 09:46:44 calibre systemd[1]: Started calibre content server. Oct 30 09:46:45 calibre calibre-server[3398]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-cali> Oct 30 09:46:45 calibre calibre-server[3398]: calibre server listening on 0.0.0.0:8080 Oct 30 09:46:46 calibre calibre-server[3398]: OPDS feeds advertised via BonJour at: 192.168.1.5 port: 8080 Oct 30 09:50:05 calibre systemd[1]: calibre-server.service: A process of this unit has been killed by the OOM killer. Oct 30 09:50:05 calibre systemd[1]: calibre-server.service: Main process exited, code=killed, status=9/KILL Oct 30 09:50:05 calibre systemd[1]: calibre-server.service: Failed with result 'oom-kill'. Oct 30 09:50:05 calibre systemd[1]: calibre-server.service: Consumed 2.445s CPU time. |
![]() |
![]() |
![]() |
#2 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2022
Device: none
|
More info: It's intermittent. There is a cronjob that runs a calibredb add command, and Calibre-web is running on the same machine. Aside from that though, I'm not interacting with the server at all at the moment.
Edit: typo |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Increase the amount of RAM available to the server.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 13
Karma: 10
Join Date: Oct 2022
Device: none
|
But from the looks of my container's performance summary charts, ram usage peaked at about 50% available ram. What is the guideline recommended amount of ram for system with calibre on Linux?
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If the OOM killer is being invoked then your system is running out of RAM. And there is no guideline for amount of RAM, since the RAM usage depends on what you do with the server and the size and number of the libraries you serve. Simply increase the amount of RAM till you reach a value that works with your usage patterns. For typical usage no more than a few hundred MB should be needed.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you have 4GB or 8GB, go to 16GB. If you have 16GB, go to 32GB. If you have 32GB, go to 64GB.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Keeping the devmode telnet server running when nickel is killed | nihilazo | Kobo Developer's Corner | 3 | 02-02-2021 09:55 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |
"Killer Whispers" - undercover cop investigates serial killer targeting witches | tothepoint | Self-Promotions by Authors and Publishers | 2 | 03-02-2012 05:54 PM |
Calibre/Kindle 3--killer combination! | nickredding | Calibre | 6 | 11-03-2010 04:54 PM |
calibre killed my 505 database... | flowoeB | Calibre | 3 | 07-27-2009 01:43 PM |