I have to kill frequently few processes(services) on my developer machine to release memory used by it. And I cannot turn them off. At this moment I’m doing that manually in ProcessExplorer, but I think that there should be more automatic way.
I think that the best way is to add tool button to Visual Studio (I’ve added already such button that recycle IIS).
How to add tool button that will kill few processes by name (for example owstimer.exe and w3wp.exe). Or maybe you know an addin that could help me?
The simplest way is to create a Macro in visual studio which enumerate processes and kill ones that correspond to your requirements.
Another solution is to create a custom .bat file with calls to
taskkill /im thexe.exe /f. Then add in Visual Studio an entry in custom tools.Instead of taskkill, you can also do a cleaner
net stop OWSTIMERoriisreset /stop.This will avoid killing the app, and shutdown properly the services.
A final word, some visual studio extensions (I think about WSPBuilder and/or CKSDev) add buttons that recycle SharePoint process.