Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 82463

Summary: Console causes v. high CPU usage when v. long line is outputted.
Product: [Eclipse Project] Platform Reporter: Peter Smith <pesmith>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: cheryladams, pesmith
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Smith CLA 2005-01-10 07:00:13 EST
There are two issues here:

1. If a very long line is outputted to the console (eg 10,000 chars), eclipse
chews up 100% CPU and becomes unresponsive.

2. When chaning the console output to be fixed width (eg. 100 columns), the
console has problems rendering all content (esp. for outputting very long lines).
Comment 1 Kevin Barnes CLA 2005-01-10 10:54:33 EST
What version of Eclipse and which JDK are you using? How long does Eclipse become unresponsive? 
Does it recover? Are the contents of the console correct once they have been displayed?

Tested on I20050104-1600 and everything was responsive with fixed width option both on and off. 
Comment 2 Peter Smith CLA 2005-01-10 12:13:36 EST
I have tried again with build I20050104-1600 the rendering appears to be OK 
for a fixed widths but it is still very unresponsive for no fixed width for 
very long lines. Try lines of length around 100,000 characters and more. 

It happens on all the following JVMs:
jdk1.5
jdk1.4.2
jrockit1.5
Comment 3 Darin Wright CLA 2005-01-10 12:23:03 EST
Just curious - is the output actually intended to be read by humans? If not, 
you might want to direct the output to a file instead (see the Common tab of 
the launch config).
Comment 4 Peter Smith CLA 2005-01-10 12:30:16 EST
In this case each line of output is intended to be read by developers for
debugging purposes (its request/response pairs from client/server in an
application) although in practice its usually only the first few hundred and
last few hundred that will be looked at. 

The fixed width is a workaround but not a very nice one as we are intentionally
dumping out single lines.

Comment 5 Kevin Barnes CLA 2005-01-10 12:36:44 EST
A review of the console's performance is already on the schedule. The current work arounds are to 
output to a file instead of the console, or use a fixed width.


*** This bug has been marked as a duplicate of 78166 ***
Comment 6 Valentina Popescu CLA 2005-01-12 00:14:01 EST
*** Bug 73838 has been marked as a duplicate of this bug. ***