The main page loads very slow on everyday's first login
Asked by chong an:

We deployed the confluence on a Windows server, with apache in the front of confluence for port 80 conversion.

Recently, we found that the main page loads very slow when we tried to log in.

After one account logs in successfully for the first time, the subsequent logins will be very smooth.

Can anyone help to identify and solve this problem?

Thanks a lot.


Answers:
author: Daniel Ebers
body: Hi Chong,

welcome to the Atlassian Community!

There could be, indeed, plenty of reasons on why the first login is slow but the subsequent ones are loading fast.

A look into server logfiles would be a first steps I can absolutely recommend. Especially the authentication systems (if you are not using the internal user directory of Confluence) is something I would look into - probably the delay originates there.

Depending on what the system's logfiles tell you could dig deeper into that kind of situation. If the system shows nothing unusual also take the network connection into consideration.

Lastly, please kindly check if there is the possibility to install updates (I have noticed that 7.4.1 is not the latest available version).

Cheers,  
Daniel

comments: author: chong an
body: Hi Daniel,

Thanks for your tips. After checked the logs, I found the below potential info.

2020-11-09 11:26:15,544 WARN \[http-nio-8090-exec-4\] \[atlassian.upm.pac.PacClientImpl\] fetchMpacAppInfo Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: org.apache.http.conn.ConnectTimeoutException: Connect to marketplace.atlassian.com:443 \[marketplace.atlassian.com/18.136.214.24, marketplace.atlassian.com/18.136.214.25, marketplace.atlassian.com/18.136.214.26\] failed: connect timed out  
-- url: / \| traceId: 8b274500afc1bb57 \| userName: chong.an  
2020-11-09 11:27:00,583 WARN \[http-nio-8090-exec-4\] \[atlassian.upm.pac.PacClientImpl\] fetchMpacAppInfo Error when querying application info from MPAC: com.atlassian.marketplace.client.MpacException: org.apache.http.conn.ConnectTimeoutException: Connect to marketplace.atlassian.com:443 \[marketplace.atlassian.com/18.136.214.24, marketplace.atlassian.com/18.136.214.25, marketplace.atlassian.com/18.136.214.26\] failed: connect timed out  
-- url: / \| traceId: 8b274500afc1bb57 \| userName: chong.an  
2020-11-09 11:27:00,584 WARN \[http-nio-8090-exec-4\] \[confluence.util.profiling.DefaultActivityMonitor\] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1604892328850, threadId=210, threadName='http-nio-8090-exec-4', userId='chong.an', type='web-request', summary='/'}  
-- url: / \| traceId: 8b274500afc1bb57 \| userName: chong.an

I think the time consumed should be waiting for the timeout of the connection to the marketplace as our service can not access to the Internet.

Would you please help to have a look and advise?

Thanks!


author: chong an
body: Hi Daniel,

I found an article about disabling the connectivity to the marketplace, and I have disabled it following the instructions.

I will have a look tomorrow whether will it return to the normal state.

![WeChat Screenshot_20201109115433.png](https://community.atlassian.com/t5/image/serverpage/image-id/117489i86FD13776B880A4F/image-size/large?v=v2&px=999 "WeChat Screenshot_20201109115433.png")


author: chong an
body: Hi Daniel,

After I disabled the connectivity to the marketplace, the website returned to a normal state.

Thanks for your advice.


Tags: confluence-server

server