gogs: Gogs page load very slow.

Problem

© 2016 Gogs 当前版本: 0.9.0.0306 页面: 44119ms 模板: 20ms

Config

APP_NAME = <REMOVED>
RUN_USER = root
RUN_MODE = prod

[database]
DB_TYPE = sqlite3
HOST = 127.0.0.1:3306
NAME = gogs
USER = root
PASSWD =
SSL_MODE = disable
PATH = data/gogs.db

[repository]
ROOT = ./repositories

[server]
DOMAIN = <REMOVED>
HTTP_PORT = 3000
ROOT_URL = <REMOVED>
DISABLE_SSH = false
SSH_PORT = 3022
OFFLINE_MODE = true
ENABLE_GZIP= true
[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ENABLE_CAPTCHA = true
REQUIRE_SIGNIN_VIEW = false

[picture]
DISABLE_GRAVATAR = true

[session]
PROVIDER = file

[log]
MODE = file
LEVEL = Info

[security]
INSTALL_LOCK = true
SECRET_KEY = <REMOVED>

Download from main site.

System status

# cat /etc/redhat-release
CentOS release 6.5 (Final)
Tasks: 252 total,   1 running, 251 sleeping,   0 stopped,   0 zombie
Cpu(s): 25.2%us,  0.5%sy,  0.0%ni, 74.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  10127364k total,  9907780k used,   219584k free,    82332k buffers
Swap: 16777208k total,   270980k used, 16506228k free,  7425212k cached

Request log

[Macaron] Started GET <REMOVED> for <REMOVED>
2016/03/15 22:57:57 [D] Session ID: d7d1dad0f55f2384
2016/03/15 22:57:57 [D] CSRF Token: 7U3nCPkyzHhXpMxifg5i3Nb2rqU6MTQ1ODAwNDAyMzY2MjY0ODc0OA==
2016/03/15 22:58:41 [D] Template: repo/home
[Macaron] Completed /<REMOVED> 200 OK in 44.125287281s
[Macaron] Started GET /js/jquery-1.11.3.min.js for <REMOVED>
[Macaron] [Static] Serving /js/jquery-1.11.3.min.js
[Macaron] Completed /js/jquery-1.11.3.min.js 304 Not Modified in 204.296µs
[Macaron] Started GET /assets/font-awesome-4.5.0/css/font-awesome.min.css for <REMOVED>
[Macaron] [Static] Serving /assets/font-awesome-4.5.0/css/font-awesome.min.css
[Macaron] Completed /assets/font-awesome-4.5.0/css/font-awesome.min.css 304 Not Modified in 91.553µs
[Macaron] Started GET /assets/octicons-3.4.1/octicons.css for <REMOVED>
[Macaron] [Static] Serving /assets/octicons-3.4.1/octicons.css
[Macaron] Completed /assets/octicons-3.4.1/octicons.css 304 Not Modified in 231.45µs
[Macaron] Started GET /css/semantic-2.1.8.min.css for <REMOVED>
[Macaron] [Static] Serving /css/semantic-2.1.8.min.css
[Macaron] Completed /css/semantic-2.1.8.min.css 304 Not Modified in 98.953µs
[Macaron] Started GET /css/gogs.css?v=6c7b6aaa14b8021627f64f47e6932264 for <REMOVED>
[Macaron] [Static] Serving /css/gogs.css
[Macaron] Completed /css/gogs.css?v=6c7b6aaa14b8021627f64f47e6932264 304 Not Modified in 148.477µs
[Macaron] Started GET /js/semantic-2.1.8.min.js for <REMOVED>
[Macaron] [Static] Serving /js/semantic-2.1.8.min.js
[Macaron] Completed /js/semantic-2.1.8.min.js 304 Not Modified in 76.887µs
[Macaron] Started GET /js/gogs.js?v=6c7b6aaa14b8021627f64f47e6932264 for <REMOVED>
[Macaron] [Static] Serving /js/gogs.js
[Macaron] Completed /js/gogs.js?v=6c7b6aaa14b8021627f64f47e6932264 304 Not Modified in 79.46µs
[Macaron] Started GET /plugins/highlight-9.1.0/github.css for <REMOVED>
[Macaron] [Static] Serving /plugins/highlight-9.1.0/github.css
[Macaron] Completed /plugins/highlight-9.1.0/github.css 304 Not Modified in 172.073µs
[Macaron] Started GET /plugins/highlight-9.1.0/highlight.pack.js for <REMOVED>
[Macaron] [Static] Serving /plugins/highlight-9.1.0/highlight.pack.js
[Macaron] Completed /plugins/highlight-9.1.0/highlight.pack.js 304 Not Modified in 274.935µs
[Macaron] Started GET /js/libs/emojify-1.1.0.min.js for <REMOVED>
[Macaron] [Static] Serving /js/libs/emojify-1.1.0.min.js
[Macaron] Completed /js/libs/emojify-1.1.0.min.js 304 Not Modified in 116.507µs
[Macaron] Started GET /js/libs/clipboard-1.5.5.min.js for <REMOVED>
[Macaron] [Static] Serving /js/libs/clipboard-1.5.5.min.js
[Macaron] Completed /js/libs/clipboard-1.5.5.min.js 304 Not Modified in 106.534µs
[Macaron] Started GET /img/favicon.png for <REMOVED>
[Macaron] [Static] Serving /img/favicon.png
[Macaron] Completed /img/favicon.png 304 Not Modified in 217.58µs
[Macaron] Started GET /avatars/1 for <REMOVED>
[Macaron] [Static] Serving /1
[Macaron] Completed /avatars/1 304 Not Modified in 85.737µs
[Macaron] Started GET /img/avatar_default.jpg for <REMOVED>
[Macaron] [Static] Serving /img/avatar_default.jpg
[Macaron] Completed /img/avatar_default.jpg 304 Not Modified in 254.087µs
[Macaron] Started GET /css/themes/default/assets/fonts/icons.woff2 for <REMOVED>
[Macaron] [Static] Serving /css/themes/default/assets/fonts/icons.woff2
[Macaron] Completed /css/themes/default/assets/fonts/icons.woff2 304 Not Modified in 219.824µs
[Macaron] Started GET /img/favicon.png for <REMOVED>
[Macaron] [Static] Serving /img/favicon.png
[Macaron] Completed /img/favicon.png 200 OK in 2.093003ms
[Macaron] Started GET /ideal-log/mq-usecase-doc for 10.4.231.185
...
2016/03/15 23:05:23 [D] Session ID: d7d1dad0f55f2384
2016/03/15 23:05:23 [D] CSRF Token: 7U3nCPkyzHhXpMxifg5i3Nb2rqU6MTQ1ODAwNDAyMzY2MjY0ODc0OA==
2016/03/15 23:06:01 [D] Template: repo/home
[Macaron] Completed <REMOVED> 200 OK in 38.050006334s
...
[Macaron] Started GET <REMOVED>  for 10.4.231.185
2016/03/15 23:06:51 [D] Session ID: d7d1dad0f55f2384
2016/03/15 23:06:51 [D] CSRF Token: 7U3nCPkyzHhXpMxifg5i3Nb2rqU6MTQ1ODAwNDAyMzY2MjY0ODc0OA==
2016/03/15 23:07:28 [D] Template: repo/home
[Macaron] Completed /ideal-log/mq-usecase-doc 200 OK in 36.58376736s
...

image

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 40 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Just an update for anyone else with “slow page loading” on initial install. The root cause for me was broken DNS inside my Docker image / network.

Ok, thanks for your patient.