So I want to run Apache benchmark but while it's running, I need to run htop to see the memory and CPU usage. How can I do that? Putty (My ssh client) won't let me type in a command until ab is done running.
Ideas?
|
So I want to run Apache benchmark but while it's running, I need to run htop to see the memory and CPU usage. How can I do that? Putty (My ssh client) won't let me type in a command until ab is done running. Ideas?
| ||||
|
feedback
|
|
You can do this in the same way that you would with a local shell, using job control. For example:
Edit: | |||||||
feedback
|
|
There are many solutions (run benchmark as background job), but the best solution is to use screen. It's "window manager" for console. You can create many windows, switch between them and even detach current session. It's a very powerful tool. | |||
|
feedback
|
|
GNU Screen is a great application for running multiple processes (windows) inside of one SSH session. It must reside on the machine you connected to (server). | |||||
feedback
|
|
Sometimes, especially for things that take some time to run, it might be better to simply open two SSH sessions. With the windows sitting side by side it's easy to monitor just what's happening. I tend to do this a lot when I'm tailing log files while testing things. | |||
|
feedback
|