Details
Description
For an instance, admin:list will write underlying cfg file 9 times for each instance, that said, if we have 3 child instance with 1 root instance, "admin:list" will cause 36 times file write which is a significant performance lost as well as more chance to corrupt the cfg file.
For some operations in AdminService like get***Port, getInstance, getStatus, which are read-only operations, we should avoid writing back to the cfg file after read
Attachments
Issue Links
- is duplicated by
-
KARAF-3218 Sometimes instance.properties or org.apache.karaf.management.cfg or org.apache.karaf.shell.cfg becomes zero size or contents are not fully populated
- Resolved