I'm running Rails 3.2.6 in development mode using tmux. When I scroll through the output buffer of the Rails server (run using rails s) using tmux, the server freezes and doesn't process any requests. When I escape scrollback mode, the server starts working properly again.
How can I set up my server to keep processing requests while I'm looking through the output buffer?
If you want to pause and examine at some particular sequence of log messages while your server continues processing requests, it is probably best to directly view the log files instead; you might use less -R log/development.log
.
While a tmux pane is in “copy mode” (the mode used to view a pane’s history), tmux does not read any output from the processes running in the pane’s tty. If the processes continue to write output to the tty, then the OS’s tty buffer will eventually fill. When a program writes to a tty with a full buffer, it causes the process to block so that the buffer does not overflow; this is what causes your server to temporarily stop processing requests.
The timeline looks like this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With