6/29/2023 0 Comments Node js windows serviceYou need to save any of these files under c:\home\site\wwwroot\ or d:\home\site\wwwroot\ (In any scenario that applies to you) Since Azure App Service Windows uses IIS as the main http web server and iisnode (native IIS module) that allow hosting your node.js applications, you can use an iisnode.yml file or web.config to configure this profiler. To enable the profiler just add the -prof flag as followed: node -prof server.js This is mostly useful just for CPU traces.Ĭonfiguration. It records the results of these samples, along with important optimization events such as jit compiles, as a series of ticks. The built-in profiler uses the profiler inside V8 which samples the stack at regular intervals during program execution. Here is a list of tools you can use instead: High CPU node –prof There are some third-party libraries that are not compatible when installating due of the Azure App Service Windows’s platform (ia32), in those scenarios you will need to build the packages based on that platform, review this thread for further reference. For those scenarios you can configure a Node.js profiler for your application. When dealing with High CPU/Memory scenarios in App Service Windows, the best recommendation is to profile your app in your local environment, but sometimes it is hard to reproduce the issue specially not having the same request load or environment. Troubleshooting Node.js High CPU and Memory scenarios in App Service Windows
0 Comments
Leave a Reply. |