System Process Stops for no reason Windows Server 2016












1















public void startTraining(bool initial)
{
int maxBatches = 100;
int increment = 100;

string ioFile = "";
string ioFilePath = "C:\pathOfCfg";

while (maxBatches <= 5000)
{
if (maxBatches == increment)
{

string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\File\", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}
Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.wait
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFile Path= rootPath + "\" + project.ID + "\File\" + ioFile ;
initial = false;
p.Close();

}
else
{
string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}

Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;

p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFilePath = rootPath + "\" + project.ID + "\File\" + ioFile;
p.Close();
}
maxBatches += increment;
}
}


I have a function like that which works on server and iteratively takes the output file comes from the process before how ever after 5 times of work it stops giving output. It writes nothing. I thought if the process stops or is there a timeout mechanism or if the process does not work because it is out of memory (but when I run it from cmd it works fine for the 6th iteration) do you have any suggestions or wisdom about that?
ps:Files and working directories are working fine



        Task.Run(() => startTraining());


This method is used to call this asynchrounisly is this task being closed after a while ?










share|improve this question

























  • does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

    – Marc Gravell
    Nov 23 '18 at 12:13











  • the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

    – Johnyy66554
    Nov 23 '18 at 13:00
















1















public void startTraining(bool initial)
{
int maxBatches = 100;
int increment = 100;

string ioFile = "";
string ioFilePath = "C:\pathOfCfg";

while (maxBatches <= 5000)
{
if (maxBatches == increment)
{

string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\File\", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}
Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.wait
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFile Path= rootPath + "\" + project.ID + "\File\" + ioFile ;
initial = false;
p.Close();

}
else
{
string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}

Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;

p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFilePath = rootPath + "\" + project.ID + "\File\" + ioFile;
p.Close();
}
maxBatches += increment;
}
}


I have a function like that which works on server and iteratively takes the output file comes from the process before how ever after 5 times of work it stops giving output. It writes nothing. I thought if the process stops or is there a timeout mechanism or if the process does not work because it is out of memory (but when I run it from cmd it works fine for the 6th iteration) do you have any suggestions or wisdom about that?
ps:Files and working directories are working fine



        Task.Run(() => startTraining());


This method is used to call this asynchrounisly is this task being closed after a while ?










share|improve this question

























  • does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

    – Marc Gravell
    Nov 23 '18 at 12:13











  • the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

    – Johnyy66554
    Nov 23 '18 at 13:00














1












1








1








public void startTraining(bool initial)
{
int maxBatches = 100;
int increment = 100;

string ioFile = "";
string ioFilePath = "C:\pathOfCfg";

while (maxBatches <= 5000)
{
if (maxBatches == increment)
{

string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\File\", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}
Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.wait
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFile Path= rootPath + "\" + project.ID + "\File\" + ioFile ;
initial = false;
p.Close();

}
else
{
string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}

Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;

p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFilePath = rootPath + "\" + project.ID + "\File\" + ioFile;
p.Close();
}
maxBatches += increment;
}
}


I have a function like that which works on server and iteratively takes the output file comes from the process before how ever after 5 times of work it stops giving output. It writes nothing. I thought if the process stops or is there a timeout mechanism or if the process does not work because it is out of memory (but when I run it from cmd it works fine for the 6th iteration) do you have any suggestions or wisdom about that?
ps:Files and working directories are working fine



        Task.Run(() => startTraining());


This method is used to call this asynchrounisly is this task being closed after a while ?










share|improve this question
















public void startTraining(bool initial)
{
int maxBatches = 100;
int increment = 100;

string ioFile = "";
string ioFilePath = "C:\pathOfCfg";

while (maxBatches <= 5000)
{
if (maxBatches == increment)
{

string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\File\", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}
Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.wait
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFile Path= rootPath + "\" + project.ID + "\File\" + ioFile ;
initial = false;
p.Close();

}
else
{
string serverCmd = "/c HeavyProcessString;
using (StreamWriter cmdFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "cmdCommands_" + maxBatches + ".txt")))
{
cmdFile.WriteLine(serverCmd);
}

Process p = new Process();
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;

p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "C:\Windows\system32\cmd.exe";
p.StartInfo.Arguments = serverCmd;
p.Start();

try
{
string op = p.StandardOutput.ReadToEnd();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}
catch (Exception ex)
{
string op = ex.ToString();
using (StreamWriter outputFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "output_catch" + maxBatches + ".txt")))
{
outputFile.WriteLine(op);
}
}

