Skip to content

Spikes in CPU usage of tmux on long uptimes attributed to tmux-battery #54

@BensonMuriithi

Description

@BensonMuriithi

I had been having a problem with tmux whereby after it being running for periods of upwards of 12 or 24 hours I would observe spikes in cpu usage and it would always be caused by tmux. Cpu usage would oscillate between 15% to 80% in 2 seconds and keep on doing so. Similar problems were being faced by users of powerline with tmux. I however don't so I thought it could be tmux-battery as I don't have any intensive plugins and after removing it from the statusline the load vanished.
My .tmux.conf relevant to this is below; the rest doesn't seem to be part of the problem.

#commented out setting including tmux-battery use
#set -g status-right '#{battery_status_fg}Batt:#{battery_icon} #{battery_percentage}\
 #[fg=colour114]cont:#{continuum_status}\
 #[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M '

#after removing the use of tmux-battery
set -g status-right '\
#[fg=colour114]cont:#{continuum_status}\
 #[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M '

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions