nuxt
nuxt copied to clipboard
nuxt start this node process,As time goes on (or the number of visits increases), more and more memory is used
Versions
- nuxt: v2.15.3
- node: v14.19.1
Reproduction
this is my blog: https://hsslive.cn/ ,memory leak is happen it
fitst start,memory useage is small 2022/6/23 15:30:00: node /node/nuxt-blog-client/node_modules/.bin/nuxt start memory useage:3.0% ... but memory usage will more and more 2022/6/25 15:30:00: node /node/nuxt-blog-client/node_modules/.bin/nuxt start memory useage:45%
Steps to reproduce
I suspect so fetch or asyncData cause memory leak?i no use nuxtServerInit
What is Expected?
no memory leak
What is actually happening?
memory leak
i has a friend,his project is nuxt too,also have this problem
Does anyone encounter similar problems,The source code is here: https://github.com/galaxy-s10/nuxt-blog-client
@antfu ,大佬请问下nuxt2会有啥地方会导致内存泄漏吗,我nuxt部署的博客随着时间或者访问量的增加,nuxt start这个node进程占用的内存就一直增加,原本刚启动是占了3%内存,后面过一两天就占了4,50%内存,导致服务器内存不足卡死,
@antfu ,大佬请问下nuxt2会有啥地方会导致内存泄漏吗,我nuxt部署的博客随着时间或者访问量的增加,nuxt start这个node进程占用的内存就一直增加,原本刚启动是占了3%内存,后面过一两天就占了4,50%内存,导致服务器内存不足卡死,
请问问题解决了吗?我现在使用的nuxt3 将项目build后通过PM2启动后,也是进程的内存占用率会随着页面的访问量明显上升