10/31/2023 0 Comments Pm2 monitSo- if you manage a simple python app with PM2: import time Wouldn’t it be great if we could use regular old print() to generate logs! Well, this is where I’m currently stuck. After much wrangling, I found this parameter, which can be used in the approach, or using the javascript API approach: Try it and see what I mean (it’s in Task Manager, under background processes). Will launch TD, but it will be “invisible”. Pm2 start "C:\Program Files\Derivative\TouchDesigner\bin\TouchDesigner.exe" - "C:\00-running-td-with-pm2\test.toe" My first stumbling block was figuring out how to get Touchdesigner to be “visible” on launch. I’ve been working through some initial tests, and wanted to report some findings (all Windows, no Mac testing). For process managing in installations, it seems like a very viable, robust tool. This allows you to specify more details about the application, such as the name, script to run, number of instances, and more.Starting a general discussion about TouchDesigner and PM2 ( ). Process Fileįor more complex applications, PM2 enables you to define the application configuration in a process file (either JavaScript, JSON, or YAML format). The ‘max’ option will spawn as many processes as there are cores available on the machine. To start an application in cluster mode, use the -i option followed by the number of instances you want: pm2 start app.js -i max This can drastically improve the performance and reliability of your application. If you’re running applications on multi-core systems, PM2’s Cluster mode can help you utilize all available cores by spawning a process for each one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |