<p dir="ltr">Step 1 just at the start and then steps 2-4 in concurrent threads for different users. The user base is about 40 so after a couple of cycles all user details should be retrieved from cache I guess.</p>
<p dir="ltr">We have default values for hash iterations. And I can guarantee that there isn&#39;t any other operations going on at that time.</p>
<div class="gmail_quote">On Nov 30, 2015 8:39 PM, &quot;Bill Burke&quot; &lt;<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You do steps 1-4 in a continuous loop?  or do you just get the token once and do steps 2-4 in a continuous loop?<br>
<br>
I want to figure out why you are getting so many invalidation messages, but there are other things that can peg the cpu.  If you are using a large value for password hash iterations, this can peg the CPU very quickly on a small number of threads.<br>
<br>
On 11/30/2015 9:49 AM, Lohitha Chiranjeewa wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bill,<br>
<br>
This particular load test consists of four API calls, starts with<br>
authentication:<br>
<br>
1) Invoke {host}/auth/realms/xxxx/protocol/openid-connect/token with<br>
&quot;|username={username}&amp;password={password}&amp;grant_type=password|&quot; as the<br>
body - we get the Access Token from this and use it for subsequent API calls<br>
2) Get user by User ID<br>
3) Get Realm Roles of above user<br>
4) Get Client Roles of a single given client for above user<br>
<br>
We run this test suite with concurrent threads (same superuser for<br>
authentication, but steps 2,3,4 for different users). But with our 2<br>
highly available M3-Medium server setup, it is impossible to go beyond<br>
10-15 threads w/o the processor hitting 100% usage.<br>
<br>
During the tests, we see millions (figuratively) of invalidation logs<br>
like this:<br>
[2015-11-30 14:32:08.0823], DEBUG,<br>
org.infinispan.interceptors.InvalidationInterceptor Timer-2 - Cache<br>
[dev-idm-a1] replicating<br>
InvalidateCommand{keys=[40113545-5069-47c4-bf1c-8f58a303caf6]}<br>
<br>
<br>
Regards,<br>
Lohitha.<br>
<br>
On Mon, Nov 30, 2015 at 8:17 PM, Bill Burke &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br>
&lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    I just did a loop test on GET<br>
    https://{host}/auth/admin/realms/xxxxx/users/xxxx.  The same userid<br>
    over and over as you described.  I see zero invalidations.  Are you<br>
    sure you aren&#39;t doing any updates?<br>
<br>
    On 11/30/2015 9:33 AM, Stian Thorgersen wrote:<br>
<br>
        If you can try building master and enable trace logging for<br>
        &quot;org.keycloak.models.cache.infinispan.InfinispanCacheUserProviderFactory&quot;.<br>
        It will print log statements when entries are<br>
        removed/invalidated in the<br>
        cache.<br>
<br>
        On 30 November 2015 at 15:19, Bill Burke &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a><br>
        &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt;&gt; wrote:<br>
<br>
             Can you describe your load tests please?  What kind of<br>
        authentication<br>
             are you doing?  The only thing that would cause<br>
        invalidations is HOTP.<br>
<br>
             On 11/30/2015 9:13 AM, Lohitha Chiranjeewa wrote:<br>
             &gt; Bill, the problem here is that our load tests cannot go<br>
        beyond a paltry<br>
             &gt; 15-20 concurrent threads with the default set up<br>
        (invalidation caches<br>
             &gt; with SYNC mode - two HA AWS M3-Medium servers). Hence<br>
        we&#39;re trying to<br>
             &gt; find ways to improve on the performance and the avg<br>
        response time under<br>
             &gt; a load.<br>
             &gt;<br>
             &gt; On Mon, Nov 30, 2015 at 7:16 PM, Bill Burke<br>
        &lt;<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt;<br>
             &gt; &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a> &lt;mailto:<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>&gt;&gt;&gt;&gt; wrote:<br>
             &gt;<br>
             &gt;     BTW, besides being more scalable, we invalidate<br>
        rather than replicate to<br>
             &gt;     avoid transmitting sensitive security data over the<br>
        network.<br>
             &gt;<br>
             &gt;     On 11/30/2015 8:29 AM, Lohitha Chiranjeewa wrote:<br>
             &gt;     &gt; Glad if you could look into the above and check if<br>
        there are app level<br>
             &gt;     &gt; issues related to invalidations, thanks.<br>
             &gt;     &gt;<br>
             &gt;     &gt; One way to get around this through config changes<br>
        is to make the<br>
             &gt;     &gt; relevant cache modes &#39;ASYNC&#39; and set up suitable<br>
        values for &#39;queue-size&#39;<br>
             &gt;     &gt; and &#39;queue-flush-interval&#39; depending on your needs.<br>
        Then the<br>
             &gt;     &gt; invalidations won&#39;t happen with each and every call.<br>
             &gt;     &gt;<br>
             &gt;     &gt; Obviously there would be problems if caches aren&#39;t<br>
        invalidated in time<br>
             &gt;     &gt; with the above set up, it&#39;s up to the devs to come<br>
        up with a suitable<br>
             &gt;     &gt; set of configs to cater to their needs.<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt; Regards,<br>
             &gt;     &gt; Lohitha.<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt; On Mon, Nov 30, 2015 at 1:08 PM, Stian Thorgersen<br>
        &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;     It is not expected behavior. Users should only<br>
        be invalidated if<br>
             &gt;     &gt;     changes are made.<br>
             &gt;     &gt;<br>
             &gt;     &gt;     On 30 November 2015 at 07:01, Lohitha<br>
        Chiranjeewa &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt;     &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;         Just tested the same flow extensively with<br>
        Keycloak 1.2.0 as<br>
             &gt;     &gt;         well, and it seems the behavior is the<br>
        same. Lots of MySQL<br>
             &gt;     &gt;         select queries getting executed with each<br>
        call. Seems there&#39;s a<br>
             &gt;     &gt;         number of unnecessary cache invalidations<br>
        going on which causes<br>
             &gt;     &gt;         Keycloak to fetch data from the DB over and<br>
        over.<br>
             &gt;     &gt;<br>
             &gt;     &gt;         Could you please confirm if this is the<br>
        expected behavior? As<br>
             &gt;     &gt;         far as I can see there&#39;s considerable<br>
        performance degradation<br>
             &gt;     &gt;         due to unnecessary cache invalidations.<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;         On Fri, Nov 27, 2015 at 8:42 PM, Lohitha<br>
        Chiranjeewa<br>
              &gt;     &gt;         &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
             &gt;     &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;             I&#39;m invoking the following API call:<br>
             &gt;     &gt;<br>
          https://{host}/auth/admin/realms/xxxxx/users/55ffe851-2d94-460e-88b9-bc7340531b56<br>
             &gt;     &gt;             (same realm and user ID over and over<br>
        again). The two HA<br>
             &gt;     &gt;             server(s) are idle apart from serving<br>
        those calls. And I&#39;m<br>
             &gt;     &gt;             seeing the following SQL getting logged<br>
        in my MySQL log for<br>
             &gt;     &gt;             each and every call:<br>
             &gt;     &gt;<br>
             &gt;     &gt;             select userentity0_.ID as ID1_42_,<br>
             &gt;     &gt;             userentity0_.CREATED_TIMESTAMP as<br>
        CREATED_2_42_,<br>
             &gt;     &gt;             userentity0_.EMAIL as EMAIL3_42_,<br>
             &gt;     &gt;             userentity0_.EMAIL_CONSTRAINT as<br>
        EMAIL_CO4_42_,<br>
             &gt;     &gt;             userentity0_.EMAIL_VERIFIED as<br>
        EMAIL_VE5_42_,<br>
             &gt;     &gt;             userentity0_.ENABLED as ENABLED6_42_,<br>
             &gt;     &gt;             userentity0_.federation_link as<br>
        federati7_42_,<br>
             &gt;     &gt;             userentity0_.FIRST_NAME as FIRST_NA8_42_,<br>
             &gt;     &gt;             userentity0_.LAST_NAME as LAST_NAM9_42_,<br>
             &gt;     &gt;             userentity0_.REALM_ID as REALM_I10_42_,<br>
             &gt;     &gt;<br>
          userentity0_.SERVICE_ACCOUNT_CLIENT_LINK as SERVICE11_42_,<br>
             &gt;     &gt;             userentity0_.TOTP as TOTP12_42_,<br>
        userentity0_.USERNAME as<br>
             &gt;     &gt;             USERNAM13_42_ from USER_ENTITY<br>
        userentity0_ where<br>
             &gt;     &gt;<br>
          userentity0_.ID=&#39;55ffe851-2d94-460e-88b9-bc7340531b56&#39; and<br>
             &gt;     &gt;             userentity0_.REALM_ID=&#39;xxxxx&#39;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;             On Fri, Nov 27, 2015 at 8:03 PM, Stian<br>
        Thorgersen<br>
             &gt;     &gt;             &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;<br>
             &gt;     &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                 Strange - what are you doing and<br>
        what are the SQL queries?<br>
             &gt;     &gt;<br>
             &gt;     &gt;                 On 27 November 2015 at 15:23,<br>
        Lohitha Chiranjeewa<br>
              &gt;     &gt;                 &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
             &gt;     &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                     Yes Stian, that I understand.<br>
        But the problem here<br>
             &gt;     &gt;                     is even if I execute continuous<br>
        user retrieval calls<br>
             &gt;     &gt;                     (same user - no other<br>
        functionality in between),<br>
             &gt;     &gt;                     still MySQL select queries get<br>
        executed for each<br>
             &gt;     &gt;                     call. So there lies an issue<br>
        isn&#39;t it?<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;                     On Fri, Nov 27, 2015 at 6:48<br>
        PM, Stian Thorgersen<br>
             &gt;      &gt;                     &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
              &gt;     &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &gt;     &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;&gt;&gt;<br>
             &gt;     &gt;                     wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                         Things are still fetched<br>
        from MySQL. Realms,<br>
             &gt;     &gt;                         clients, users, etc.. are<br>
        then kept in the<br>
             &gt;     &gt;                         cache, but if it changes<br>
        it&#39;s re-loaded from<br>
             &gt;     &gt;                         MySQL. We use an<br>
        invalidation cache, not a<br>
             &gt;     &gt;                         distributed cache.<br>
             &gt;     &gt;<br>
             &gt;     &gt;                         On 27 November 2015 at<br>
        14:04, Lohitha<br>
             &gt;     &gt;                         Chiranjeewa<br>
        &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt;                         &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt; &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a><br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                             What I mean is, if it<br>
        were working, I<br>
             &gt;     &gt;                             shouldn&#39;t see mysql<br>
        queries getting executed<br>
             &gt;     &gt;                             right? So my guess is<br>
        data is still fetched<br>
             &gt;     &gt;                             from the db instead of<br>
        the cache.<br>
             &gt;     &gt;<br>
             &gt;     &gt;                             On Nov 27, 2015 5:52<br>
        PM, &quot;Stian Thorgersen&quot;<br>
             &gt;     &gt;                             &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt;<br>
          &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                 Yup, so it&#39;s<br>
        working now?<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                 On 27 November 2015<br>
        at 13:20, Lohitha<br>
             &gt;     &gt;                                 Chiranjeewa<br>
        &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt;<br>
          &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                     Apologies,<br>
        keycloak-server.json<br>
             &gt;     &gt;                                     entries should<br>
        change to:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                          &quot;realm&quot;: {<br>
             &gt;     &gt;<br>
        &quot;provider&quot;: &quot;jpa&quot;<br>
             &gt;     &gt;                                          },<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                          &quot;user&quot;: {<br>
             &gt;     &gt;<br>
        &quot;provider&quot;: &quot;jpa&quot;<br>
             &gt;     &gt;                                          },<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
        &quot;userSessionPersister&quot;: {<br>
             &gt;     &gt;<br>
        &quot;provider&quot;: &quot;jpa&quot;<br>
             &gt;     &gt;                                          },<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                     On Fri, Nov 27,<br>
        2015 at 5:49 PM,<br>
             &gt;     &gt;                                     Lohitha Chiranjeewa<br>
             &gt;     &gt;<br>
          &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
              &gt;      &gt;<br>
               &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