try
{
string ep = p.StandardError.ReadToEnd();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}
catch (Exception ex)
{
string ep = ex.ToString();
using (StreamWriter errorFile = new StreamWriter(Path.Combine(rootPath + "\" + project.ID + "\Train", "error_catch" + maxBatches + ".txt")))
{
errorFile.WriteLine(ep);
}
}

ioFile = maxBatches + "_.io";
ioFilePath = rootPath + "\" + project.ID + "\File\" + ioFile;
p.Close();
}
maxBatches += increment;
}
}


I have a function like that which works on server and iteratively takes the output file comes from the process before how ever after 5 times of work it stops giving output. It writes nothing. I thought if the process stops or is there a timeout mechanism or if the process does not work because it is out of memory (but when I run it from cmd it works fine for the 6th iteration) do you have any suggestions or wisdom about that?
ps:Files and working directories are working fine



        Task.Run(() => startTraining());


This method is used to call this asynchrounisly is this task being closed after a while ?







c# process asp.net-core-2.0 windows-server-2016






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 13:22







Johnyy66554

















asked Nov 23 '18 at 11:59









Johnyy66554Johnyy66554

255




255













  • does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

    – Marc Gravell
    Nov 23 '18 at 12:13











  • the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

    – Johnyy66554
    Nov 23 '18 at 13:00



















  • does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

    – Marc Gravell
    Nov 23 '18 at 12:13











  • the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

    – Johnyy66554
    Nov 23 '18 at 13:00

















does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

– Marc Gravell
Nov 23 '18 at 12:13





does the process terminate, or does it stay running but without visible output? if the latter: have you considered a process dump and looking at the threads/stacks in the dump file?

– Marc Gravell
Nov 23 '18 at 12:13













the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

– Johnyy66554
Nov 23 '18 at 13:00





the cmd 600 file is being created but the rest did not come i am not sure if the process is alive or is killed ...

– Johnyy66554
Nov 23 '18 at 13:00












2 Answers
2






active

oldest

votes


















0














Does it stop in 20 minutes? If yes check your ISS pool advantaged settings and make the idle time wait 0 or something longer






share|improve this answer
























  • I am checking it

    – Johnyy66554
    Nov 26 '18 at 7:41











  • Application pool advataged setttings idle time = 0 (default 20) it's working now

    – Johnyy66554
    Nov 26 '18 at 8:16



















0














You are going to need to read both from standerd output and error at the same time. Likey what is happening is the buffer for standard error is getting full and the progam freezes till it something reads from it (nothing will).



You need to either have your standard error read on another thread or you need to use the event based version of reading standard error to read your errors and put your code to write out to the file in there. See the remarks section of that link for specific instructions on what you need to do to make it work.






share|improve this answer


























  • those are working fine the problem seems like from iis because it stops working in every abot 20 mins

    – Johnyy66554
    Nov 26 '18 at 7:23











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%2f53446328%2fsystem-process-stops-for-no-reason-windows-server-2016%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









0














Does it stop in 20 minutes? If yes check your ISS pool advantaged settings and make the idle time wait 0 or something longer






share|improve this answer
























  • I am checking it

    – Johnyy66554
    Nov 26 '18 at 7:41











  • Application pool advataged setttings idle time = 0 (default 20) it's working now

    – Johnyy66554
    Nov 26 '18 at 8:16
















0














Does it stop in 20 minutes? If yes check your ISS pool advantaged settings and make the idle time wait 0 or something longer






