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

Unexpected "am_add_session_policy_cache_entry(): failed to allocate 168 bytes" under load

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Agents-4.0.0
    • Fix Version/s: Agents-4.0.0
    • Component/s: web agents
    • Labels:
    • Environment:
      Centos 6.6 / Httpd2.2 / OpenAM 12.0.1
    • Sprint:
      Sprint 96 - Team Curie, Sprint 97 - Team Curie

      Description

      Running stress test against on Httpd2.2/CentOS6.6 and OpenAM12.0.1 containing 10k policies (each one allowing user.N to access resourceN) :
      We use tool gatling (1000 concurrent connections) which keep looping on:
      1. Login as user.X
      2. Get ResourceN

      We get thousands of error messages like the following agent debug.log:

      2015-09-24 13:37:27.589 +0200 ERROR [0x7fab20a02700:80160] am_add_session_policy_cache_entry(): failed to allocate 76 bytes
      2015-09-24 13:37:27.590 +0200 ERROR [0x7fab0eff7700:81620] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.592 +0200 ERROR [0x7fab0e5f6700:95886] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.593 +0200 ERROR [0x7fab0a9f0700:81705] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.594 +0200 ERROR [0x7fab11fef700:80160] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.596 +0200 ERROR [0x7fab13fff700:95320] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.597 +0200 ERROR [0x7fab09fef700:81620] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.599 +0200 ERROR [0x7fab0b3f1700:96548] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.602 +0200 ERROR [0x7fab117fb700:95888] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.604 +0200 ERROR [0x7fab10dfa700:82703] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.606 +0200 ERROR [0x7fab22805700:81705] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.609 +0200 ERROR [0x7fab0f9f8700:95886] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.610 +0200 ERROR [0x7fab0c7f3700:82280] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.613 +0200 ERROR [0x7fab24608700:82703] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.615 +0200 ERROR [0x7fab0bdf2700:95320] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.617 +0200 ERROR [0x7fab23c07700:96547] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.624 +0200 ERROR [0x7fab24608700:95888] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.626 +0200 ERROR [0x7fab135fe700:81705] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.628 +0200 ERROR [0x7fab0e5f6700:82282] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.629 +0200 ERROR [0x7fab11fef700:80159] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.632 +0200 ERROR [0x7fab121fc700:96548] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      2015-09-24 13:37:27.633 +0200 ERROR [0x7fab095ee700:96547] am_add_session_policy_cache_entry(): failed to allocate 168 bytes
      [...]
      

        Attachments

          Activity

            People

            • Assignee:
              nick.james Nicholas James
              Reporter:
              sberthol Sebastien Bertholet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: