Is there a Windows limit to the number Process objects you can create and start?












2














It seems there are questions close to this, but none I have seen involve the actual .Net Process object. Currently, I am using a Process object to start an external executable and read data from it in C#. This happens once for each collection point that I must monitor data for. However, when I have to monitor 5 or more collection points my process for the fifth collection point is killed before I can collect any data from it. The code used to start the Process object is list below. Any help is appreciated.



    procCollectionMonitor = new Process();
procCollectionMonitor.StartInfo.FileName = options.CollectionMonitorProcessPath;

procCollectionMonitor.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(options.CollectionMonitorProcessPath);
procCollectionMonitor.StartInfo.ErrorDialog = false;

procCollectionMonitor.StartInfo.UseShellExecute = false;

procCollectionMonitor.EnableRaisingEvents = true;
procCollectionMonitor.Exited += spawn_Exited;
procCollectionMonitor.Start();


This application is a Windows Service, that runs on Windows Server 2008 R2. As I said before, this issue only occurs when 5 or more collection points are started. Instances where 4 or less are needed have no problems.










share|improve this question


















  • 1




    Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
    – Yann Ramin
    Oct 1 '12 at 20:05










  • It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
    – Harry Johnston
    Oct 1 '12 at 21:27










  • You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
    – Chris O
    Oct 1 '12 at 23:21










  • I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
    – jnich91
    Oct 4 '12 at 14:32
















2














It seems there are questions close to this, but none I have seen involve the actual .Net Process object. Currently, I am using a Process object to start an external executable and read data from it in C#. This happens once for each collection point that I must monitor data for. However, when I have to monitor 5 or more collection points my process for the fifth collection point is killed before I can collect any data from it. The code used to start the Process object is list below. Any help is appreciated.



    procCollectionMonitor = new Process();
procCollectionMonitor.StartInfo.FileName = options.CollectionMonitorProcessPath;

procCollectionMonitor.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(options.CollectionMonitorProcessPath);
procCollectionMonitor.StartInfo.ErrorDialog = false;

procCollectionMonitor.StartInfo.UseShellExecute = false;

procCollectionMonitor.EnableRaisingEvents = true;
procCollectionMonitor.Exited += spawn_Exited;
procCollectionMonitor.Start();


This application is a Windows Service, that runs on Windows Server 2008 R2. As I said before, this issue only occurs when 5 or more collection points are started. Instances where 4 or less are needed have no problems.










share|improve this question


















  • 1




    Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
    – Yann Ramin
    Oct 1 '12 at 20:05










  • It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
    – Harry Johnston
    Oct 1 '12 at 21:27










  • You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
    – Chris O
    Oct 1 '12 at 23:21










  • I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
    – jnich91
    Oct 4 '12 at 14:32














2












2








2


0





It seems there are questions close to this, but none I have seen involve the actual .Net Process object. Currently, I am using a Process object to start an external executable and read data from it in C#. This happens once for each collection point that I must monitor data for. However, when I have to monitor 5 or more collection points my process for the fifth collection point is killed before I can collect any data from it. The code used to start the Process object is list below. Any help is appreciated.



    procCollectionMonitor = new Process();
procCollectionMonitor.StartInfo.FileName = options.CollectionMonitorProcessPath;

procCollectionMonitor.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(options.CollectionMonitorProcessPath);
procCollectionMonitor.StartInfo.ErrorDialog = false;

procCollectionMonitor.StartInfo.UseShellExecute = false;

procCollectionMonitor.EnableRaisingEvents = true;
procCollectionMonitor.Exited += spawn_Exited;
procCollectionMonitor.Start();


This application is a Windows Service, that runs on Windows Server 2008 R2. As I said before, this issue only occurs when 5 or more collection points are started. Instances where 4 or less are needed have no problems.










share|improve this question













It seems there are questions close to this, but none I have seen involve the actual .Net Process object. Currently, I am using a Process object to start an external executable and read data from it in C#. This happens once for each collection point that I must monitor data for. However, when I have to monitor 5 or more collection points my process for the fifth collection point is killed before I can collect any data from it. The code used to start the Process object is list below. Any help is appreciated.



    procCollectionMonitor = new Process();
procCollectionMonitor.StartInfo.FileName = options.CollectionMonitorProcessPath;

procCollectionMonitor.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(options.CollectionMonitorProcessPath);
procCollectionMonitor.StartInfo.ErrorDialog = false;

procCollectionMonitor.StartInfo.UseShellExecute = false;

procCollectionMonitor.EnableRaisingEvents = true;
procCollectionMonitor.Exited += spawn_Exited;
procCollectionMonitor.Start();


This application is a Windows Service, that runs on Windows Server 2008 R2. As I said before, this issue only occurs when 5 or more collection points are started. Instances where 4 or less are needed have no problems.







c# .net windows process windows-server-2008-r2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 1 '12 at 19:54









jnich91

413




