Comments (3)
There's 2 different timeouts:
- the connection pool timeout. Komga uses a connection pool, with a default of 1 connection. If multiple threads want to access the DB at the same time, they need to wait for a connection to be available from the pool.
- the sqlite busy_handler timeout. When a DB connection is trying to access the DB while another connection is locking the DB (in case of a write), the connection will wait up to that timeout to retry.
What you are experiencing is a connection pool timeout, which is set at 30s and cannot be changed by configuration as of now.
if you run Komga on low-end hardware, i would suggest that you:
- lower the number of task threads to a minimum like 1 (by default it is 8, which is probably too high for some cases)
- set the pool-size to 1 more than the number of task threads (so 2). This will leave some room to breathe for the API when requesting data.
from komga.
I've followed your recommendation concerning the settings sadly I still have timeouts, the NAS is not the best hardware for speed.
Feel free to close this issue if you don't want to expose the second settings in configuration, not much can be done here.
from komga.
Exposing the pool timeout would probably not lead to any improvement, it would just delay the inevitable.
I'd prefer trying to attempt fixing the bottlenecks, some queries might need optimization.
Could you share a log file so I can maybe spot where the issue happens?
Can you also provide some info on how many items are in the db (metrics tab would show that), and the db size in gb.
from komga.
Related Issues (20)
- Add a "view all" button to the book strip view in Recommended page and search results
- Disable bounce when reaching web page end on iOS ipadOS devices
- Set poster from ComicInfo.xml metadata rather than first page HOT 1
- Remove from collection or read list in series/book page
- footer text on small screen get pushed up into main body text
- Can't edit series metadata HOT 27
- web ui: Find and go to page option for epub. HOT 1
- Search Authors automatically when searching HOT 1
- Sub-title display field for series
- Epub reader to highlight text (to serve as bookmarks) or just bookmark pages
- Search for books with COMMENT
- ePub: Cover support for ePub files generated by older versions of Sigil HOT 1
- Refresh metadata does not update removed metadata from files HOT 1
- Allow read lists to use first/last book as cover image globally
- Allow decimal number usage for StoryArcNumber element in ComicInfo.xml HOT 3
- When OAuth2 login is enabled, SERVER_SERVLET_SESSION_TIMEOUT seems not to take effect properly HOT 7
- Add page margins option in the webtoon mode
- Komga doesn't log unauthenticated requests HOT 1
- Komga doesn't log Tomcat errors HOT 2
- files not analyzed on mac HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from komga.