Fórum

UserLocalServiceUtil.addUserGroupUsers Max Threads

Matthew Snider, modificado 13 Anos atrás.

UserLocalServiceUtil.addUserGroupUsers Max Threads

New Member Postagens: 17 Data de Entrada: 20/08/10 Postagens Recentes
I currently have a plug-in hook running post-login to add a group to certain user accounts using UserLocalServiceUtil.addUserGroupUsers(groupId, userIds). However, when performing performance testing (100 simultaneous users) the Apache Tomcat server reaches maxThreads (currently set to 150) and becomes unresponsive.

Has anyone else experienced this while using UserLocalServiceUtil.addUserGroupUsers()?

Some background on my issue:
Users are authenticated via LDAP and I noticed that on login, if I add a user to a custom group, these groups are removed on login. Therefore, I had to write this plugin to run to add the user back to my custom group. It works fine under the load of a few users, but fails under performance testing.
Matthew Snider, modificado 13 Anos atrás.

RE: UserLocalServiceUtil.addUserGroupUsers Max Threads

New Member Postagens: 17 Data de Entrada: 20/08/10 Postagens Recentes
It turns out that in 5.2.3, UserLocalServiceUtil.addUserGroupUsers creates a threading out problem but using UserGroupLocalServiceUtil.addUserGroup instead solves the problem.