Project

General

Profile

Improvement #2150

Limit stream reader buffers for worker output handling

Added by Henning Blohm almost 2 years ago. Updated over 1 year 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

Also available in: Atom PDF