egg icon indicating copy to clipboard operation
egg copied to clipboard

npm run start 启动异常的慢

Open yewenhua opened this issue 4 years ago • 4 comments

[egg-scripts] Wait Start: 186... [egg-scripts] Wait Start: 187... [egg-scripts] Wait Start: 188... [egg-scripts] Wait Start: 189... [egg-scripts] Wait Start: 190... [egg-scripts] Wait Start: 191... [egg-scripts] Wait Start: 192... [egg-scripts] Wait Start: 193... [egg-scripts] egg started on http://127.0.0.1:7001

启动花了将近200秒,每次都如此

yewenhua avatar Apr 19 '21 01:04 yewenhua

检查 run/application_timing.json 文件,还有启动日志 master-stdout ,看看是哪个插件启动慢

atian25 avatar Apr 19 '21 01:04 atian25

有更多信息吗?

hyj1991 avatar Aug 05 '21 07:08 hyj1991

我这边也复现了,启动花费时间长。 基本就是使用egg 初始化就会有这个问题。 依赖部分如下:

 "dependencies": {
    "@eggjs/http-proxy": "^1.1.0",
    "egg": "^2.15.1",
    "egg-scripts": "^2.11.0"
  },
  "devDependencies": {
    "autod": "^3.0.1",
    "autod-egg": "^1.1.0",
    "egg-bin": "^4.11.0",
    "egg-ci": "^1.11.0",
    "egg-mock": "^3.21.0",
    "eslint": "^5.13.0",
    "eslint-config-egg": "^7.1.0"
  },

posuihushui avatar Sep 19 '22 08:09 posuihushui