Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6864

Magnolia registers MBeans at startup but does not unregister them on shutdown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 5.3, 5.4, 5.5
    • None
    • None

    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)
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD