Project

General

Profile

Improvement #2150

Limit stream reader buffers for worker output handling

Added by Henning Blohm over 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-base
Target version:
Start date:
04.01.2023
Due date:
% Done:

0%

Estimated time:
origin:

Description

Currently worker stream output is buffered until the next line ending and then logged on the home process.

For very large output this may exceed the memory capacity on the home process.

Acceptance Criteria

  • Stream buffering has a 10M limit for line length
  • When that is reached the this is considered a line ending and we wrap.
  • The buffer is released for every line!

See the attached proposal (not complete!)

  • com.zfabrik.home.console.LogBuffer is similarly maintaining a line buffer limit
  • JTextArea usage in the GUI is similarly maintaining a line buffer limit

Files

StreamReader.java (5.31 KB) StreamReader.java Henning Blohm, 04.01.2023 12:37

Related issues

Precedes z2-Environment - Improvement #2156: Port #2150 to 2.9.4Resolved05.01.202305.01.2023Henning Blohm

Actions
#2

Updated by Henning Blohm over 1 year ago

  • Description updated (diff)
#3

Updated by Henning Blohm over 1 year ago

  • Description updated (diff)
#4

Updated by Henning Blohm over 1 year ago

  • Description updated (diff)
#5

Updated by Henning Blohm 12 months ago

  • Status changed from New to Feedback
#6

Updated by Henning Blohm 11 months ago

  • Status changed from Feedback to Resolved
#7

Updated by Henning Blohm 7 months ago

Also available in: Atom PDF