I have been using the command prompt in Windows 10 quite a lot, lately, running stuff like Node.js and Apache Tomcat servers, and I have noticed an odd problem: every now and then, the programs stop responding (in the case of these two, stop serving requests) so I focus the command-prompt window and press Ctrl+C to kill the program, intending to start it again. When I do so, however, the program immediately resumes as if it had been suspended or stuck on a debug breakpoint.

I have noticed it with several programs - not just Node and Tomcat - and want to know how/why this happens and how to stop it from happening - it is a very large problem for me - I am trying to write software using these two servers and can never tell whether my code broke or whether the command prompt just froze up.

  • Why aren't you running Tomcat as a Service? – DavidPostill Apr 18 '16 at 18:00
  • Because I only need to run it for about half an hour every few hours or so to test against an external environment - the rest of my development is served by Node.js. – Xharlie Apr 18 '16 at 18:03
  • The reason I rejected the edit to this question, is for the simple fact, programme is actually correct. It might be the british version of program but it is grammatically correct. The only real edits made to this question were to change programme to program which means it doesn't really improve the question. – Ramhound May 5 '16 at 20:12
  • any answers to this yet – Max Alexander Hanna Oct 15 '18 at 12:22

This is a pretty old question but I was having this issue and found the answer: Command prompt hangs until keypress?

  • 2
    Can you please add more information not just a link – yass Jun 15 '17 at 19:43

Check the energy options of your computer there are not in "economic mode". If there is change it to "maximum performance".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.