Limit CPU usage of Perl for Remote Desktop Users
Posted on 2013-11-08
we are running Windows Server 2008 and a couple of our users who remote desktop into the server run a Perl via batch files that maxes out the CPU for a lengthy period of time.
It's not possible to slow the Perl scripts down with a sleep as there are too many of them so I'm now looking at Windows System Resource Manager.
I have it installed and have tried creating a process Matching Criteria by using user or group Matching but am running into trouble.
I can add the two users who run these scripts but when I go to add the Perl application -> Add -> Files or Command Line -> Running Process -> Add and select Perl.exe it complained that "cannot start with a hyphen (-) and cannot contain spaces or the following characters: , \ / * ; ? : " | - < or >."
My next step was to get one of our staff to run a process and this time I managed to add it ok but it's added as one of the 200 or so batch processes rather than Perl and it would take me a long time to add them individually.
How can I throttle perl for just these two users?