share|improve this answer
























  • I am checking it

    – Johnyy66554
    Nov 26 '18 at 7:41











  • Application pool advataged setttings idle time = 0 (default 20) it's working now

    – Johnyy66554
    Nov 26 '18 at 8:16














0












0








0







Does it stop in 20 minutes? If yes check your ISS pool advantaged settings and make the idle time wait 0 or something longer






share|improve this answer













Does it stop in 20 minutes? If yes check your ISS pool advantaged settings and make the idle time wait 0 or something longer







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 21:31









alkanschteinalkanschtein

7910




7910













  • I am checking it

    – Johnyy66554
    Nov 26 '18 at 7:41











  • Application pool advataged setttings idle time = 0 (default 20) it's working now

    – Johnyy66554
    Nov 26 '18 at 8:16



















  • I am checking it

    – Johnyy66554
    Nov 26 '18 at 7:41











  • Application pool advataged setttings idle time = 0 (default 20) it's working now

    – Johnyy66554
    Nov 26 '18 at 8:16

















I am checking it

– Johnyy66554
Nov 26 '18 at 7:41





I am checking it

– Johnyy66554
Nov 26 '18 at 7:41













Application pool advataged setttings idle time = 0 (default 20) it's working now

– Johnyy66554
Nov 26 '18 at 8:16





Application pool advataged setttings idle time = 0 (default 20) it's working now

– Johnyy66554
Nov 26 '18 at 8:16













0














You are going to need to read both from standerd output and error at the same time. Likey what is happening is the buffer for standard error is getting full and the progam freezes till it something reads from it (nothing will).



You need to either have your standard error read on another thread or you need to use the event based version of reading standard error to read your errors and put your code to write out to the file in there. See the remarks section of that link for specific instructions on what you need to do to make it work.






share|improve this answer


























  • those are working fine the problem seems like from iis because it stops working in every abot 20 mins

    – Johnyy66554
    Nov 26 '18 at 7:23
















0














You are going to need to read both from standerd output and error at the same time. Likey what is happening is the buffer for standard error is getting full and the progam freezes till it something reads from it (nothing will).



You need to either have your standard error read on another thread or you need to use the event based version of reading standard error to read your errors and put your code to write out to the file in there. See the remarks section of that link for specific instructions on what you need to do to make it work.






share|improve this answer


























  • those are working fine the problem seems like from iis because it stops working in every abot 20 mins

    – Johnyy66554
    Nov 26 '18 at 7:23














0












0








0







You are going to need to read both from standerd output and error at the same time. Likey what is happening is the buffer for standard error is getting full and the progam freezes till it something reads from it (nothing will).



You need to either have your standard error read on another thread or you need to use the event based version of reading standard error to read your errors and put your code to write out to the file in there. See the remarks section of that link for specific instructions on what you need to do to make it work.






share|improve this answer















You are going to need to read both from standerd output and error at the same time. Likey what is happening is the buffer for standard error is getting full and the progam freezes till it something reads from it (nothing will).



You need to either have your standard error read on another thread or you need to use the event based version of reading standard error to read your errors and put your code to write out to the file in there. See the remarks section of that link for specific instructions on what you need to do to make it work.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 '18 at 21:55

























answered Nov 23 '18 at 21:49









Scott ChamberlainScott Chamberlain

98.5k25183322




98.5k25183322













  • those are working fine the problem seems like from iis because it stops working in every abot 20 mins

    – Johnyy66554
    Nov 26 '18 at 7:23



















  • those are working fine the problem seems like from iis because it stops working in every abot 20 mins

    – Johnyy66554
    Nov 26 '18 at 7:23

















those are working fine the problem seems like from iis because it stops working in every abot 20 mins

– Johnyy66554
Nov 26 '18 at 7:23





those are working fine the problem seems like from iis because it stops working in every abot 20 mins

– Johnyy66554
Nov 26 '18 at 7:23


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446328%2fsystem-process-stops-for-no-reason-windows-server-2016%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

Create new schema in PostgreSQL using DBeaver

Deepest pit of an array with Javascript: test on Codility

Costa Masnaga