glances icon indicating copy to clipboard operation
glances copied to clipboard

Wrap processes to make them fully visible

Open Firesphere opened this issue 6 years ago • 6 comments

Description

It would be useful to create an option to wrap the output of the running processes, so the full process becomes visible, including arguments. Running it out of screen is at times not giving enough information

Versions

  • Glances v3.1.3 with psutil v5.6.3
  • Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic

Firesphere avatar Nov 05 '19 04:11 Firesphere

What do you mean by "wrapping" ?

Glances already display the full command name if you click on the '/' key (by default on the Curses interface and not by default on the Web UI)

nicolargo avatar Nov 05 '19 16:11 nicolargo

I mean that even using the /, the full command still often runs out of screen, e.g. parameters passed in.

e.g.: Xorg vt2 -displayfd 3 -auth /run/user/55817/gdm/Xauthority -background none -noreset -keeptty -verbos

is the maximum displayed. with wrapping, I would be able to see any further arguments passed in to Xorg.

Firesphere avatar Nov 05 '19 21:11 Firesphere

I understand but the only way to show all command line arguments is to display the command on multiple lines. In this case, if a process has a very long command line, Glances will display only a few processes...

Example with the PyCharm process ==> 16 lines...

/home/nicolargo/apps/pycharm-2019.2.3/jbr/bin/java -classpath /home/nicolargo/apps/pycharm
2019.2.3/lib/bootstrap.jar:/home/nicolargo/apps/pycharm-2019.2.3/lib/extensions.jar:/home/nicolarg
/apps/pycharm-2019.2.3/lib/util.jar:/home/nicolargo/apps/pycharm-2019.2.3/lib/jdom.jar
/home/nicolargo/apps/pycharm-2019.2.3/lib/log4j.jar:/home/nicolargo/apps/pycharm-2019.2.
/lib/trove4j.jar:/home/nicolargo/apps/pycharm-2019.2.3/lib/jna.jar -Xms128m -Xmx937m
-XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes= -XX:+HeapDumpOnOutOfMemoryError -XX:
OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf -Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd
-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true
-XX:ErrorFile=/home/nicolargo/java_error_in_PYCHARM_%p.log -XX:HeapDumpPath=/hom
/nicolargo/java_error_in_PYCHARM.hprof -Didea.paths.selector=PyCharm2019.2
-Djb.vmOptionsFile=/home/nicolargo/.PyCharm2019.2/config/pycharm64.vmoptions
-Didea.platform.prefix=Python com.intellij.idea.Main

nicolargo avatar Nov 06 '19 06:11 nicolargo

Good point. Maybe a "get full command for currently selected" might be something to consider, but I understand your point. Indeed not really feasible at the moment :)

Firesphere avatar Nov 07 '19 06:11 Firesphere

I like how procs is doing it, you can simply hit ← → arrows to scroll through whole args

ostrolucky avatar Dec 13 '23 23:12 ostrolucky