![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Maximum Number of Concurrent cscript.exe at Any One Time We leverage ControlM as our scheduling tool to kick off jobs on our Windows 2003 Server. We have noticed that there seems to be an upper limit regarding the number of concurrent cscript.exe that will run at any point in time under a single users account. We get a return code of 1 back and nothing else returned to stdout. Not even the header declaring what version of WSH we are running and the Microsoft copyright information. It simply fails immediately prior to executing any of the script. The same script gets executed around 100 times a day or so and it seems when we have somewhere around 20+ cscript.exe executing all of a sudden we can't execute anymore and we get failures. I am positive there isn't an error in the script and am most certain that this is something to do with a maximum number of vbscripts executing at a single time. I see no error messages in the event log or anywhere else. The script is a simple vbscript and we run it using the cscript. I have found some vague references to limits and similar problems that others have had regarding this but I have found no solution. I am looking for a solution and hopefully it doesn't involve re-writting my vbs to a bat file. We need to get this fixed asap due to the random nature of the failures and the production impact. Spencer |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time "Spencer" <spencer@xxxxxx> wrote in message news:9deb9e58-8ca1-4d69-a858-c82ff2641a65@xxxxxx Quote: > We leverage ControlM as our scheduling tool to kick off jobs on our > Windows 2003 Server. We have noticed that there seems to be an upper > limit regarding the number of concurrent cscript.exe that will run at > any point in time under a single users account. We get a return code > of 1 back and nothing else returned to stdout. Not even the header > declaring what version of WSH we are running and the Microsoft > copyright information. It simply fails immediately prior to executing > any of the script. The same script gets executed around 100 times a > day or so and it seems when we have somewhere around 20+ cscript.exe > executing all of a sudden we can't execute anymore and we get > failures. I am positive there isn't an error in the script and am > most certain that this is something to do with a maximum number of > vbscripts executing at a single time. I see no error messages in the > event log or anywhere else. The script is a simple vbscript and we > run it using the cscript. I have found some vague references to > limits and similar problems that others have had regarding this but I > have found no solution. I am looking for a solution and hopefully it > doesn't involve re-writting my vbs to a bat file. We need to get this > fixed asap due to the random nature of the failures and the production > impact. > Spencer > typed the following command from the Command Prompt: for /L %a in (10,1,60) do "cmd /c start /b cscript //nologo test.vbs >> test%a.txt" As you probably know, it will launch 50 instances of test.vbs. This script file contains the following lines: wscript.echo Start time wscript.sleep 120000 wscript.echo End time Immediately after the command line had finished, I typed this command: tasklist | find /i /c "cscript.exe" As expected, I saw 50 instances of cscript.exe. Furthermore, after each script had finished its run, each and every file "test%a.txt" contained two lines: One with the time stamp of the start time, the other with the end time stamp. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time "Spencer" <spencer@xxxxxx> wrote in message news:9deb9e58-8ca1-4d69-a858-c82ff2641a65@xxxxxx Quote: > We leverage ControlM as our scheduling tool to kick off jobs on our > Windows 2003 Server. We have noticed that there seems to be an upper > limit regarding the number of concurrent cscript.exe that will run at > any point in time under a single users account. We get a return code > of 1 back and nothing else returned to stdout. Not even the header > declaring what version of WSH we are running and the Microsoft > copyright information. It simply fails immediately prior to executing > any of the script. The same script gets executed around 100 times a > day or so and it seems when we have somewhere around 20+ cscript.exe > executing all of a sudden we can't execute anymore and we get > failures. I am positive there isn't an error in the script and am > most certain that this is something to do with a maximum number of > vbscripts executing at a single time. I see no error messages in the > event log or anywhere else. The script is a simple vbscript and we > run it using the cscript. I have found some vague references to > limits and similar problems that others have had regarding this but I > have found no solution. I am looking for a solution and hopefully it > doesn't involve re-writting my vbs to a bat file. We need to get this > fixed asap due to the random nature of the failures and the production > impact. > Spencer > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time "Pegasus (MVP)" <I.can@xxxxxx> wrote in message news:ebOG8yTDJHA.4916@xxxxxx Quote: > > "Spencer" <spencer@xxxxxx> wrote in message > news:9deb9e58-8ca1-4d69-a858-c82ff2641a65@xxxxxx Quote: >> We leverage ControlM as our scheduling tool to kick off jobs on our >> Windows 2003 Server. We have noticed that there seems to be an upper >> limit regarding the number of concurrent cscript.exe that will run at >> any point in time under a single users account. We get a return code >> of 1 back and nothing else returned to stdout. Not even the header >> declaring what version of WSH we are running and the Microsoft >> copyright information. It simply fails immediately prior to executing >> any of the script. The same script gets executed around 100 times a >> day or so and it seems when we have somewhere around 20+ cscript.exe >> executing all of a sudden we can't execute anymore and we get >> failures. I am positive there isn't an error in the script and am >> most certain that this is something to do with a maximum number of >> vbscripts executing at a single time. I see no error messages in the >> event log or anywhere else. The script is a simple vbscript and we >> run it using the cscript. I have found some vague references to >> limits and similar problems that others have had regarding this but I >> have found no solution. I am looking for a solution and hopefully it >> doesn't involve re-writting my vbs to a bat file. We need to get this >> fixed asap due to the random nature of the failures and the production >> impact. >> Spencer >> > I think you need to dig a little deeper. To prove/disprove your theory, I > typed the following command from the Command Prompt: > > for /L %a in (10,1,60) do "cmd /c start /b cscript //nologo test.vbs >> > test%a.txt" > > As you probably know, it will launch 50 instances of test.vbs. This script > file contains the following lines: > > wscript.echo Start time > wscript.sleep 120000 > wscript.echo End time > > Immediately after the command line had finished, I typed this command: > > tasklist | find /i /c "cscript.exe" > > As expected, I saw 50 instances of cscript.exe. Furthermore, after each > script had finished its run, each and every file "test%a.txt" contained > two lines: One with the time stamp of the start time, the other with the > end time stamp. use of... /Al |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time On Sep 2, 9:01*pm, "Al Dunbar" <AlanD...@xxxxxx> wrote: Quote: > "Pegasus (MVP)" <I....@xxxxxx> wrote in message > > news:ebOG8yTDJHA.4916@xxxxxx > > > > > > > Quote: > > "Spencer" <spen...@xxxxxx> wrote in message > >news:9deb9e58-8ca1-4d69-a858-c82ff2641a65@xxxxxx Quote: > >> We leverage ControlM as our scheduling tool to kick off jobs on our > >> Windows 2003 Server. *We have noticed that there seems to be an upper > >> limit regarding the number of concurrent cscript.exe that will run at > >> any point in time under a single users account. *We get a return code > >> of 1 back and nothing else returned to stdout. *Not even the header > >> declaring what version of WSH we are running and the Microsoft > >> copyright information. *It simply fails immediately prior to executing > >> any of the script. *The same script gets executed around 100 times a > >> day or so and it seems when we have somewhere around 20+ cscript.exe > >> executing all of a sudden we can't execute anymore and we get > >> failures. *I am positive there isn't an error in the script and am > >> most certain that this is something to do with a maximum number of > >> vbscripts executing at a single time. *I see no error messages in the > >> event log or anywhere else. *The script is a simple vbscript and we > >> run it using the cscript. *I have found some vague references to > >> limits and similar problems that others have had regarding this but I > >> have found no solution. *I am looking for a solution and hopefully it > >> doesn't involve re-writting my vbs to a bat file. *We need to get this > >> fixed asap due to the random nature of the failures and the production > >> impact. > >> Spencer Quote: > > I think you need to dig a little deeper. To prove/disprove your theory,I > > typed the following command from the Command Prompt: Quote: > > for /L %a in (10,1,60) do "cmd /c start /b cscript //nologo test.vbs >> > > test%a.txt" Quote: > > As you probably know, it will launch 50 instances of test.vbs. This script > > file contains the following lines: Quote: > > wscript.echo Start time > > wscript.sleep 120000 > > wscript.echo End time Quote: > > Immediately after the command line had finished, I typed this command: Quote: > > tasklist | find /i /c "cscript.exe" Quote: > > As expected, I saw 50 instances of cscript.exe. Furthermore, after each > > script had finished its run, each and every file "test%a.txt" contained > > two lines: One with the time stamp of the start time, the other with the > > end time stamp. > Perhaps it also has something to do with the resources each instances makes > use of... > > /Al- Hide quoted text - > > - Show quoted text - 30+ instances of the exact script that gets executed myself and had no issues. This would cause issue immediately when running through ControlM. I also downloaded Process Explorer from Microsoft and the interesting thing that I see is that all these seperate instances of the script running all tie back to a parent process. In the instance of when I run after logging on I see that the parent process is explorer. However when I look at the scripts that are being run by ControlM they are running under a parent process p_ctmag.exe which is the ControlM Agent. I really wonder if this executable somehow can handle only a maximum number of threads running under it due to limitations regarding Memory or something along those lines. Is this possible at all? It seems odd to me that the parent process would have anything to do with this but in process explorer you can see that for each child process there are additional threads attached to the parent process. Any other way to debug this? |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time It could still be a resources issue, but it looks to me like this particular application may be running into issues. Does it maintain connections with all instances of the scripts? I couldn't see their knowledgebase since they only open it to customers; you may need to explore that side of this though. It's definitely not a problem intrinsic to WSH. This actually may be some kind of a queuing issue for Control-M that can be resolved by tuning the application. "Spencer" <spencer@xxxxxx> wrote in message news:2cbfd4e9-51b2-425d-84fe-7d5978504aa7@xxxxxx Quote: > On Sep 2, 9:01 pm, "Al Dunbar" <AlanD...@xxxxxx> wrote: Quote: >> "Pegasus (MVP)" <I....@xxxxxx> wrote in message Quote: > I did some further testing and logged onto the server myself and ran > 30+ instances of the exact script that gets executed myself and had no > issues. This would cause issue immediately when running through > ControlM. I also downloaded Process Explorer from Microsoft and the > interesting thing that I see is that all these seperate instances of > the script running all tie back to a parent process. In the instance > of when I run after logging on I see that the parent process is > explorer. However when I look at the scripts that are being run by > ControlM they are running under a parent process p_ctmag.exe which is > the ControlM Agent. I really wonder if this executable somehow can > handle only a maximum number of threads running under it due to > limitations regarding Memory or something along those lines. Is this > possible at all? It seems odd to me that the parent process would > have anything to do with this but in process explorer you can see that > for each child process there are additional threads attached to the > parent process. Any other way to debug this? |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Maximum Number of Concurrent cscript.exe at Any One Time On Sep 3, 9:36*am, "Alex K. Angelopoulos" <aka(at)mvps.org> wrote: Quote: > It could still be a resources issue, but it looks to me like this particular > application may be running into issues. Does it maintain connections with > all instances of the scripts? > > I couldn't see their knowledgebase since they only open it to customers; you > may need to explore that side of this though. It's definitely not a problem > intrinsic to WSH. This actually may be some kind of a queuing issue for > Control-M that can be resolved by tuning the application. > > "Spencer" <spen...@xxxxxx> wrote in message > > news:2cbfd4e9-51b2-425d-84fe-7d5978504aa7@xxxxxx > > > Quote: > > On Sep 2, 9:01 pm, "Al Dunbar" <AlanD...@xxxxxx> wrote: Quote: > >> "Pegasus (MVP)" <I....@xxxxxx> wrote in message > > 30+ instances of the exact script that gets executed myself and had no > > issues. *This would cause issue immediately when running through > > ControlM. *I also downloaded Process Explorer from Microsoft and the > > interesting thing that I see is that all these seperate instances of > > the script running all tie back to a parent process. *In the instance > > of when I run after logging on I see that the parent process is > > explorer. *However when I look at the scripts that are being run by > > ControlM they are running under a parent process p_ctmag.exe which is > > the ControlM Agent. *I really wonder if this executable somehow can > > handle only a maximum number of threads running under it due to > > limitations regarding Memory or something along those lines. *Is this > > possible at all? *It seems odd to me that the parent process would > > have anything to do with this but in process explorer you can see that > > for each child process there are additional threads attached to the > > parent process. *Any other way to debug this?- Hide quoted text - > - Show quoted text - in good ol' dos batch scripting. Can't beat parsing text files in dos..sure is fun. Anyways I am not sure what the problem is but we continue to have it. I also noticed the following items in the event viewer on Friday when we had some additional errors. Event Type: Information Event Source: Application Popup Event Category: None Event ID: 26 Description: Application popup: CScript.exe - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Maximum number of recipients in BCC field | VB Script | |||
| Is there a maximum number of message recipients | Vista mail | |||
| Maximum number of active scopes | PowerShell | |||
| Number of Concurrent Connections | Vista networking & sharing | |||
| Maximum number of fonts | Vista General | |||