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

can we find the Jupyter terminals which is running for long ? #1834

Open
asmksf opened this issue Oct 14, 2016 · 7 comments
Open

can we find the Jupyter terminals which is running for long ? #1834

asmksf opened this issue Oct 14, 2016 · 7 comments

Comments

@asmksf
Copy link

asmksf commented Oct 14, 2016

can we find the Jupyter terminals which is running for long or idle ? it takes system resources and leads to poor performance

@gnestor
Copy link
Contributor

gnestor commented Oct 14, 2016

Are you aware of the Home > Running > Terminals tab? It lists all terminal instances. Are you proposing that terminal instances display age like the notebook instances?

image

@gnestor gnestor added this to the 5.0 milestone Oct 14, 2016
@asmksf
Copy link
Author

asmksf commented Oct 15, 2016

yes Gnestor - Are you proposing that terminal instances display age like the notebook instances? yes that would be good . what we are trying to achieve is 100s of ppl open the terminal and not using it for days the linux server is getting killed with high cpu and mem. if we can list the open terminals in linux command line -we can notify folks to close it properly.

@gnestor
Copy link
Contributor

gnestor commented Oct 23, 2016

@Carreau @minrk I took a look through https://github.com/jupyter/notebook/blob/179bb24fbf79d153812858126127a91431da3319/notebook/static/tree/js/terminallist.js and it looks like a created property is not available on terminal items returned from the server. I also looked through https://github.com/jupyter/jupyter_server/blob/dd4b052403cc0ce70dbde9bfc6c71d6b09e814ec/notebook/terminal/api_handlers.py and it looks like terminado doesn't provide anything like a created property. Do you have an idea about how we could provide this info for terminal instances?

@minrk
Copy link
Member

minrk commented Oct 24, 2016

I'm not sure this information is present, but we can easily record a timestamp when a terminal is created. It might make more sense to follow #1827, though, and track activity on the websocket, so the stamp is last-activity, not created.

@gnestor
Copy link
Contributor

gnestor commented Oct 24, 2016

@minrk Last activity is more similar to last modified (than created) which is what the "Running" tab in the dashboard exposes for notebooks.

A couple questions regarding #1827: Does creating a terminal instance from the dashboard launch a kernel instance? If so, then would I just query the kernel model and use the last_activity value as the "last modified" value for a terminal instance?

@takluyver
Copy link
Member

No, terminals do not use kernels.

@minrk minrk modified the milestone: 5.0 Jan 13, 2017
@tuliocasagrande
Copy link

I added /api/terminals/ to the documentation: https://github.com/jupyter/jupyter/wiki/Jupyter-Notebook-Server-API#terminals-api, but it doesn't return the state indeed.

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

No branches or pull requests

6 participants