<br>
              &gt;     &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         Hi Stian,<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         As per the<br>
             migration guide, I<br>
              &gt;      &gt;                                         should have<br>
             Infinispan up and<br>
              &gt;      &gt;                                         running for<br>
             realms, users and<br>
              &gt;      &gt;                                         user<br>
        sessions without<br>
              &gt;     doing any<br>
              &gt;      &gt;                                         specific<br>
        changes.<br>
              &gt;      &gt;<br>
               keycloak-server.json was<br>
              &gt;      &gt;                                         reverted<br>
        back to<br>
             have the<br>
              &gt;      &gt;                                         following<br>
        entries:<br>
              &gt;      &gt;                                         ...<br>
              &gt;      &gt;<br>
        &quot;realm&quot;: {<br>
              &gt;      &gt;<br>
        &quot;provider&quot;:<br>
              &gt;     &quot;infinispan&quot;<br>
              &gt;      &gt;                                              },<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
        &quot;user&quot;: {<br>
              &gt;      &gt;<br>
        &quot;provider&quot;:<br>
              &gt;     &quot;infinispan&quot;<br>
              &gt;      &gt;                                              },<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;     &quot;userSessionPersister&quot;: {<br>
              &gt;      &gt;<br>
        &quot;provider&quot;:<br>
              &gt;     &quot;infinispan&quot;<br>
              &gt;      &gt;                                              },<br>
              &gt;      &gt;                                         ...<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         In the<br>
        Admin Console I<br>
              &gt;     have both<br>
              &gt;      &gt;                                         Realm<br>
        Cache and<br>
             User Cache<br>
              &gt;      &gt;                                         enables.<br>
        I see certain<br>
              &gt;      &gt;<br>
          Infinispan related<br>
             logs<br>
              &gt;     getting<br>
              &gt;      &gt;                                         logged as<br>
        well.<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         However,<br>
        at the same<br>
              &gt;     time, I see<br>
              &gt;      &gt;                                         MySQL<br>
        queries getting<br>
              &gt;     executed<br>
              &gt;      &gt;                                         for all user<br>
             retrieval API<br>
              &gt;      &gt;<br>
          invocations (even<br>
             if the same<br>
              &gt;      &gt;                                         user is<br>
        retrieved<br>
              &gt;     continuously):<br>
              &gt;      &gt;                                         ...<br>
              &gt;      &gt;                                         select<br>
             userentity0_.ID as<br>
              &gt;      &gt;                                         ID1_42_,<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.CREATED_TIMESTAMP<br>
              &gt;      &gt;                                         as<br>
        CREATED_2_42_,<br>
              &gt;      &gt;<br>
          userentity0_.EMAIL as<br>
              &gt;      &gt;                                         EMAIL3_42_,<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.EMAIL_CONSTRAINT as<br>
              &gt;      &gt;<br>
          EMAIL_CO4_42_,<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.EMAIL_VERIFIED as<br>
              &gt;      &gt;<br>
          EMAIL_VE5_42_,<br>
              &gt;      &gt;<br>
               userentity0_.ENABLED as<br>
              &gt;      &gt;                                         ENABLED6_42_,<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.federation_link as<br>
              &gt;      &gt;<br>
          federati7_42_,<br>
              &gt;      &gt;<br>
               userentity0_.FIRST_NAME as<br>
              &gt;      &gt;<br>
          FIRST_NA8_42_,<br>
              &gt;      &gt;<br>
               userentity0_.LAST_NAME as<br>
              &gt;      &gt;<br>
          LAST_NAM9_42_,<br>
              &gt;      &gt;<br>
               userentity0_.REALM_ID as<br>
              &gt;      &gt;<br>
          REALM_I10_42_,<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.SERVICE_ACCOUNT_CLIENT_LINK<br>
              &gt;      &gt;                                         as<br>
        SERVICE11_42_,<br>
              &gt;      &gt;<br>
          userentity0_.TOTP as<br>
              &gt;     TOTP12_42_,<br>
              &gt;      &gt;<br>
               userentity0_.USERNAME as<br>
              &gt;      &gt;<br>
          USERNAM13_42_ from<br>
              &gt;     USER_ENTITY<br>
              &gt;      &gt;<br>
          userentity0_ where<br>
              &gt;      &gt;<br>
              &gt;       userentity0_.ID=&#39;55ffe851-2d94-460e-88b9-bc7340531b56&#39;<br>
              &gt;      &gt;                                         and<br>
              &gt;     userentity0_.REALM_ID=&#39;xxxxx&#39;<br>
              &gt;      &gt;                                         ...<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         So it seems<br>
             something is<br>
              &gt;     wrong<br>
              &gt;      &gt;                                         here.<br>
        Could you<br>
             point out any<br>
              &gt;      &gt;                                         areas<br>
        that I could<br>
              &gt;     further look<br>
              &gt;      &gt;                                         into?<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         Regards,<br>
              &gt;      &gt;                                         Lohitha.<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                         On Thu,<br>
        Nov 26,<br>
             2015 at<br>
              &gt;     7:58 PM,<br>
              &gt;      &gt;                                         Stian<br>
        Thorgersen<br>
              &gt;      &gt;<br>
               &lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
              &gt;     &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt; &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a><br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;<br>
             &gt;     &gt;<br>
          &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a> &lt;mailto:<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;&gt;&gt;&gt;&gt; wrote:<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                             Please<br>
        read the migration guide<br>
             &gt;     &gt;<br>
             &gt;     &gt;                                             On 26<br>
        November 2015 at<br>
             &gt;     &gt;                                             14:53,<br>
        Lohitha Chiranjeewa<br>
             &gt;     &gt;<br>
          &lt;<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;<br>
             &gt;      &gt;<br>
              &gt;       &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;<br>
