How do i kill hanging applications?
-
- Black ninja
- Posts: 56
- Joined: 22 Apr 2016, 07:11
- Distribution: Porteus 3.2.2 xfce
- Location: Germany
How do i kill hanging applications?
Using porteus 3.2 64bit kde with kernel 4.8.8.
Recently i noticed it´s quite easy to get applications hanging with high CPU usage and desktop not responding anymore.
Easiest way is to use an internet browser and open some tabs on ebay.
Without javascript most sites work OK. But once javascript is on browser easily locks up. Especially on ebay. Unfortunately ebay cannot be used without javascript.
Only two tabs of ebay where necessary to lock up browsers - may it be chrome based like chromium or vivaldi or opera and even good old firefox.
Only konqueror did not lock up on ebay but the rendering of many sites including ebay is very very poor.
How do i end or kill a hanging app? Is there something like the task manager on windows?
I don´t have these problems under Windows 7. Sometimes browser (most time i use chromium based Iron) uses very large amounts of memory or crahses rarely but never locked up the system.
What´s the easiest way to end a hanging app? Do i need to change to console? If yes how are the commands to get there, kill the hanging app and get back to graphical environment?
Some operations still work like clock is running and rarely one of the function keys responds like the wifi switch or the sound keys.
When i press power button system is shutting down after a few seconds. But then i loose any data that is not saved from memory and it´s also very annoying to reboot every few minutes.
Or is there a way to prevent browsers from hanging?
I installed some extensions for ad blocking and script blocking. But as soon as javascript is turned on the problem is back.
Recently i noticed it´s quite easy to get applications hanging with high CPU usage and desktop not responding anymore.
Easiest way is to use an internet browser and open some tabs on ebay.
Without javascript most sites work OK. But once javascript is on browser easily locks up. Especially on ebay. Unfortunately ebay cannot be used without javascript.
Only two tabs of ebay where necessary to lock up browsers - may it be chrome based like chromium or vivaldi or opera and even good old firefox.
Only konqueror did not lock up on ebay but the rendering of many sites including ebay is very very poor.
How do i end or kill a hanging app? Is there something like the task manager on windows?
I don´t have these problems under Windows 7. Sometimes browser (most time i use chromium based Iron) uses very large amounts of memory or crahses rarely but never locked up the system.
What´s the easiest way to end a hanging app? Do i need to change to console? If yes how are the commands to get there, kill the hanging app and get back to graphical environment?
Some operations still work like clock is running and rarely one of the function keys responds like the wifi switch or the sound keys.
When i press power button system is shutting down after a few seconds. But then i loose any data that is not saved from memory and it´s also very annoying to reboot every few minutes.
Or is there a way to prevent browsers from hanging?
I installed some extensions for ad blocking and script blocking. But as soon as javascript is turned on the problem is back.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: How do i kill hanging applicaions?
Hi Fred,
Can you explain further what you mean by 'turning on javascript' please?
I currently have google chrome open with between 10-15 ebay tabs open and top shows chrome using ~6% of CPU resources. Firefox for me is almost unusable. Very laggy and resource hungry.
Can you explain further what you mean by 'turning on javascript' please?
I currently have google chrome open with between 10-15 ebay tabs open and top shows chrome using ~6% of CPU resources. Firefox for me is almost unusable. Very laggy and resource hungry.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- wread
- Module Guard
- Posts: 1255
- Joined: 09 Jan 2011, 18:48
- Distribution: Porteus v5.0-kde-64 bits
- Location: Santo Domingo
- Contact:
Re: How do i kill hanging applicaions?
Start>>Applications>>System>>System Monitor>> then select the hanging application, right click on it and then select "kill" and you are done!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!
The Porteus Community never sleeps!
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: How do i kill hanging applicaions?
In terminal:
then just move the squeleton head over the application to be killed and click.
In my case the problem on older machines is more with google-chrome. It depends on how you use the browser.
Code: Select all
xkill
In my case the problem on older machines is more with google-chrome. It depends on how you use the browser.
Prendre son temps, profiter de celui qui passe.
-
- Black ninja
- Posts: 56
- Joined: 22 Apr 2016, 07:11
- Distribution: Porteus 3.2.2 xfce
- Location: Germany
Re: How do i kill hanging applicaions?
Sure. I use extension ScriptBlock for this.brokenman wrote:Hi Fred,
Can you explain further what you mean by 'turning on javascript' please?
Nice hints but the problem is that i can´t start something from the menu since i get absolutely no reaction from desktop environment.
How do i get into terminal when there is no reaction from desktop environment?
As always i use HP elitebook 2540p with Intel i7 L640 dual core 2.13GHz with 4GB DDR3 RAM.
Machine too weak for porteus?
-
- Full of knowledge
- Posts: 2069
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: How do i kill hanging applicaions?
If the GUI is unresponsiv so you can not open the Taskmanager
you can switch to a terminal
In Linux each running process has a process ID.If you know the process ID
of the misbehaving program you can use: kill <processID>
If you don’t know the process ID use the pgrep command to find out.
Example -- (misbehaving mousepad in this case)
You can also use the pkill command to kill using process name (= mousepad)
one more
There is also the killall command
eg killall firefox will kill all windows and Firefox profiles which are currently running.
-> How do i get into terminal when there is no reaction from desktop environment?<-
Try ctrl + alt + F1 (ctrl = strg in german keyboard)
log in > kill whatever > exit > ctrl+alt+F7 to switch back to desktop.
you can switch to a terminal
In Linux each running process has a process ID.If you know the process ID
of the misbehaving program you can use: kill <processID>
If you don’t know the process ID use the pgrep command to find out.
Example -- (misbehaving mousepad in this case)
Code: Select all
guest@porteus:~$ pgrep mousepad
5081
guest@porteus:~$ kill 5081
guest@porteus:~$
Code: Select all
guest@porteus:~$ pkill mousepad
There is also the killall command
eg killall firefox will kill all windows and Firefox profiles which are currently running.
-> How do i get into terminal when there is no reaction from desktop environment?<-
Try ctrl + alt + F1 (ctrl = strg in german keyboard)
log in > kill whatever > exit > ctrl+alt+F7 to switch back to desktop.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: How do i kill hanging applicaions?
Go to Console with Ctl+Alt+F1/F2/..F6fred08155 wrote: How do i get into terminal when there is no reaction from desktop environment?
Then when have a script problem normally kill plugin container. So after logging in as guest, (pw guest),
Code: Select all
pkill plugin-con
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
- francois
- Contributor
- Posts: 6435
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: How do i kill hanging applicaions?
For complete freeze:
http://unix.stackexchange.com/questions ... op-freezes
Raising Elephants Is So Utterly Boring
Alt+SysRq+R switch keyboard to 'raw' mode
Alt+SysRq+E send SIGTERM (termination) signal to all processes except mother init
Alt+SysRq+I send SIGKILL signal to all processes, a little more aggressive
Alt+SysRq+S sync all filesystems to prevent data loss
Alt+SysRq+U remount filesystems as read-only
Alt+SysRq+B forcefully reboot
http://unix.stackexchange.com/questions ... op-freezes
Raising Elephants Is So Utterly Boring
Alt+SysRq+R switch keyboard to 'raw' mode
Alt+SysRq+E send SIGTERM (termination) signal to all processes except mother init
Alt+SysRq+I send SIGKILL signal to all processes, a little more aggressive
Alt+SysRq+S sync all filesystems to prevent data loss
Alt+SysRq+U remount filesystems as read-only
Alt+SysRq+B forcefully reboot
Prendre son temps, profiter de celui qui passe.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: How do i kill hanging applicaions?
Something omitted in previous post, as 1st resort with runaway script, before resorting to Console
While still in GUI: Alt+SysRq+f will normally knock out the plugin container, less often the browser, whichever is responsible for script gobbling up all the memory, if that is the case. Then you are good to go! 8)
or raising elephants (last resort), is the Magic Sys Request.francois wrote:For complete freeze:
http://unix.stackexchange.com/questions ... op-freezes
Raising Elephants Is So Utterly Boring
Alt+SysRq+R switch keyboard to 'raw' mode
While still in GUI: Alt+SysRq+f will normally knock out the plugin container, less often the browser, whichever is responsible for script gobbling up all the memory, if that is the case. Then you are good to go! 8)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
-
- Black ninja
- Posts: 56
- Joined: 22 Apr 2016, 07:11
- Distribution: Porteus 3.2.2 xfce
- Location: Germany
Re: How do i kill hanging applicaions?
Yes. Seems to work. At least a little bit. Using the keystrokes porteus dropped back to console and loaded KDE desktop again.
But after login some things didn´t work like Wifi or connected USB devices like USB HDD and USB memory stick did not show up anymore.
After a fresh reboot i checked memory usage. I was very surprised. Fresh booted windows 7 uses around 1GB on my notebook.
Porteus 3.2 with KDE uses 2.5GB of memory with only system info tool loaded.
I guess it´s more an issue of memory leakage than an issue with javascript. 4GB of main memory seem to be too less for usage of KDE on my notebook.
I guess i better go back to XFCE.
But after login some things didn´t work like Wifi or connected USB devices like USB HDD and USB memory stick did not show up anymore.
After a fresh reboot i checked memory usage. I was very surprised. Fresh booted windows 7 uses around 1GB on my notebook.
Porteus 3.2 with KDE uses 2.5GB of memory with only system info tool loaded.
I guess it´s more an issue of memory leakage than an issue with javascript. 4GB of main memory seem to be too less for usage of KDE on my notebook.
I guess i better go back to XFCE.
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: How do i kill hanging applications?
^ Apparently the Linux philosophy is to use up as much free memory as it would like to have, if such is available. Am making do with 871 MiB of RAM and 1668 MiB swap space:
Code: Select all
guest@porteus:~$ free -m total used free shared buff/cache available Mem: 871 583 72 38 216 68 Swap: 1668 886 781
Code: Select all
top - 21:18:49 up 2:23, 0 users, load average: 0.09, 0.32, 0.88 Tasks: 144 total, 5 running, 139 sleeping, 0 stopped, 0 zombie %Cpu(s): 5.0 us, 3.7 sy, 0.0 ni, 88.3 id, 2.3 wa, 0.0 hi, 0.7 si, 0.0 st KiB Mem : 892908 total, 67976 free, 599744 used, 225188 buff/cache KiB Swap: 1708724 total, 803380 free, 905344 used. 66304 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1285 guest 20 0 3804696 122896 62404 R 2.6 13.8 4:15.64 plasmashell 1778 guest 20 0 682952 33908 19912 R 2.0 3.8 0:18.27 konsole 1149 root 20 0 210932 25668 4344 S 1.3 2.9 10:31.84 Xorg 1281 guest 20 0 3254684 96856 35960 R 1.3 10.8 3:18.45 kwin_x11 1459 guest 20 0 1125816 227388 22396 S 1.3 25.5 17:51.93 palemoon 991 root 20 0 7556 180 156 S 0.3 0.0 0:00.38 gpm 1254 guest 20 0 567160 1316 940 S 0.3 0.1 0:01.86 klauncher 1284 guest 20 0 826844 2712 2244 S 0.3 0.3 0:04.08 krunner 1660 root 20 0 0 0 0 S 0.3 0.0 0:11.59 kworker/0:0 1 root 20 0 240 0 0 S 0.0 0.0 0:00.48 init
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB