LDEV-2143 Fixing the memory problem with QA tool QaQueUserDAO was fetching the entire user table in order to get a count
After the fix a jprofiler test with multiple users fixed the memory problem
Already committed to 2.2.1 branch so also committing to head