Confluence Performance after login
Asked by BITS:

Hi everyone,

I have some performance issues with the SSO Login. I contacted the miniOrange Support. They give me the following answer:

```
Step 1: Plugin initiate the SAML Request at 2018-09-12T11:33:58.315

Logs:-
 createAuthnRequestAndRedirect HTTP-Redirect Binding selected for SSO and current time is = 2018-09-12T11:33:58.315

Step 2:- Plugin get the SAML Response back from IdP (ADFS) at 2018-09-12T11:33: 58.490, It includes the redirection to ADFS, Authentication from ADFS and send the SAML Response back to Confluence. This process took *175 *milliseconds only.

Logs:-
 doPost SAML Authentication Servlet doPost() called SAML Response received and current time is = 2018-09-12T11:33:58.490

Step3: Plugin performs all the operation including reading SAML Response, create/update users, create user session and then redirect to the confluence page at 11:33:58.582 and it took *88 *milliseconds.

Logs:-
 redirectToSuccessfulAuthLandingPage Redirecting user to Confluence after successful authentication and current time is = 2018-09-12T11:33:58.582

So it clearly seems that confluence page is the one who takes time to load on the browser.
```

Do you have any idea why Confluece loads the page after authentication so slow?

Server Version: 6.11.0  
OS: Windows Server 2016  
CPU: 4 vCPUs  
MEM: 8GB  
Database: MS SQL Server 2014


Answers:
author: BITS
body: Now I have the solution. The problem was not Confluence or the miniOrange Plugin. The problem was the ADFS server. On the server there was a wrong proxy configuration. Every time you want to connet the server has tried to detect the proxy server automatically. This takes a few seconds.

Thanks everyone for your help.


author: BITS
body: Now I tried to login with a local account and also with the AD Account. The pages are all fast. But with the SSO Plugin only the first login of the day is slow. It seems like there is something wrong with the cache of the plugin. Now I'm waiting for the miniOrange support. Do you have any idea?

comments: author: Christian Reichert (resolution)
body: Hi [@BITS](/t5/user/viewprofilepage/user-id/1645996),

if miniOrange Support, doesn't give you any success in the near future - you could try an alternative plugin.

Not trying to hide, I work for resolution where we have a SSO Plugin in the Market as well -

[https://marketplace.atlassian.com/apps/1212129/saml-single-sign-on-sso-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1212129/saml-single-sign-on-sso-confluence?hosting=server&tab=overview)

Even if it doesn't mean you'd jump ship - installing a evaluation version of our plugin (which is 30 days for free, with full functionality) - might give you another troubleshooting point. I.e. if the problem goes away with our plugin, you have an additional pointer that it's related to miniOrange - if both plugins show the same behaviour, that might also ad in the the troubleshooting.

Cheers,  
Christian


author: Nic Brough -Adaptavist-
body: No way to know without page load analysis.

I've found miniOrange to be slow in the past, as it seemed to want to re-authenticate on every page despite having logged in, but that was one client, years ago.

Try creating a local user in the internal directory and logging in as them. If they get a fast page, you know it's your authentication. If they're just as slow, then you've ruled it out and you should move on to the developer tools in your browser to see what parts of the page are loading slowly.


Tags: confluence-server

server