12 ms·
Show HN: Htop 2.0 released, now cross-platform
- AnkhMorporkian 11y agoI don't suppose this finally allows sorting in tree view, does it? That's been a feature I've been wanting forever.
- hisham_hm 11y agoTree view is sorted by pid only, sorry. I'm afraid moving entire subtrees based on other criteria (such as CPU%) would make the screen unbearably jumpy.
- ino 11y agoIs there a way to combine all the processes with the same command name? I have a ton of mariadb processes (I don't even know if this is normal, but it seems to be working just fine) and it gets tiring having to scroll them just to glance the numbers on other processes. https://www.dropbox.com/s/ghwsh6ye1gt32k1/Screenshot%202016-02-11%2011.06.44.PNG?dl=0 https://www.dropbox.com/s/ghwsh6ye1gt32k1/Screenshot%202016-...
- enzanki_ars 11y agoThe processes may be forks. Java does this too. Try pushing F5 and see if that cleans things up.
- hisham_hm 11y agoOn tree view (F5), you can collapse and expand sub-trees (with "+" and "-", or just click twice on them).
- andreasvc 11y agoThose might be threads. It's best to disable showing threads (F2 - Display options - Hide kernel/userland threads) because they give little information over just the process.
- ino 11y agoThank you so much.
- kinow 11y agoI think htop and lua are probably the two main Brazilian contributions to the open source community.
- phamilton 11y agoI wager Elixir counts.
- kinow 11y agoWow, had no idea Elixir was created by a Brazilian as well. Nice, thanks!
- hugobarauna 11y agoYes :) Here's a little bit of the story on how we create it: http://blog.plataformatec.com.br/2015/01/introducing-elixir-radar-the-weekly-email-newsletter-about-elixir/ http://blog.plataformatec.com.br/2015/01/introducing-elixir-...
- oconnor663 11y agoThiago de Arruda started neovim.
- sergiotapia 11y agoElixir is definitely up there!
- rglullis 11y agoMarcelo Tosatti work on the 2.4 linux kernel? Conectiva before it got merged with Mandrake?
- khgvljhkb 11y agoThe Clojure debugger in CIDER was written by a Brazilian. Obrigado!
- deleted 11y ago[deleted]
- Florin_Andrei 11y agoMy favorite top replacement. Keep up the good work!
- mperham 11y agohtop is an amazing upgrade to plain old top. Thank you for your work on this!
- grubles 11y agoAgreed. And it's fun running it on a box with 32+ cores.
- NickSharp 11y agoIs there a quick way to avoid having all those cores take up the top 32 lines of the screen? Checking my 40 core machine in a typical terminal window, I can't see any of the processes, just 40 lines of CPU! Thanks.
- NocturnalWaffle 11y agoIf you press F2 you can change the setup for the top meters and switch it out with CPU average or other combinations of cores.
- Piskvorrr 11y ago...or if you're not the interactive type (or deploy untold millions of images), edit .htoprc . Hm. Given the opacity of that config file, I went the way "configure interactively, then roll out the new .htoprc"
- hisham_hm 11y agoReally? Recent versions shouldn't take more than 10 lines for 40 cores. It displays them in 4 columns.
- broodbucket 11y agoWith 320 cores you can't see anything.
- 11y ago
- fuhrysteve 11y agoI wonder if this can get into Ubuntu 16.04 before feature freeze in a week or so..
- rhinoceraptor 11y agoIt's not a default package, right? If so it can be updated in the repos.
- sashk 11y agoWhen I gave up to get it working properly on FreeBSD, I see this news. Great news.
- jrapdx3 11y agoJust now downloaded and compiled it on FreeBSD. Works as expected. Haven't used htop 1.x on FBSD so can't offer a comparison.
- chrstphrhrt 11y agoWoohoo! This is great.
- crazysim 11y agoThat slide design is really great.
- hisham_hm 11y agoThanks! :D
- pcx 11y agoAwesome! Installing htop is the first thing I do on my *nix systems. The update is still not up on Homebrew, shouldn't take long though.
- sublimino 11y agoPerhaps you're referring to Linuxbrew - "a fork of Homebrew, the Mac OS package manager, for Linux." It exposes the same repository as its OSX counterpart, with linux-flavoured customisations where necessary. From feature list at http://linuxbrew.sh/ http://linuxbrew.sh/ - Can install software to a home directory and so does not require sudo - Install software not packaged by the native distribution - Install up-to-date versions of software when the native distribution is old - Use the same package manager to manage both your Mac and Linux machines
- pcx 11y agoNope, I am talking about Homebrew, it provides the best way to install htop on OSX.
- Chris911 11y agoThe htop package on Homebrew is a fork of the original for OS X called htop-osx. https://github.com/AndyA/htop-osx https://github.com/AndyA/htop-osx
- pcx 11y agoDidn't know that! Thanks for sharing. I hope the fork will be deprecated now for the official one. There's already a related issue on the repo.
- jdcarter 11y agoFWIW, I did an install from source and it was totally painless--no dependencies to track down. ./configure, make, sudo make install and you're done.
- melted 11y agoI was just installing an older version the other day on FreeBSD, and having to mount (unmaintained) procfs was quite annoying. So after seeing this link I specifically went to their site to check what they mean by "cross platform". They say procfs won't be needed anymore. Speaking of which, does anyone know why OpenJDK wants procfs on FreeBSD? Is this a Java thing or a problem with libraries people write using Java?
- StreamBright 11y agoI think it is OpenJDK that want's procfs and fdescfs.
- spirit555 11y agoI love htop! I hope homebrew gets it soon. Mine only says version 0.8.2.8? I donated $5 to the developer. Thanks for htop
- lqdc13 11y agoI used to use htop, but switched to glances at some point, because of a quicker-to-find-the-info-you-want interface.
- rdtsc 11y agoI use htop. I tried glances as I heard good things about it. It is nice, I like how it has more stuff -- disk, network. However it installed matplotlib, fonts-lyx, tk8.6, libjs-jquery-ui, python3-bottle, and a slew of other dependencies, not a big deal but something to watch for.
- lqdc13 11y agoWere you adding it through apt-get or pip? With apt-get it's fairly painless. apt-cache depends glances Depends: python-psutil Depends: <python:any> python:i386 python Depends: <python:any> python:i386 python Depends: python Depends: python-pkg-resources Depends: adduser Depends: lsb-base Recommends: python-jinja2
- rdtsc 11y agoapt-get. It was painless, and I have the diskspace so not a big deal. Looking at package properties I see it recommends a bunch of packages, so it installed those and their deps (this is Ubuntu 15.10): hddtemp, lm-sensors, python3-docker, python3-bottle, python3-pysnmp4, python3-influxdb ...
- spirit555 11y agoOk so I know of and have tried top, atop, htop, ntop. What else is out there??
- aeosynth 11y agotfa mentions vtop, which is a node.js version of top
- joejoebob 11y agoGlances: https://nicolargo.github.io/glances/ https://nicolargo.github.io/glances/
- mappu 11y agoiotop
- vacri 11y agoiftop for network stuff "iotop -o" is also useful, for seeing if that process is actually writing to disk powertop is a great utility for improving laptop battery life - it highlights the things you need to adjust to reduce power usage pgtop for postgres, but I've never used it not "top"-branded, but lnav is an ncurses-based log navigator that's partially comprised of magic and, of course, there are many varieties of "desktop" cough
- akerro 11y agonmon http://www.ibm.com/developerworks/aix/library/au-analyze_aix/ http://www.ibm.com/developerworks/aix/library/au-analyze_aix...
- Ded7xSEoPKYNsDd 11y agosystemd-cgtop lists CPU usage of systemd units instead of processes.
- bmurphy1976 11y agodstat, the best one imho. Can replace quite a few of the other tools.
- ipozgaj 11y ago
- nodesocket 11y agoHuge htop fan. Honestly probably my favorite unix utility. Just did `brew update && brew upgrade` but not seeing an htop update. I am still running htop 0.8.2.8 via brew. Also tried on an AWS server running Ubuntu, same thing `apt-get update && apt-get upgrade` no new htop version available. Running htop 1.0.2.
- wrigby 11y agoI hit the same thing, so I figured I would try compiling from source. I built ncurses 6.0 from source (installed to $HOME/local) and then htop 2.0 (also to $HOME/local) and it worked a charm. This was on a clean (took it out of the box today) 10.11 system.
- nodesocket 11y agoEhhhhhhhhhhhh, really want to stick with using native package managers (brew, apt). Did you just add htop to the apt exclude?
- wrigby 11y agoAck, my bad. I meant OS X 10.11 (El Capitan). Same should probably work on any Linux distro with standard build tools installed. I keep a ~/local directory with built-from-source programs in it. That way I don't get any conflicts with system-wide package managers. Configure line for ncurses: ./configure --enable-pc-files --with-pkg-config-libdir=$HOME/local/lib/pkgconfig --with-shared --prefix=$HOME/local make -j8 && make install And for htop, a regular configure worked fine: ./configure --prefix=$HOME/local make -j8 && make install A quick check in my .bashrc (actually .zshrc) prepends $HOME/local/bin to my $PATH if it exists.
- alphonse23 11y agoI too would like to know how to install via brew.
- brianxq3 11y ago
- mayhew 11y agoThis is one of the first things I install on any new Linux system. Amazing tool.
- gramakri 11y agohttp://drunken-security.at/is-it-a-good-idea-to-show-everybody-what-your-server-is-doing/?q=/archives/41 http://drunken-security.at/is-it-a-good-idea-to-show-everybo... has a live htop background :-)
- gpmcadam 11y agoIt is mentioned in TFA.
- _ao789 11y agoCopied from the main site at http://hisham.hm/htop/ http://hisham.hm/htop/ ?
- CatCookie 11y agoWe are pleased that you "stole" our idea :) Is it ok to steal back the gif? Because i think the server load is a bit to much with so many background reloads.
- hisham_hm 11y agosure! that's the spirit of free software :)
- thinkmassive 11y agoYour comments are closed, but another approach would be to use Xvfb to run a terminal emulator, and take screenshots with Imagemagick.
- wrigby 11y agoThis is really timely... I just got my new MBP today, so I've been installing all of my standard tools. Luckily I saw this before I used Homebrew to install htop!
- zobzu 11y agoOh the vtop inspired bar is def cool! regular top has been catching up though and while htop is different and perhaps still better, regular top does the job for me in most cases.
- BilalBudhani 11y agohtop has always been in my list of tools to install on server. Thanks for this great upgrade.
- GreaterFool 11y agoWouldn't braille characters also make nicer progress bars? I think they look more dense then a bunch of ||||
- deleted 11y ago[deleted]
- executesorder66 11y agoBraille characters, or just colons and full stops? [::::::::.... ] [::::::::::...... ] Could you give an example of the braille characters being used in this way?
- GreaterFool 11y agoI was just thinking that using braille characters would fill more area on the screen. In particular, | characters look very thin. A bunch of widely spaced green bars |||| is functional but not very appealing.
- x0 11y agoOr perhaps some box-drawing characters (though they may not have the support that ||||| does)
- hisham_hm 11y agoThey look denser (could add two "lines" per character), but wouldn't be able to change the colors of these lines individually. Having said that, we use braille charecters when in "Graph" mode (F2 Setup > Meters > pick a meter > press Space until it goes to [Graph]).
- niutech 11y agoStill no Windows though.
- gaius 11y agoHaha everyone used to mock MS because cross platform to them meant Win16 AND Win32. Now we use it to mean various flavours of Linux. Progress?
- jakebasile 11y agoIt also works on various BSDs and OS X in addition to Linux.
- romanovcode 11y agoI'm pretty sure it worked on most Linux distros and even on mac. I don't see how it's big news. That's not progress, it's just faulty marketing.
- masklinn 11y agoMainline htop never worked on OSX. OSX's htop is a fork of 0.8.2 with all the linux stuff stripped out and replaced, and then not really updated (let alone resynced with mainline): https://github.com/AndyA/htop-osx https://github.com/AndyA/htop-osx
- masklinn 11y ago> Now we use it to mean various flavours of Linux. ? "Portable" htop 2.0 works on FreeBSD[0], OpenBSD[1] and OSX[2], not just "various flavours of linux". [0] https://github.com/hishamhm/htop/tree/master/freebsd https://github.com/hishamhm/htop/tree/master/freebsd [1] https://github.com/hishamhm/htop/tree/master/openbsd https://github.com/hishamhm/htop/tree/master/openbsd [2] https://github.com/hishamhm/htop/tree/master/darwin https://github.com/hishamhm/htop/tree/master/darwin
- gaius 11y agoBack in the day it wasn't unusual for something to support 30-odd variations on Unix, plus VMS and Windows. ./configure && make && make install. Those were the days!
- xyproto 11y ago<3 happy top
- freebasedgirl 11y agoIf it did not try so hard to emulate nmon poorly, I'd use it more.
- freebasedgirl 11y agoIf it did not try so hard to emulate nmon poorly, I'd use it more.
- deleted 11y ago[deleted]
- macint0sh 11y agoYep! Perfect! Now I don't need to do some kind of magic :) when installing on my FreeBSD servers. Congrats!
- ketralnis 11y agoI really enjoyed this talk[1] by Bryan Cantrill, part of which is about what it took to emulate Linux's syscalls from within SmartOS. It's lengthy, but enjoyable. One of the applications that they tried to port directly to before the emulation layer was htop, and he has a good rant about what that took because of its use of /proc and how that made porting it very difficult. Given that, I'm sure this wasn't easy. Kudos! [1] https://www.youtube.com/watch?v=TrfD3pC0VSs https://www.youtube.com/watch?v=TrfD3pC0VSs
- gourneau 11y agowoohoo! ProTip: Even older versions of htop have mouse support. You can click on columns the change sorting for example.
- romanovcode 11y agoWait, where are the Windows binaries? Oh, I see. They trying to be smart and say "cross-platform" because now it runs on more Linux distros. That's not smart, that's faulty marketing. And AFAIK it already was running on 90% of Linux and also on MacOS.
- alfanick 11y agoit is a big news - it really is cross-platform - OS X version was really outdated
- romanovcode 11y agoUsing it on my Mac every day and didn't even notice that it was outdated. But thanks for info.
- masklinn 11y agoThe OSX version is/was a fork of htop 0.8.2
- akerro 11y agoAnd there was no BSD version.
- floatboth 11y agoWell, it did run on FreeBSD, with a requirement to mount procfs :)
- yorwba 11y agoBSD is not Linux. htop now supports several different Unices.
- kajecounterhack 11y agoNo, it's accurate marketing. Asking for htop to be available on windows is kinda silly if you recall that htop is "top++" and depends on having a unix filesystem. "Cross-platform" is a contextual term.
- _ao789 11y ago128 Cores - nice: http://hisham.hm/htop/128.png http://hisham.hm/htop/128.png
- ssatta 11y agoDoes that mean that it now works on OSX without root?
- oneeyedpigeon 11y agoWorks for me. Had to build from source (couldn't find an OSX binary), but it compiled without a single warning, which is probably a record for something not OSX-specific. make install still requires root, of course, but it runs fine from the build directory.
- ceasos 11y agoGreat !! hisam_hm you help me drop one of my alias function now :D ̶e̶n̶v̶o̶f̶ ̶(̶)̶ ̶{̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶ ̶s̶e̶d̶ ̶'̶s̶/̶\̶x̶0̶/̶\̶n̶/̶g̶'̶ ̶/̶p̶r̶o̶c̶/̶$̶{̶1̶}̶/̶e̶n̶v̶i̶r̶o̶n̶ ̶}̶
- drvortex 11y agoTo be fair, it is still only for POSIX-y systems. Not cross platform in the conventional sense.
- masklinn 11y agoWorking on different unix-like OS is cross-platform in a completely conventional sense.
- sina 11y agoMy biggest feature request is better search workflow (perhaps like Vim, instead of having to press F3) and ability to filtering/grep the list of processes when searching. I am installing version 2.0 on my laptop to see if search has changed.
- j2432984 11y agostill no vi keybindings?
- nograpes 11y agoHas anyone got mouse wheel support working on a PuTTy terminal? I've compiled htop from source against ncurses 6 on Ubuntu, but no luck. I know it sounds like I'm asking a lot for a PuTTy window... but mouse clicks have (amazingly) worked even on a very old version of htop. Just wondering if anyone has done it before pursuing it further.
- mixmastamyk 11y agoWere they able to improve the conf file and color selection? I remember that was one area that needed work. 256 colors would be nice also ;)