Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get the Process ID of a worker process in a web application?

I have an application that runs in an application pool that has muliple worker processes.

I need to access the process id in the controller to check some issues I have since I changed the application pool to use multiple worker processes.

like image 284
Mathias F Avatar asked Oct 22 '12 13:10

Mathias F


1 Answers

This gets the process id

System.Diagnostics.Process.GetCurrentProcess().Id
like image 187
Mathias F Avatar answered Oct 18 '22 04:10

Mathias F