Over the last few months, I’ve been monitoring Apache’s usage of memory and CPU for 10 virtual hosts on one of my VPS. I found that Apache regularly ate up 480MB of RAM after a couple days running, as this is getting dangerously close to my VPS limit, I had a play and optimised it [ Read More ]
pstree – lists processes in a tree format, I find this very useful for when working with heavy duty applications, and applications that spawn other processes: [ ~ ] [ alex@server ] pstree init-+-crond |-dhclient |-httpd—14*[httpd] |-mingetty |-mysqld_safe—mysqld—9*[{mysqld}] |-ntpd |-perl |-rsyslogd—2*[{rsyslogd}] |-screen—bash—irssi—figlet |-3*[screen---bash---irssi] |-screen-+-bash—irssi | `-bash |-2*[screen---bash] |-sshd-+-3*[sshd---sshd---bash---screen] | `-sshd—sshd—bash—pstree |-svnserve |-udevd `-znc pgrep - [ Read More ]
Recently, I had to do a scheduled deploy of some code – specifically, the client wanted a new rebranded logo to go up at 6am. Whilst I do try and give as much as I can to work, I really like sleeping, so I wasn’t going to get up and start messing around in their [ Read More ]
I’ve often wondered whether my terminal is hanging or if file transfer/import is just taking a long amount of time. pv solves this by outputting a simple progress bar, as well as time elapsed, percentage completed, current throughput rate, total data transferred, and ETA. The usage is really simple, and I find it really useful, [ Read More ]