<br>
             &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a> &lt;mailto:<a href="mailto:kalc04@gmail.com" target="_blank">kalc04@gmail.com</a>&gt;&gt;&gt;&gt;&gt;<br>
              &gt;      &gt;                                             wrote:<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                                 Hi,<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
          We&#39;re in the<br>
              &gt;     process of<br>
              &gt;      &gt;<br>
          assessing the<br>
              &gt;     impact on<br>
              &gt;      &gt;<br>
          upgrading from<br>
              &gt;     Keycloak<br>
              &gt;      &gt;<br>
          1.2.0 to<br>
             1.6.1.<br>
              &gt;     We came<br>
              &gt;      &gt;<br>
          across an<br>
             issue when<br>
              &gt;      &gt;<br>
          trying to<br>
             enable<br>
              &gt;      &gt;<br>
          Infinispan<br>
             cache<br>
              &gt;     through<br>
              &gt;      &gt;                                                 the<br>
              &gt;     keycloak-server.json<br>
              &gt;      &gt;<br>
          file as we<br>
             used<br>
              &gt;     to do in<br>
              &gt;      &gt;<br>
          1.2.0.<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
          We have<br>
             the following<br>
              &gt;      &gt;<br>
          entries in<br>
             1.6.1:<br>
              &gt;      &gt;<br>
             &quot;realm&quot;: {<br>
              &gt;      &gt;<br>
             &quot;provider&quot;:<br>
              &gt;      &gt;<br>
          &quot;infinispan&quot;<br>
              &gt;      &gt;<br>
             },<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
             &quot;user&quot;: {<br>
              &gt;      &gt;<br>
             &quot;provider&quot;:<br>
              &gt;      &gt;<br>
          &quot;infinispan&quot;<br>
              &gt;      &gt;<br>
             },<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;       &quot;userSessionPersister&quot;: {<br>
              &gt;      &gt;<br>
             &quot;provider&quot;:<br>
              &gt;      &gt;<br>
          &quot;infinispan&quot;<br>
              &gt;      &gt;<br>
             },<br>
              &gt;      &gt;<br>
          .........<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;       &quot;connectionsInfinispan&quot;: {<br>
              &gt;      &gt;<br>
              &gt;     &quot;default&quot; : {<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
               &quot;cacheContainer&quot; :<br>
              &gt;      &gt;<br>
              &gt;       &quot;java:comp/env/infinispan/Keycloak&quot;<br>
              &gt;      &gt;<br>
                 }<br>
              &gt;      &gt;<br>
             }<br>
              &gt;      &gt;<br>
              &gt;      &gt;                                                 All<br>
             configurations in<br>
              &gt;      &gt;                                                 1.6.1<br>
              &gt;     standalone-ha.xml<br>
              &gt;      &gt;<br>
          file remains<br>
              &gt;     comparable<br>
              &gt;      &gt;                                                 (and<br>
             correct to<br>
              &gt;     the best<br>
              &gt;      &gt;<br>
          of our<br>
             knowledge)<br>
              &gt;     with<br>
              &gt;      &gt;<br>
          the ones<br>
             in 1.2.0.<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
          With the above<br>
              &gt;     configs,<br>
              &gt;      &gt;<br>
          when we<br>
             start the<br>
              &gt;      &gt;<br>
          Keycloak<br>
             service the<br>
              &gt;      &gt;<br>
          following<br>
              &gt;     error(s) get<br>
              &gt;      &gt;<br>
          logged:<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
               18:03:31,610 ERROR<br>
              &gt;      &gt;<br>
              &gt;       [org.jboss.msc.service.fail]<br>
              &gt;      &gt;<br>
               (ServerService Thread<br>
              &gt;      &gt;<br>
          Pool -- 64)<br>
              &gt;     MSC000001:<br>
              &gt;      &gt;<br>
          Failed to<br>
             start<br>
              &gt;     service<br>
              &gt;      &gt;<br>
              &gt;<br>
          jboss.undertow.deployment.default-server.default-host./auth:<br>
              &gt;      &gt;<br>
              &gt;       org.jboss.msc.service.StartException<br>
              &gt;      &gt;<br>
          in service<br>
              &gt;      &gt;<br>
              &gt;<br>
          jboss.undertow.deployment.default-server.default-host./auth:<br>
              &gt;      &gt;<br>
              &gt;       java.lang.RuntimeException:<br>
              &gt;      &gt;<br>
          Failed to<br>
             construct<br>
              &gt;      &gt;<br>
          public<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
          java.util.concurrent.FutureTask.run(FutureTask.java:262)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;       java.lang.Thread.run(Thread.java:744)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
          org.jboss.threads.JBossThread.run(JBossThread.java:320)<br>
              &gt;      &gt;<br>
              &gt;       [jboss-threads-2.2.0.Final.jar:2.2.0.Final]<br>
              &gt;      &gt;<br>
          Caused by:<br>
              &gt;      &gt;<br>
              &gt;       java.lang.RuntimeException:<br>
              &gt;      &gt;<br>
          Failed to<br>
             construct<br>
              &gt;      &gt;<br>
          public<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2211)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)<br>
              &gt;      &gt;<br>
             ... 6<br>
             more<br>
              &gt;      &gt;<br>
          Caused by:<br>
              &gt;      &gt;<br>
              &gt;       java.lang.RuntimeException:<br>
              &gt;      &gt;<br>
          Failed to find<br>
              &gt;     provider<br>
              &gt;      &gt;<br>
          infinispan<br>
             for realm<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.keycloak.services.DefaultKeycloakSessionFactory.init(DefaultKeycloakSessionFactory.java:66)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.keycloak.services.resources.KeycloakApplication.createSessionFactory(KeycloakApplication.java:162)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.keycloak.services.resources.KeycloakApplication.&lt;init&gt;(KeycloakApplication.java:62)<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
          sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native<br>
              &gt;      &gt;<br>
          Method)<br>
              &gt;     [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
          java.lang.reflect.Constructor.newInstance(Constructor.java:526)<br>
              &gt;      &gt;<br>
               [rt.jar:1.7.0_45]<br>
              &gt;      &gt;<br>
             at<br>
              &gt;      &gt;<br>
              &gt;<br>
<br>
        org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)<br>
              &gt;      &gt;<br>
             ...<br>
             19 more<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
          Is the new<br>
             way to<br>
              &gt;     enable<br>
              &gt;      &gt;<br>
          Infinispan<br>
              &gt;     different to<br>
              &gt;      &gt;<br>
          what we had<br>
              &gt;     earlier? If<br>
              &gt;      &gt;<br>
          so, can<br>
             someone<br>
              &gt;     please<br>
              &gt;      &gt;<br>
          point out the<br>
              &gt;     correct way?<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
          Regards,<br>
              &gt;      &gt;<br>
          Lohitha.<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;      &gt;<br>
              &gt;       _______________________________________________<br>
              &gt;      &gt;<br>
          keycloak-user<br>
              &gt;     mailing list<br>
              &gt;      &gt; <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;&gt;<br>
              &gt;      &gt;<br>
              &gt;       &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;<br>
             &gt;     &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;&gt;&gt;<br>
             &gt;      &gt;<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt;<br>
             &gt;     &gt; _______________________________________________<br>
             &gt;     &gt; keycloak-user mailing list<br>
              &gt;     &gt;<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;<br>
             &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>&gt;&gt;&gt;<br>
             &gt;     &gt;<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
             &gt;     &gt;<br>
             &gt;<br>
             &gt;     --<br>
             &gt;     Bill Burke<br>
             &gt;     JBoss, a division of Red Hat<br>
             &gt;<a href="http://bill.burkecentral.com" rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
             &gt;     _______________________________________________<br>
             &gt;     keycloak-user mailing list<br>
              &gt; <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:keycloak-user@lists.jboss.org" target="_blank"></a></blockquote>...</blockquote></div>