访问页面速度慢--V2.7.0

Blade 未结 1 890
Breeze
Breeze 剑圣 2021-03-16 16:22

一、该问题的重现步骤是什么?

1. 部署项目到生产服务器 

安装Mysql 8.0.20Redis 3.2.100、Nacos 1.3.2


2. 将blade-auth、blade-gateway、blade-system、blade-user项目采用java -jar的方式启动

java -Dfile.encoding=utf-8 -Ddruid.mysql.usePingMethod=false -jar blade-user.jar --spring.profiles.active=prod 


3. 访问其中的某个菜单,如部门管理

image.png

image.png

访问速度差不多10多秒,实在无法使用

4. 排查问题

    a. 网络问题(已排除)

       在服务器本地localhost访问也是一样

    b. 数据库问题(已排除)

       之前采用Mysql 8.0.23,后面又换成了Mysql 8.0.20,查看了日志访问速度也是非常快

2021-03-16 16:20:32.012  INFO 5496 --- [XNIO-1 task-170] o.s.core.log.aspect.RequestLogAspect     :

================  Request Start  ================
===> GET: /post/select Parameters: {"tenantId":"000000","bladeUser":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"绠$悊鍛?,"
tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}}}

===Headers===  Cookie: saber-access-token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiJhZG1pbiIsInJlYWxfbmFtZSI6IueuoeeQhuWRmCIsImF2YXRhci
I6Imh0dHBzOi8vZ3cuYWxpcGF5b2JqZWN0cy5jb20vem9zL3Jtc3BvcnRhbC9CaWF6ZmFueG1hbU5Sb3h4VnhrYS5wbmciLCJhdXRob3JpdGllcyI6WyJhZG1pbmlzdHJhdG9yIl0sImNsaWVudF9pZCI6InNhYmVyIiwicm9sZV9uYW1
lIjoiYWRtaW5pc3RyYXRvciIsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IGJsYWRleCIsInBvc3RfaWQiOiIxMzM0Njk2Njg1MTgwNjY1ODU4IiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgx
NjczODY3NTIwMSIsInNjb3BlIjpbImFsbCJdLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJvYXV0aF9pZCI6IiIsImRldGFpbCI6eyJ0eXBlIjoid2ViIn0sImV4cCI6MTYxNTg4Mzc0NCwiZGVwdF9pZCI6IjEzMjY3MjI4Mzk4NDAzN
DYxMTMiLCJqdGkiOiIzZTFjN2Q2Zi02ZjI4LTQ4ZGItODRjMC0wMjFmYWI4YmE2MTMiLCJhY2NvdW50IjoiYWRtaW4ifQ.EhtF0opR8-IcZFP-qC7mp1rf7Wx_wBKMIPn0VUrIeIY; saber-refresh-token=eyJhbGciOiJIUzI1Ni
IsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiJhZG1pbiIsInJlYWxfbmFtZSI6IueuoeeQhuWRmCIsImF2YXRhciI6Imh0dHBzOi8vZ3cuYWxpcGF5b2JqZWN0cy5jb20vem9zL3Jtc3BvcnRhbC
9CaWF6ZmFueG1hbU5Sb3h4VnhrYS5wbmciLCJhdXRob3JpdGllcyI6WyJhZG1pbmlzdHJhdG9yIl0sImNsaWVudF9pZCI6InNhYmVyIiwicm9sZV9uYW1lIjoiYWRtaW5pc3RyYXRvciIsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IGJsYWR
leCIsInBvc3RfaWQiOiIxMzM0Njk2Njg1MTgwNjY1ODU4IiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgxNjczODY3NTIwMSIsInNjb3BlIjpbImFsbCJdLCJuaWNrX25hbWUiOiLnrqHn
kIblkZgiLCJhdGkiOiIzZTFjN2Q2Zi02ZjI4LTQ4ZGItODRjMC0wMjFmYWI4YmE2MTMiLCJvYXV0aF9pZCI6IiIsImRldGFpbCI6eyJ0eXBlIjoid2ViIn0sImV4cCI6MTYxNjQ4NDk0NCwiZGVwdF9pZCI6IjEzMjY3MjI4Mzk4NDAzN
DYxMTMiLCJqdGkiOiI1ODcyNDU4OS0yYjUyLTQ3ZTMtODg1Ni0wNDY1YjRjNDRkMDAiLCJhY2NvdW50IjoiYWRtaW4ifQ.v2ivhIuJqp2jJsNLMcSQMzlPqA_Yzvijb4gXDltefqM
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64771"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiJhZG1pbiIsInJlYWxfbmFtZSI6IueuoeeQhuWRmCIsImF2YXRhciI6Imh0dH
BzOi8vZ3cuYWxpcGF5b2JqZWN0cy5jb20vem9zL3Jtc3BvcnRhbC9CaWF6ZmFueG1hbU5Sb3h4VnhrYS5wbmciLCJhdXRob3JpdGllcyI6WyJhZG1pbmlzdHJhdG9yIl0sImNsaWVudF9pZCI6InNhYmVyIiwicm9sZV9uYW1lIjoiYWR
taW5pc3RyYXRvciIsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IGJsYWRleCIsInBvc3RfaWQiOiIxMzM0Njk2Njg1MTgwNjY1ODU4IiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgxNjczODY3
NTIwMSIsInNjb3BlIjpbImFsbCJdLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJvYXV0aF9pZCI6IiIsImRldGFpbCI6eyJ0eXBlIjoid2ViIn0sImV4cCI6MTYxNTg4Mzc0NCwiZGVwdF9pZCI6IjEzMjY3MjI4Mzk4NDAzNDYxMTMiL
CJqdGkiOiIzZTFjN2Q2Zi02ZjI4LTQ4ZGItODRjMC0wMjFmYWI4YmE2MTMiLCJhY2NvdW50IjoiYWRtaW4ifQ.EhtF0opR8-IcZFP-qC7mp1rf7Wx_wBKMIPn0VUrIeIY
================   Request End   ================


