Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1937

Stateful session beans don't passivate in wildfly-swarm

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.12.1, 2018.3.3
    • Fix Version/s: 2018.5.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5
    • Steps to Reproduce:
      Hide

      1 - Grab a copy of the test project from https://github.com/Dhoke/wildfly-swarm-ejb-passivation
      2 - Run mvn wildfly-swarm:run in the project directory
      3 - Make a few calls to localhost:8080/rest/service
      4 - Observe the logs.

      On our prodcution machines and my personal workstations the println statements in MyBeanImpl.ejbPassivate() and MyBeanImpl.ejbRemove() never appear.

      Show
      1 - Grab a copy of the test project from https://github.com/Dhoke/wildfly-swarm-ejb-passivation 2 - Run mvn wildfly-swarm:run in the project directory 3 - Make a few calls to localhost:8080/rest/service 4 - Observe the logs. On our prodcution machines and my personal workstations the println statements in MyBeanImpl.ejbPassivate() and MyBeanImpl.ejbRemove() never appear.

      Description

      When using stateful session beans in wildfly-swarm the EJB container doesn't appear to ever passivate the beans. As a result the instantiated beans don't get removed, pile up in memory and eventually bring the server down.

      Our configuration includes:

      <swarm.ejb.file-passivation-stores.KEY.idle-timeout>5</swarm.ejb.file-passivation-stores.KEY.idle-timeout>
      and
      <swarm.ejb.file-passivation-stores.KEY.max-size>5</swarm.ejb.file-passivation-stores.KEY.max-size>

      but neither seem to have any effect. I did wonder if I needed to replace 'KEY' with some other value, but there was no indication of that in the documentation.

      I've included a simple test application to demonstrate the problem mimicking our set-up in the following GIT repository:

      https://github.com/Dhoke/wildfly-swarm-ejb-passivation

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                johnAls John Alstrom
                Reporter:
                dhoke Michael Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: