...
If you want to end your remote session, click the "SSH connection status" box in the lower left corner. Then, in the input box that opens, select the "Close Remote Connection" option. If you simply close your VS Code window, some server-side components of VS Code will continue to run remotely.
Column | ||
---|---|---|
| ||
Figure 2. Example of Visual Studio Code screen feature that allows clean disconnection from SSH session. |
Column | |||||
---|---|---|---|---|---|
| |||||
|
Kill the leftover orphan processes in the login nodes
...
To identify Visual Studio Code leftovers, exit completely from any session of VS code running on your computer. Then, users should connect to Setonix by other means (like the use of a terminal recommended in Connecting to a Supercomputer using SSH). If the user knows exactly the login node where the orphan processes reside, they can connect directly to that login node. So, if orphan processes are in "setonix-03
", then users can connect directly to that login node with:
ssh <userName>@setonix-03.pawsey.org.au
If users are performing a regular check for orphan processes, then they will need to traverse along all the login nodes and check for orphan processes on each of them. Currently there are 4 login nodes available to users going from -01
to -04
.
Column | |||||
---|---|---|---|---|---|
| |||||
|
Once the user has logged into Setonix, execute the desired login node, execute the ps
command together with "filtering" with the the grep
command acting repeatedly on the output to narrow it down to only those processes owned by the user and related to "vscode":
...
Once users can visually confirm that those are indeed only the orphan processes of interest, they can proceed to kill them by extending the command to extract a list of the process IDs and pass it to the passing that list to the kill
command:
Column | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Once users are taking some time to relief the login nodes from orphan processes then, as recommended above, it is a good idea to go through all the active login nodes and perform a check (and kill if needed).
If you find that after killing orphan processes in all the login nodes is still giving you problems to login using VS code. Then, you may need to purge the Visual Studio Code directory on Setonix using the following:
...