==============  Sql Start  ==============
Execute ID  :org.springblade.system.mapper.DeptMapper.tree
Execute SQL :SELECT id, parent_id, dept_name AS title, id AS "value", id AS "key" FROM blade_dept WHERE is_deleted = 0 AND tenant_id = ? ORDER BY sort
Execute Time:0 ms
==============  Sql  End   ==============
2021-03-16 16:20:35.561  INFO 5496 --- [XNIO-1 task-163] o.s.core.log.aspect.RequestLogAspect     :


二、你期待的结果是什么?实际看到的又是什么?

期待的结果:

访问页面速度正常


实际看到的:

访问页面速度太慢


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeXBladeX-Tool  V2.7.0  windows 2016



四、请提供详细的错误堆栈信息,这很重要。

没有错误信息


五、若有更多详细信息,请在下面提供。


blade-gateway

2021-03-16 15:41:42.079  INFO 8924 --- [ctor-http-nio-1] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/menu/routes
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:42.079  INFO 8924 --- [ctor-http-nio-8] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/menu/top-menu
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:42.085  INFO 8924 --- [ctor-http-nio-2] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/tenant/select
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:42.114  INFO 8924 --- [ctor-http-nio-3] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/dict/dictionary?code=org_category
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:42.119  INFO 8924 --- [ctor-http-nio-4] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/dict/dictionary?code=flow
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:42.122  INFO 8924 --- [ctor-http-nio-6] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/dept/lazy-list?parentId=0
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36]
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:51.280  INFO 8924 --- [ctor-http-nio-1] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/menu/routes
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:51 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:41:51.396  INFO 8924 --- [ctor-http-nio-5] o.s.g.filter.GlobalRequestLogFilter      :
 
================ Gateway Request Start  ================
===> GET: /blade-system/menu/buttons
===Headers===  Host: [10.0.20.136]
===Headers===  X-Real-IP: [192.168.15.60]
===Headers===  X-Forwarded-For: [192.168.15.60]
===Headers===  Connection: [close]
===Headers===  Accept: [application/json, text/plain, */*]
===Headers===  Authorization: [Basic c2FiZXI6c2FiZXJfc2VjcmV0]
===Headers===  Blade-Auth:
===Headers===  Referer: [http://10.0.20.136/]
===Headers===  Accept-Encoding: [gzip, deflate]
===Headers===  Accept-Language: [zh-CN,zh;q=0.9]
===Headers===  Cookie:
================  Gateway Request End  =================
 
2021-03-16 15:41:51.458  INFO 8924 --- [ctor-http-nio-8] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/menu/top-menu
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:51 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:41:51.832  INFO 8924 --- [ctor-http-nio-3] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/dict/dictionary?code=org_category
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:51 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:41:53.097  INFO 8924 --- [ctor-http-nio-2] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/tenant/select
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:53 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:41:53.521  INFO 8924 --- [ctor-http-nio-6] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/dept/lazy-list?parentId=0
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:53 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:41:53.924  INFO 8924 --- [ctor-http-nio-4] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/dict/dictionary?code=flow
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:41:53 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================
 
2021-03-16 15:42:02.535  INFO 8924 --- [ctor-http-nio-5] o.s.g.filter.GlobalResponseLogFilter     :
 
================ Gateway Response Start  ================
<=== 200 GET: /blade-system/menu/buttons
===Headers===  transfer-encoding: [chunked]
===Headers===  Content-Type: [application/json;charset=UTF-8]
===Headers===  Date: [Tue, 16 Mar 2021 07:42:02 GMT]
===Headers===  connection: [close]
================  Gateway Response End  =================

blade-system

2021-03-16 15:41:42.111 [XNIO-1 task-145] [c544715de4481ed5db62459a216988cb] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /menu/routes Parameters: {"topMenuId":null,"user":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"管理员","tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}}}
===Headers===  Cookie:
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64746"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:42.111 [XNIO-1 task-144] [afe36646e8a780dcce7a28b703a7221f] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /menu/top-menu Parameters: {"user":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"管理员","tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}}}
===Headers===  Cookie:
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64745"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:42.116 [XNIO-1 task-153] [76e21ba9682d4153041857d6ca318f2d] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /tenant/select Parameters: {"bladeUser":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"管理员","tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}},"tenant":{"id":null,"createUser":null,"createDept":null,"createTime":null,"updateUser":null,"updateTime":null,"status":null,"isDeleted":null,"tenantId":null,"tenantName":null,"domain":null,"backgroundUrl":null,"linkman":null,"contactNumber":null,"address":null,"accountNumber":null,"expireTime":null,"datasourceId":null,"licenseKey":null}}
===Headers===  Cookie:
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64747"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:42.130 [XNIO-1 task-152] [ed79e902d938a9e1d374544fed6c5e7d] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /dict/dictionary Parameters: {"code":"org_category"}
===Headers===  Cookie:
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64748"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:42.130 [XNIO-1 task-154] [bde2da21614b04c257e07c5a5e0bc978] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /dict/dictionary Parameters: {"code":"flow"}
===Headers===  Cookie:
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64749"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:42.144 [XNIO-1 task-150] [4f6f2f7c40a982a25e4f51c071b81d4f] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /dept/lazy-list Parameters: {"bladeUser":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"管理员","tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}},"dept":{"parentId":"0"},"parentId":0}
===Headers===  Cookie: saber-access-token=… MIPn0VUrIeIY; saber-refresh-token=…
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64750"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth: bearer …
================   Request End   ================
 
 
2021-03-16 15:41:44.829 [XNIO-1 task-145] [c544715de4481ed5db62459a216988cb] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":"1123598815738675201","parentId":"0","code":"desk","name":"工作台","alias":"menu","path":"/desk","source":"iconfont iconicon_airplay","sort":0,"category":1,"action":0,"isOpen":1,"remark":"","isDeleted":0,"children":[{"id":"1123598815738675202","parentId":"1123598815738675201","code":"notice","name":"通知公告","alias":"menu","path":"/desk/notice","source":"iconfont iconicon_sms","sort":1,"category":1,"action":0,"isOpen":1,"remark":null,"isDeleted":0,"parentName":null,"categoryName":null,"actionName":null,"isOpenName":null}…
<=== GET: /menu/routes (2717 ms)
================   Response End   ================
 
 
2021-03-16 15:41:46.654 [XNIO-1 task-144] [afe36646e8a780dcce7a28b703a7221f] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[],"msg":"操作成功"}
<=== GET: /menu/top-menu (4542 ms)
================   Response End   ================
 
 
2021-03-16 15:41:51.286 [XNIO-1 task-152] [ed79e902d938a9e1d374544fed6c5e7d] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":null,"parentId":null,"code":"org_category","dictKey":"1","dictValue":"公司","sort":1,"remark":null,"isSealed":null,"isDeleted":null},{"id":null,"parentId":null,"code":"org_category","dictKey":"2","dictValue":"部门","sort":2,"remark":null,"isSealed":null,"isDeleted":null},{"id":null,"parentId":null,"code":"org_category","dictKey":"3","dictValue":"小组","sort":3,"remark":null,"isSealed":null,"isDeleted":null}],"msg":"操作成功"}
<=== GET: /dict/dictionary (9155 ms)
================   Response End   ================
 
 
2021-03-16 15:41:51.414 [XNIO-1 task-156] [1628ce0e973a34b8828eceda7a28bbe6] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Request Start  ================
===> GET: /menu/buttons Parameters: {"user":{"clientId":"saber","userId":1123598821738675201,"account":"admin","userName":"admin","nickName":"管理员","tenantId":"000000","oauthId":"","deptId":"1326722839840346113","postId":"1334696685180665858","roleId":"1123598816738675201","roleName":"administrator","detail":{"type":"web"}}}
===Headers===  Cookie: saber-access-token=… saber-refresh-token=…
===Headers===  content-length: 0
===Headers===  X-Forwarded-Prefix: /blade-system
===Headers===  Accept: application/json, text/plain, */*
===Headers===  Referer: http://10.0.20.136/
===Headers===  X-Forwarded-Host: 10.0.20.136
===Headers===  User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
===Headers===  X-Forwarded-Proto: http
===Headers===  Accept-Encoding: gzip, deflate
===Headers===  X-Forwarded-Port: 80
===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
===Headers===  host: 10.0.20.135:8106
===Headers===  Forwarded: proto=http;host=10.0.20.136;for="10.0.20.136:64751"
===Headers===  X-Forwarded-For: 192.168.15.60,10.0.20.136
===Headers===  Accept-Language: zh-CN,zh;q=0.9
===Headers===  X-Real-IP: 192.168.15.60
===Headers===  Blade-Auth:
================   Request End   ================
 
 
2021-03-16 15:41:51.852 [XNIO-1 task-153] [76e21ba9682d4153041857d6ca318f2d] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":"1123598820738675201","createUser":"1123598821738675201","createDept":"1123598813738675201","createTime":"2019-01-01 00:00:39","updateUser":"1123598821738675201","updateTime":"2019-01-01 00:00:39","status":1,"isDeleted":0,"tenantId":"000000","tenantName":"管理组","domain":null,"backgroundUrl":null,"linkman":"admin","contactNumber":"666666","address":"管理组","accountNumber":-1,"expireTime":null,"datasourceId":null,"licenseKey":null}],"msg":"操作成功"}
<=== GET: /tenant/select (9735 ms)
================   Response End   ================
 
 
2021-03-16 15:41:53.116 [XNIO-1 task-150] [4f6f2f7c40a982a25e4f51c071b81d4f] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":"1334694468172234754","tenantId":"000000","parentId":"0","deptName":"产品部","fullName":"产品部","ancestors":"0","deptCategory":2,"sort":0,"remark":"","isDeleted":0,"hasChildren":false,"parentName":null,"deptCategoryName":"部门"},{"id":"1349981535378604033","tenantId":"000000","parentId":"0","deptName":"投研部","fullName":"投研部","ancestors":"0","deptCategory":2,"sort":3,"remark":"","isDeleted":0,"hasChildren":false,"parentName":null,"deptCategoryName":"部门"},{"id":"1326722839840346113","tenantId":"000000","parentId":"0","deptName":"信息技术部","fullName":"信息技术部","ancestors":"0","deptCategory":2,"sort":10,"remark":"","isDeleted":0,"hasChildren":false,"parentName":null,"deptCategoryName":"部门"}],"msg":"操作成功"}
<=== GET: /dept/lazy-list (10972 ms)
================   Response End   ================
 
 
2021-03-16 15:41:53.539 [XNIO-1 task-154] [bde2da21614b04c257e07c5a5e0bc978] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":null,"parentId":null,"code":"flow","dictKey":"1","dictValue":"请假流程","sort":1,"remark":"leave","isSealed":null,"isDeleted":null},{"id":null,"parentId":null,"code":"flow","dictKey":"2","dictValue":"报销流程","sort":2,"remark":"expense","isSealed":null,"isDeleted":null}],"msg":"操作成功"}
<=== GET: /dict/dictionary (11408 ms)
================   Response End   ================
 
 
2021-03-16 15:41:53.944 [XNIO-1 task-156] [1628ce0e973a34b8828eceda7a28bbe6] [org.springblade.core.log.aspect.RequestLogAspect]
INFO :
 
================  Response Start  ================
===Result===  {"code":200,"success":true,"data":[{"id":"1328584525572595718","parentId":"1344116294610706434","code":"fund","name":"基金信息设置","alias":"menu","path":"/product/fund","source":"iconfont iconicon_compile","sort":0,"category":null,"action":0,"isOpen":null,"remark":null,"isDeleted":null,"children":[{"id":"1328584525572595719","parentId":"1328584525572595718","code":"fund_add","name":"…
<=== GET: /menu/buttons (2530 ms)
================   Response End   ================




1条回答
  • 2021-03-17 00:24

    看描述,有可能是服务器带宽或者服务器内存资源不够导致。

    你用postman调用纯后端接口,看下返回数据需要多久。你也可以看下部署到线上的版本,接口是秒刷的。另外你可以把服务器公布到外网给一个地址,让我访问测试下看看具体效果如何。

    为了加快前端访问,你可以把cdn下的资料放到cdn,这样访问加载会更快

    image.png

    作者追问:2021-03-17 17:35


    请求后台API访问速度也是很慢


    image.png

    与页面访问没什么区别

    image.png

    作者追问:2021-03-17 17:58

    服务器配置8核16G 查看了服务器指标一切正常,网络问题可以排除,在本地localhost访问也是一样慢

    0 讨论(0)
提交回复