413








  • 1




    Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
    – Yann Ramin
    Oct 1 '12 at 20:05










  • It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
    – Harry Johnston
    Oct 1 '12 at 21:27










  • You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
    – Chris O
    Oct 1 '12 at 23:21










  • I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
    – jnich91
    Oct 4 '12 at 14:32














  • 1




    Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
    – Yann Ramin
    Oct 1 '12 at 20:05










  • It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
    – Harry Johnston
    Oct 1 '12 at 21:27










  • You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
    – Chris O
    Oct 1 '12 at 23:21










  • I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
    – jnich91
    Oct 4 '12 at 14:32








1




1




Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
– Yann Ramin
Oct 1 '12 at 20:05




Personally, I would not be using processes for this. Do you control what the process is doing? If so, use another mechanism to multiplex data.
– Yann Ramin
Oct 1 '12 at 20:05












It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
– Harry Johnston
Oct 1 '12 at 21:27




It seems very unlikely. Have you checked whether the same thing happens if you start five copies of the external executable from the command line? Perhaps the executable itself is limiting the number of simultaneous instances.
– Harry Johnston
Oct 1 '12 at 21:27












You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
– Chris O
Oct 1 '12 at 23:21




You might want to catch any exceptions thrown by the failing 5th process, and analyze that. But to answer your question, no magic number limit. The only real limit will be available system resources.
– Chris O
Oct 1 '12 at 23:21












I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
– jnich91
Oct 4 '12 at 14:32




I did not mention this in the original post, but when I run the project in VS, it will start all 5 process with no problem. They do not run in the background but they all start and work properly. The issue only occurs when installed as a windows service and it starts the processes in the background.
– jnich91
Oct 4 '12 at 14:32












2 Answers
2






active

oldest

votes


















2














Since you are using a Windows Service, there is definitely a limit. The limit can be controlled through Desktop Heap. Check the below answer for more details on this:



How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits



You simply need to do the following:



Go to regEdit, and navigate to the key:




HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession
ManagerSubSystems




Edit the key named "Windows" from:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,768 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




to:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




