Classic Command Prompt consumes high CPU on long log stream #13638

Closed
opened 2026-01-31 03:47:58 +00:00 by claunia · 5 comments
Owner

Originally created by @brunoborges on GitHub (Apr 26, 2021).

Windows Build Number

Windows 10

Processor Architecture

x64

Memory

16 GB

Storage Type, free / capacity

SSD 512 GB

Relevant apps installed

Command Prompt

Traces collected via Feedback Hub

https://github.com/microsoft/java-wdb/issues/23

Isssue description

"if I run a maven build in a cmd window it seems that screen output eats more CPU than the actual build."

https://github.com/microsoft/java-wdb/issues/23

Steps to reproduce

Build a Java project that will produce significant amount of build log.

Example: https://github.com/spring-projects/spring-boot

Expected Behavior

Low CPU.

Actual Behavior

High CPU.

Originally created by @brunoborges on GitHub (Apr 26, 2021). ### Windows Build Number Windows 10 ### Processor Architecture x64 ### Memory 16 GB ### Storage Type, free / capacity SSD 512 GB ### Relevant apps installed Command Prompt ### Traces collected via Feedback Hub https://github.com/microsoft/java-wdb/issues/23 ### Isssue description "if I run a maven build in a cmd window it seems that screen output eats more CPU than the actual build." https://github.com/microsoft/java-wdb/issues/23 ### Steps to reproduce Build a Java project that will produce significant amount of build log. Example: https://github.com/spring-projects/spring-boot ### Expected Behavior Low CPU. ### Actual Behavior High CPU.
Author
Owner

@AvriMSFT commented on GitHub (Apr 27, 2021):

Hey Bruno! I'm gonna move this issue to Windows Terminal's repo :) They own the code for the classic cmd prompt.

@AvriMSFT commented on GitHub (Apr 27, 2021): Hey Bruno! I'm gonna move this issue to Windows Terminal's repo :) They own the code for the classic cmd prompt.
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2021):

@brunoborges Could you be more specific as to which build of Windows 10 you're using? Conhost has had a lot of updates over the last 6 years of Windows 10, with a lot of perf improvements along the way.

Are you using the legacy console?
image

@zadjii-msft commented on GitHub (Apr 27, 2021): @brunoborges Could you be more specific as to which build of Windows 10 you're using? Conhost has had a lot of updates over the last 6 years of Windows 10, with a lot of perf improvements along the way. Are you using the legacy console? ![image](https://user-images.githubusercontent.com/18356694/116310962-4920e380-a770-11eb-9800-f075e5fe499a.png)
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2021):

For the record, OP in that reddit thread mentioned

Please note that I'm using Windows 7 so maybe some issues are already improved. Also my issues may stem from my way of doing things and there might be better ways.

And yea, the console host has gotten an enormous amount of investment since Windows 7. I'm dangerously close to just closing this as "Fix-Available" 😄

@zadjii-msft commented on GitHub (Apr 27, 2021): For the record, OP in that reddit thread mentioned > Please note that I'm using Windows 7 so maybe some issues are already improved. Also my issues may stem from my way of doing things and there might be better ways. And _yea_, the console host has gotten an enormous amount of investment since Windows 7. I'm dangerously close to just closing this as "Fix-Available" 😄
Author
Owner

@DHowett commented on GitHub (Apr 27, 2021):

Sorry, are you reporting an issue from somebody who's running Windows 7? ☹️

@DHowett commented on GitHub (Apr 27, 2021): Sorry, are you reporting an issue from somebody who's running Windows 7? ☹️
Author
Owner

@ghost commented on GitHub (May 1, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (May 1, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13638