Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Show state at info page

Alexander4dab37f426d1
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 88eb45a947e..e63a2c3f61c 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -85,6 +85,7 @@ class AdminController < ApplicationController
@checklist += plaintext_extraction_checks
@checklist += admin_information_hook_checks
@checklist += image_conversion_checks
+ @checklist += jemalloc_active_checks
@storage_information = OpenProject::Storage.mount_information
end
@@ -127,6 +128,15 @@ class AdminController < ApplicationController
[[:"image_conversion.imagemagick", image_conversion_libs_available?]]
end
+ def jemalloc_active_checks
+ [[:"admin.jemalloc_allocator", jemalloc_libs_active?]]
+ end
+
+ def jemalloc_libs_active?
+ Open3.capture2e({'MALLOC_CONF' => 'true'}, "ruby", "-e", "exit").first.include?("jemalloc")
+ rescue StandardError
+ false
+ end
def image_conversion_libs_available?
Open3.capture2e("convert", "-version").first.include?("ImageMagick")
rescue StandardError
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 68940df6e0c..45549702d68 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -88,6 +88,7 @@ en:
contact: "Contact us for a demo"
enterprise_info_html: "is an Enterprise <span class='spot-icon spot-icon_inline spot-icon_enterprise-addons'></span> add-on."
upgrade_info: "Please upgrade to a paid plan to activate and start using it in your team."
+ jemalloc_allocator: Jemalloc memory allocator
journal_aggregation:
explanation:
text: "Individual actions of a user (e.g. updating a work package twice) are aggregated into a single action if their age difference is less than the specified timespan. They will be displayed as a single action within the application. This will also delay notifications by the same amount of time reducing the number of emails being sent and will also affect %{webhook_link} delay."