[MAGNOLIA-6864] Magnolia registers MBeans at startup but does not unregister them on shutdown Created: 08/Nov/16  Updated: 09/Nov/16

Status: Open
Project: Magnolia
Component/s: None
Affects Version/s: 5.3, 5.4, 5.5
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   
  • info.magnolia.stats.JCRStats#JCRStats
  • info.magnolia.module.cache.ehcache.EhCacheFactory#start

As this might not be a problem when you shutdown JVM with the instance, this is a problem when deploying multiple times in the same JVM.
2016-11-08 13:36:08,123 INFO  info.magnolia.cms.util.MBeanUtil                  : MBean 'Magnolia:type=JCRStats,domain=magnoliaPublic.war' already exists

[8.11.16 11:28:45:754 SEČ] 00000263 SystemOut     O 2016-11-08 11:28:45,751 ERROR info.magnolia.module.ModuleManagerImpl            : Can't start module cache
net.sf.ehcache.CacheException: javax.management.InstanceAlreadyExistsException: net.sf.ehcache:cell=ajuran-HP-ProBook-6560bNode04Cell,name=cache-on-author,type=CacheManager,node=ajuran-HP-ProBook-6560bNode04,process=server1
  at net.sf.ehcache.management.ManagementService.init(ManagementService.java:246)

Generated at Mon Feb 12 04:18:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.