Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to terminate Google Colab correctly?

I found

!kill -9 -1

it seems not working correctly.

When I do many tasks simultaneously on colab, popup appears and asks me like this,

"Memory usage is close to the limit. terminate other? "

and after click yes, GPU gets much faster, seems initialized correctly.

My question is, how to call that popup by myself.

like image 214
user6894661 Avatar asked Sep 11 '25 07:09

user6894661


1 Answers

To see a list of running sessions along with the memory allocated to them and an option to terminate, follow these instructions.

  1. Make sure notebook is connected to an active runtime.
  2. Click on "Runtime" in the menu bar.
  3. Clink on "Manage sessions" in the menu that appears.
  4. The window that pops up lists your active sessions.

notebook menu active_sessions

like image 171
willem-h Avatar answered Sep 13 '25 12:09

willem-h