ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.16k stars 648 forks source link

I add a custom page then compile front page but i got a crush #8623

Closed longyigongzi closed 3 weeks ago

longyigongzi commented 1 month ago

I rum cmd npm run build got a crush.then i found when compile 'third-party': "./assets/third-party.js" will happen this issue . image

Is there any tips for this.

`root@OCTEONTX:/home/ntopng/ntopng# npm run build

ntopng@5.7.0 build npm run css:lint && webpack --mode=production --config webpack.prod.js; rm -fr httpdocs/dist/; mv httpdocs/tmp-dist/ httpdocs/dist;rollup -c

ntopng@5.7.0 css:lint stylelint './http_src/*/.scss' || true

<--- Last few GCs --->

[12686:0xfffe84000d60] 3474 ms: Scavenge 157.8 (177.4) -> 149.4 (181.4) MB, 12.1 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure; [12686:0xfffe84000d60] 3636 ms: Scavenge 162.2 (181.9) -> 153.8 (185.6) MB, 9.7 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure; [12686:0xfffe84000d60] 3799 ms: Scavenge 166.4 (186.1) -> 157.9 (190.1) MB, 11.6 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure; `

longyigongzi commented 1 month ago

I have try increase memory , but it does't work .

"fix-memory-limit": "cross-env LIMIT=8048 increase-memory-limit",