Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Linux上部署会出现管理页面加载main.js过大的问题,访问极慢,请修复,谢谢 #4852

Closed
pangyandong opened this issue Feb 2, 2021 · 7 comments · Fixed by #5199
Assignees
Labels
area/Nacos console Related to Nacos consle help wanted Extra attention is needed

Comments

@pangyandong
Copy link

Nacos部署在Windows系统上main为1M左右,属于正常范围,但是部署在Linux上,输入ip:8848/nacos访问,会等大约1分钟才会出现登录页面,查看网络请求,发现main.js竟然加载了9.6M,显然不正常。本人使用本地虚拟机搭建Linux再次测试,问题依然存在。(注:最新bate版本和最新稳定版本都这样)。附件:Linux上加载的main.js文件
Linux加载的的main.zip

@KomachiSion KomachiSion added area/Nacos console Related to Nacos consle kind/research labels Feb 2, 2021
@KomachiSion KomachiSion added the help wanted Extra attention is needed label Feb 2, 2021
@KomachiSion
Copy link
Collaborator

KomachiSion commented Feb 2, 2021

社区有没有前端大神帮忙看下,我看源码里main.js才1.4M

刚才看错分支了,最新分支是9.2M

就是社区不断加功能,js现在就是这么大了。。

@KeRan213539
Copy link
Collaborator

win10下也有同样问题, 1.4.1

@KomachiSion KomachiSion added help wanted Extra attention is needed and removed help wanted Extra attention is needed kind/research labels Feb 2, 2021
@KomachiSion
Copy link
Collaborator

如何瘦身或者拆分需要社区里前端大神们帮助了。

@pangyandong
Copy link
Author

查看源码验证了一下:
2.0.0-ALPHA.2版本main.js大小:9.2M
2.0.0-ALPHA.1版本main.js大小:1.34M
1.4.1版本main.js大小:9.2M
1.4.0以下版本main.js大小:1.3M左右

@pangyandong
Copy link
Author

社区有没有前端大神帮忙看下,我看源码里main.js才1.4M

刚才看错分支了,最新分支是9.2M

就是社区不断加功能,js现在就是这么大了。。

@pangyandong
Copy link
Author

社区有没有前端大神帮忙看下,我看源码里main.js才1.4M

刚才看错分支了,最新分支是9.2M

就是社区不断加功能,js现在就是这么大了。。

2.0.0-ALPHA.2版本main.js大小:9.2M
2.0.0-ALPHA.1版本main.js大小:1.34M
1.4.1版本main.js大小:9.2M
1.4.0以下版本main.js大小:1.3M左右

KeRan213539 added a commit to KeRan213539/nacos that referenced this issue Mar 26, 2021
KomachiSion pushed a commit that referenced this issue Mar 26, 2021
@dakai6677
Copy link

1.4.1版本不升级的话 怎么解决main.js过大的问题 直接替换吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Nacos console Related to Nacos consle help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants