TxCleanupService* thread created for each cacheable Hibernate entity in EAP 6

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7
  • Hibernate
  • Infinispan
    • 5
    • 8

Issue

Thread dumps show that for each entity marked @Cacheable, there is created a thread with a name like the following

TxCleanupService,<enterprise_application_archive>/<war_file>#<persistence_unit_name>.<package>.<entity_name>,local

Resolution

This is expected behavior but the behavior has been altered (reducing thread counts) in:

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.