Byobu를 시작하면 시스템 모니터에 byobu-status 세트가 늘어나는 새로운 tmux 프로세스가 표시됩니다. -> tmux 하위 프로세스가 내 메모리를 모두 잡아먹습니다.
-> tmux -> byobu-status -> tmux -> byobu-status -> tmux -> byobu-status -> tmux -> ... -> ... -> ... ... ... .. .. .
1초마다 메모리가 늘어나면서 이런 현상이 계속되는데, 문제가 발생한 위치를 찾을 수 없습니다.
시스템으로 부팅한 후 byobu에서 분리되기 전에 별도로 tmux를 시작하면 해당 tmux 세션에서는 이러한 문제가 발생하지 않습니다. tmux 자체는 byobu를 처음 시작한 후와 그 이후부터 이 문제를 일으킬 수 있습니다.
이것이 일부 rc 파일의 구성 문제인 것은 의심할 여지가 없지만 평생 동안 그것이 어디에 있는지 찾을 수 없습니다... 다음은 제가 살펴보려고 시도한 파일입니다.
~/.byobu/profile.tmux
source $BYOBU_PREFIX/share/byobu/profiles/tmux
/usr/share/byobu/profiles/tmux
###############################################################################
# tmux common profile
# This tmux configuration profile is intended to correspond to Byobu's
# traditional GNU Screen profile
#
# Copyright (C) 2011 Dustin Kirkland
#
# Authors: Dustin Kirkland <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
# Initialize environment, clean up
set-environment -g BYOBU_BACKEND tmux
new-window -d byobu-janitor
set -s escape-time 0
# Change to Screen's ctrl-a escape sequence
source /usr/share/doc/tmux/examples/screen-keys.conf
# On Archlinux, this file is not under the same directory
source /usr/share/tmux/screen-keys.conf
# Add F12 to the prefix list
set -g prefix ^A,F12
# Byobu's Keybindings
source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux
set-option -g set-titles on
set-option -g set-titles-string '#(whoami)@#H - byobu (#S)'
set-option -g pane-active-border-bg $BYOBU_ACCENT
set-option -g pane-active-border-fg $BYOBU_ACCENT
set-option -g pane-border-fg $BYOBU_LIGHT
set-option -g history-limit 10000
set-option -g display-panes-time 150
set-option -g display-panes-colour $BYOBU_ACCENT
set-option -g display-panes-active-colour $BYOBU_HIGHLIGHT
set-option -g clock-mode-colour $BYOBU_ACCENT
set-option -g clock-mode-style 24
set-option -g mode-keys vi
set-option -g mode-bg $BYOBU_ACCENT
set-option -g mode-fg $BYOBU_LIGHT
set-window-option -g window-status-attr default
set-window-option -g window-status-bg $BYOBU_DARK
set-window-option -g window-status-fg $BYOBU_LIGHT
set-window-option -g window-status-current-attr reverse
set-window-option -g window-status-current-bg $BYOBU_DARK
set-window-option -g window-status-current-fg $BYOBU_LIGHT
set-window-option -g window-status-alert-bg $BYOBU_DARK
set-window-option -g window-status-alert-fg $BYOBU_LIGHT
set-window-option -g window-status-alert-attr bold
set-window-option -g window-status-activity-bg $BYOBU_DARK
set-window-option -g window-status-activity-fg $BYOBU_LIGHT
set-window-option -g window-status-activity-attr bold
set-window-option -g automatic-rename off
set-window-option -g aggressive-resize on
set-window-option -g monitor-activity on
# Cannot use:
# - screen-bce, screen-256color-bce: tmux does not support bce
# - screen-256color: vim broken without -bce
set -g default-terminal "screen"
# The following helps with Shift-PageUp/Shift-PageDown
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Must set default-command to $SHELL, in order to not source ~/.profile
# BUG: Should *not* hardcode /bin/bash here
set -g default-command $SHELL
set -g status-bg $BYOBU_DARK
set -g status-fg $BYOBU_LIGHT
set -g status-interval 1
set -g status-left-length 256
set -g status-right-length 256
set -g status-left '#(byobu-status tmux_left)'
set -g status-right '#(byobu-status tmux_right)'
set -g message-bg $BYOBU_ACCENT
set -g message-fg white
# Allow local overrides
source $BYOBU_CONFIG_DIR/.tmux.conf
/usr/share/byobu/profiles/tmuxrc
###############################################################################
# Load:
# * the stock byobu profile
# * any windows
# * and the local byoburc (instead of .screenrc)
# Used at startup but not profile refresh
#
# Copyright (C) 2009-2011 Canonical Ltd.
#
# Authors: Dustin Kirkland <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
source-file $HOME/.byobu/color.tmux
source-file $BYOBU_CONFIG_DIR/profile.tmux
source-file $BYOBU_CONFIG_DIR/keybindings.tmux
source-file $HOME/.byoburc.tmux
답변1
이는 Byobu 이전 버전의 버그였습니다. 지금 고쳐야 합니다. 최신 릴리스 버전을 사용하여 여전히 재현할 수 있는 경우 다음 위치에서 버그를 열어주세요.https://bugs.launchpad.net/byobu.
감사해요!