Also this is supposed to fix the issue, I believe the optimum solution will be to find a work around to start the process independent from the Window service (which till now I don't know how)



Updated:
I found a workaround to solve this issue... you can use the method "CreateProcessAsUser" for more details please check the below link:



https://www.codeproject.com/Articles/35773//Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite






share|improve this answer



















  • 1




    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Poul Bak
    Nov 12 '18 at 1:10



















1














There is no practical limit to the number of processes you can start. Starting five should certainly not be a problem. Your use of C# and .NET will not have an impact. The Process class in .NET is just a managed wrapper for the Win32 CreateProcess and ShellExecuteEx APIs. The problem must lie with program that you're launching. You'll need to analyze it to figure out what's going on.






share|improve this answer





















  • The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
    – jnich91
    Oct 4 '12 at 14:33










  • That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
    – Peter Ruderman
    Oct 5 '12 at 2:35










  • @Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
    – Sufyan Jabr
    Nov 13 '18 at 1:01










  • That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
    – Peter Ruderman
    Nov 13 '18 at 2:09













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12680100%2fis-there-a-windows-limit-to-the-number-process-objects-you-can-create-and-start%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














Since you are using a Windows Service, there is definitely a limit. The limit can be controlled through Desktop Heap. Check the below answer for more details on this:



How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits



You simply need to do the following:



Go to regEdit, and navigate to the key:




HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession
ManagerSubSystems




Edit the key named "Windows" from:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,768 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




to:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




Also this is supposed to fix the issue, I believe the optimum solution will be to find a work around to start the process independent from the Window service (which till now I don't know how)



Updated:
I found a workaround to solve this issue... you can use the method "CreateProcessAsUser" for more details please check the below link:



https://www.codeproject.com/Articles/35773//Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite






share|improve this answer



















  • 1




    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Poul Bak
    Nov 12 '18 at 1:10
















2














Since you are using a Windows Service, there is definitely a limit. The limit can be controlled through Desktop Heap. Check the below answer for more details on this:



How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits



You simply need to do the following:



Go to regEdit, and navigate to the key:




HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession
ManagerSubSystems




Edit the key named "Windows" from:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,768 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




to:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




Also this is supposed to fix the issue, I believe the optimum solution will be to find a work around to start the process independent from the Window service (which till now I don't know how)



Updated:
I found a workaround to solve this issue... you can use the method "CreateProcessAsUser" for more details please check the below link:



https://www.codeproject.com/Articles/35773//Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite






share|improve this answer



















  • 1




    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Poul Bak
    Nov 12 '18 at 1:10














2












2








2






Since you are using a Windows Service, there is definitely a limit. The limit can be controlled through Desktop Heap. Check the below answer for more details on this:



How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits



You simply need to do the following:



Go to regEdit, and navigate to the key:




HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession
ManagerSubSystems




Edit the key named "Windows" from:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,768 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




to:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




Also this is supposed to fix the issue, I believe the optimum solution will be to find a work around to start the process independent from the Window service (which till now I don't know how)



Updated:
I found a workaround to solve this issue... you can use the method "CreateProcessAsUser" for more details please check the below link:



https://www.codeproject.com/Articles/35773//Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite






share|improve this answer














Since you are using a Windows Service, there is definitely a limit. The limit can be controlled through Desktop Heap. Check the below answer for more details on this:



How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits



You simply need to do the following:



Go to regEdit, and navigate to the key:




HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession
ManagerSubSystems




Edit the key named "Windows" from:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,768 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




to:




%SystemRoot%system32csrss.exe ObjectDirectory=Windows
SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows
ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16




Also this is supposed to fix the issue, I believe the optimum solution will be to find a work around to start the process independent from the Window service (which till now I don't know how)



Updated:
I found a workaround to solve this issue... you can use the method "CreateProcessAsUser" for more details please check the below link:



https://www.codeproject.com/Articles/35773//Articles/35773/Subverting-Vista-UAC-in-Both-32-and-64-bit-Archite







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 19 '18 at 6:38

























answered Nov 12 '18 at 0:29









Sufyan Jabr

584212




584212








  • 1




    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Poul Bak
    Nov 12 '18 at 1:10














  • 1




    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Poul Bak
    Nov 12 '18 at 1:10








1




1




While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
– Poul Bak
Nov 12 '18 at 1:10




While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
– Poul Bak
Nov 12 '18 at 1:10













1














There is no practical limit to the number of processes you can start. Starting five should certainly not be a problem. Your use of C# and .NET will not have an impact. The Process class in .NET is just a managed wrapper for the Win32 CreateProcess and ShellExecuteEx APIs. The problem must lie with program that you're launching. You'll need to analyze it to figure out what's going on.






share|improve this answer





















  • The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
    – jnich91
    Oct 4 '12 at 14:33










  • That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
    – Peter Ruderman
    Oct 5 '12 at 2:35










  • @Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
    – Sufyan Jabr
    Nov 13 '18 at 1:01










  • That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
    – Peter Ruderman
    Nov 13 '18 at 2:09


















1














There is no practical limit to the number of processes you can start. Starting five should certainly not be a problem. Your use of C# and .NET will not have an impact. The Process class in .NET is just a managed wrapper for the Win32 CreateProcess and ShellExecuteEx APIs. The problem must lie with program that you're launching. You'll need to analyze it to figure out what's going on.






share|improve this answer





















  • The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
    – jnich91
    Oct 4 '12 at 14:33










  • That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
    – Peter Ruderman
    Oct 5 '12 at 2:35










  • @Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
    – Sufyan Jabr
    Nov 13 '18 at 1:01










  • That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
    – Peter Ruderman
    Nov 13 '18 at 2:09
















1












1








1






There is no practical limit to the number of processes you can start. Starting five should certainly not be a problem. Your use of C# and .NET will not have an impact. The Process class in .NET is just a managed wrapper for the Win32 CreateProcess and ShellExecuteEx APIs. The problem must lie with program that you're launching. You'll need to analyze it to figure out what's going on.






share|improve this answer












There is no practical limit to the number of processes you can start. Starting five should certainly not be a problem. Your use of C# and .NET will not have an impact. The Process class in .NET is just a managed wrapper for the Win32 CreateProcess and ShellExecuteEx APIs. The problem must lie with program that you're launching. You'll need to analyze it to figure out what's going on.







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 2 '12 at 13:39









Peter Ruderman

10.1k2352




10.1k2352












  • The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
    – jnich91
    Oct 4 '12 at 14:33










  • That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
    – Peter Ruderman
    Oct 5 '12 at 2:35










  • @Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
    – Sufyan Jabr
    Nov 13 '18 at 1:01










  • That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
    – Peter Ruderman
    Nov 13 '18 at 2:09




















  • The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
    – jnich91
    Oct 4 '12 at 14:33










  • That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
    – Peter Ruderman
    Oct 5 '12 at 2:35










  • @Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
    – Sufyan Jabr
    Nov 13 '18 at 1:01










  • That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
    – Peter Ruderman
    Nov 13 '18 at 2:09


















The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
– jnich91
Oct 4 '12 at 14:33




The only issue I have with that is I do not have the source for the program being launched. It is a 3rd party application.
– jnich91
Oct 4 '12 at 14:33












That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
– Peter Ruderman
Oct 5 '12 at 2:35




That does make things a lot tougher. If you're feeling ambitious, you can try some black box debugging using tools like Process Monitor. Otherwise, you'll have to contact the vendor for support or find away to make do with a maximum of four processes.
– Peter Ruderman
Oct 5 '12 at 2:35












@Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
– Sufyan Jabr
Nov 13 '18 at 1:01




@Peter this is been tested on many apps including notepad, as long as you are calling from windows service the issue will happen.
– Sufyan Jabr
Nov 13 '18 at 1:01












That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
– Peter Ruderman
Nov 13 '18 at 2:09






That depends entirely on the load on the system. I've written Windows services that have launched dozens of child processes without any issue. There is nothing magical about Windows services that alters the way processes are launched.
– Peter Ruderman
Nov 13 '18 at 2:09




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12680100%2fis-there-a-windows-limit-to-the-number-process-objects-you-can-create-and-start%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation