Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1510040 - Do not purge session if there are no sessions
Summary: Do not purge session if there are no sessions
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Performance
Version: 5.8.0
Hardware: x86_64
OS: Linux
Target Milestone: GA
: 5.9.0
Assignee: Keenan Brock
QA Contact: Tasos Papaioannou
Depends On:
Blocks: 1510054
TreeView+ depends on / blocked
Reported: 2017-11-06 15:15 UTC by Keenan Brock
Modified: 2018-04-17 16:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1510054 (view as bug list)
Last Closed: 2018-03-06 15:51:03 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:

Attachments (Terms of Use)

Description Keenan Brock 2017-11-06 15:15:54 UTC
Description of problem:

Every 30 seconds, we purge the sessions table. For most customers, this table is empty.
This schedules many background jobs that will never produce any work.

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. ssh to an appliance
2. cd to vmdb
3. get queue messages for the generic worker
4. extract and count the commands that were sent through the queue

ssh ...
grep 'GenericWorker::Runner#get' log/evm.log>tmp/msg
ruby -ne 'puts $_.match(/Command: \[([^\]]*)\]/)[1]' tmp/msg|sort|uniq -c|sort -nr|head

Actual results:

One of the top 10 most popular commands is Session.check_session_timeout

Expected results:

It isn't

Additional info:

Comment 2 Dave Johnson 2017-11-06 15:44:18 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 4 Tasos Papaioannou 2017-12-01 19:50:35 UTC
Verified on


  :session_store: sql

evm.log shows Session.check_session_timeout gets regularly queued.

Note You need to log in before you can comment on or make changes to this bug.