meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:sw:openproject:performance [2024/09/09 12:26] – niziak | linux:sw:openproject:performance [2025/08/05 12:00] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== performance ====== | ====== performance ====== | ||
+ | |||
+ | ===== pgsql vacuum ===== | ||
+ | |||
+ | <code bash> | ||
+ | su - postgres | ||
+ | "/ | ||
+ | "/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Default options ===== | ||
+ | |||
Default configuration: | Default configuration: | ||
Line 10: | Line 22: | ||
</ | </ | ||
+ | [[https:// | ||
+ | |||
+ | Mind, even just for 5 users we do recommend 2 web workers as each page may require multiple requests to be made simultaneously. Having just one will work, but pages may take longer to finish loading. | ||
+ | | ||
[[https:// | [[https:// | ||
<code bash> | <code bash> | ||
openproject config:set OPENPROJECT_WEB_WORKERS=4 | openproject config:set OPENPROJECT_WEB_WORKERS=4 | ||
+ | openproject configure | ||
+ | # or | ||
+ | openproject restart web | ||
+ | </ | ||
+ | |||
+ | ===== Minimize memory ===== | ||
+ | |||
+ | Run Puma in single-mode (workers = 0) in order to reduce memory overhead. | ||
+ | |||
+ | <file bash / | ||
+ | export OPENPROJECT_WEB_WORKERS=" | ||
+ | export OPENPROJECT_WEB_MIN__THREADS=" | ||
+ | export OPENPROJECT_WEB_MAX__THREADS=" | ||
+ | # Settings this by env also works: | ||
+ | #expprt RAILS_MIN_THREADS=" | ||
+ | #export RAILS_MAX_THREADS=" | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
openproject configure | openproject configure | ||
# or | # or |