我一个web应用打包之后36M作用,但是跑起来占用内存7,800M,这正常么?如果不正常怎么去检测是哪个地方占用了大量内存啊?
伊谢尔伦2017-04-18 09:39:18
How much memory a program takes up when running has nothing to do with the amount of your code. It has something to do with how your code is written. A few lines of code can also cause the memory to explode. To analyze the memory usage, just dump the heap memory and see if The program has always maintained 7,800M of memory, indicating that there is no memory leak or other problem.