Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report process info #58

Closed
rakyll opened this issue Oct 14, 2017 · 3 comments
Closed

Report process info #58

rakyll opened this issue Oct 14, 2017 · 3 comments
Assignees

Comments

@rakyll
Copy link
Member

rakyll commented Oct 14, 2017

gops can report more process info (e.g. https://godoc.org/github.com/shirou/gopsutil/process) for a PID. The only downside is that this command will be asymmetrical because we cannot provide the same functionality for the processes working remotely.

$ gops <pid>
Create time: XXX
Number of threads: 4
Number of context switches: X
Number of file descriptors: X
Number of open files: X

Connections
...

@odeke-em, what do you think?

@odeke-em
Copy link
Collaborator

That'd be amazing and quite useful for folks running stuff on the cloud. The number of open files most especially. Thanks for filing this issue.

@rakyll
Copy link
Member Author

rakyll commented Oct 14, 2017

We can import gopsutil into the agent and make it work on the remote processes as well. I am taking my words back that it will be an asymmetrical feature.

Do you want me to assign this to myself and send out a change?

@odeke-em
Copy link
Collaborator

Please do so.

rakyll added a commit to rakyll/gops that referenced this issue Oct 22, 2017
Example output:

$ gops <pid>
threads:      14
memory usage: 0.090%
cpu usage:    0.088%
username:     jbd
cmd+args:     /Users/jbd/bin/gocode -s -sock unix -addr 127.0.0.1:37373

Fixes google#58.
@rakyll rakyll mentioned this issue Oct 22, 2017
rakyll added a commit to rakyll/gops that referenced this issue Feb 28, 2018
Example output:

$ gops <pid>
threads:      14
memory usage: 0.090%
cpu usage:    0.088%
username:     jbd
cmd+args:     /Users/jbd/bin/gocode -s -sock unix -addr 127.0.0.1:37373

Fixes google#58.
rakyll added a commit to rakyll/gops that referenced this issue Feb 28, 2018
Example output:

$ gops <pid>
threads:      14
memory usage: 0.090%
cpu usage:    0.088%
username:     jbd
cmd+args:     /Users/jbd/bin/gocode -s -sock unix -addr 127.0.0.1:37373

Fixes google#58.
rakyll added a commit to rakyll/gops that referenced this issue Feb 28, 2018
Example output:

$ gops <pid>
threads:      14
memory usage: 0.090%
cpu usage:    0.088%
username:     jbd
cmd+args:     /Users/jbd/bin/gocode -s -sock unix -addr 127.0.0.1:37373

Fixes google#58.
rakyll added a commit that referenced this issue Feb 28, 2018
Example output:

$ gops <pid>
parent PID:	5985
threads:	27
memory usage:	0.199%
cpu usage:	0.139%
username:	jbd
cmd+args:	/Applications/Splice.app/Contents/Resources/Splice Helper.app/Contents/MacOS/Splice Helper -pid 5985
local/remote:	127.0.0.1:56765 <-> :0 (LISTEN)
local/remote:	127.0.0.1:56765 <-> 127.0.0.1:50955 (ESTABLISHED)
local/remote:	100.76.175.164:52353 <-> 54.241.191.232:443 (ESTABLISHED)

Fixes #58.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants