Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-14562

GUI configurator sends too many ldap requests to external DS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: configurator, XUI
    • Labels:
      None

      Description

      Bug description

      When trying to configure external DJ using web XUI configurator, there are hundreds of requests per second to external DJ which can lead to 100 % cpu consumption

      How to reproduce the issue

      1. install DS
      2. install AM
      3. go to AM URL
      4. go through first two screens on "Configuration data store settings"
      5. count rows in DS access log (grep AM IP address)
      6. configure correctly SSL/TLS enabled, Host name, Port
      7. count rows in DS access log
      8. change root suffix
      9. count rows in DS access log
      10. wait 20 seconds
      11. count rows in DS access log
      12. tinker more with configuration page and watch DS access log row count. Or just wait and watch
      Expected behaviour
      Installation do not have too great impact on DS which can possibly be already used by other applications than AM.
      
      Current behaviour
      I was able to see 83697 requests after half an hour
      there was 100% cpu consumption and I was not able to get reply on ldapsearch request
      Then tomcat started to show error:
      
      07-Mar-2019 13:18:43.743 SEVERE [http-nio-8080-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed
       java.io.IOException: Too many open files
      	at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
      	at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:241)
      	at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:455)
      	at java.lang.Thread.run(Thread.java:745)
      
      And stopped answering requests. Also tomcat then stopped sending requests to DS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lubomir.mlich Ľubomír Mlích
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: