>> We are doing several authentications simultaniously (load testing), and most of them result in an authentication success, but some fail.
Oh, load testing.... for load testing, there are bunch of places you need to tweak your Gluu Server like tomcat you share... then comes ldap tweaking ( including indexing and memory allocation ), httpd request etc. May be we will write a doc on this issue someday for community users and publish.
For your 'failed users', you can also check ldap logs on why it's actually failing. for NPE... localhost and catalina will add few more muscles to troubleshoot issue.