Description of problem: Searching of user(s) by firstname/lastname/email leads to out of memory error when many users are present at DB. Version-Release number of selected component (if applicable): JPP 6.0.0 ER03 How reproducible: always Steps to Reproduce: 1. initialize many users in DB (tested with 1 million in JPP) (apply patches for many users improvements - https://issues.jboss.org/browse/GTNPORTAL-2745 - exoadmin.war + countPaginatedUsers) 2. go to patch management 3. search existing/non-existing user by firtname, lastname, email - after few finutes, portal fails on OOM: java.lang.OutOfMemoryError: GC overhead limit exceeded
Marek Posolda <mposolda> made a comment on jira GTNPORTAL-2746 Problem is fixed at Picketlink IDM level by tuning Hibernate query and filter by attribute values directly in HQL. Previously it was using method "filterByAttributeValues" which select all users from database and then filter them via for cycle, which was very uneffective. I am attaching file picketlink-idm-hibernate-1.4.1.CR01-SNAPSHOT.jar , which can be added into GATEIN_HOME/modules/org/gatein/lib/main/ instead of original file picketlink-idm-hibernate-*.jar. (Dependency need to be updated in GATEIN_HOME/modules/org/gatein/lib/main/module.xml)
Marek Posolda <mposolda> made a comment on jira GTNPORTAL-2746 I am not fixing jira as currently it's available only in my local github fork https://github.com/mposolda/picketlink-idm/commit/1a34e2fdce6633363f6facc8f3805a777854465d . Will be fixed when issue is backported to plidm mainstream and dependency updated in GateIn portal.
Michal Vanco <mvanco> made a comment on jira GTNPORTAL-2746 Patch verified on JPP 6.0.0 ER03, OOM issue is not present anymore and search is done at acceptable time.
Thanks Michal! I linked thus BZ with another jira GTNPORTAL-2745 which is also related to manyUsers scenario.
Marek Posolda <mposolda> updated the status of jira GTNPORTAL-2746 to Resolved
Verified at JPP 6.0.0 ER04.2