LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2022, 07:12 AM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 867

Rep: Reputation: Disabled
browser and everything else on screen froze


The problem started when I went to a site and above the top part of browser appeared in yellow asked me to 'wait or stop', I clicked wait, later I clicked stop. Everything froze and I had to power off/on to get back to normal after 40 minutes. I tired Ctrl + Esc, and Alt + space, crtl F2 etc, nothing worked. I wasn't able to get into terminal either using shortcut keys. Was powering off my only option?

Last edited by linux-man; 06-24-2022 at 08:09 AM.
 
Old 06-24-2022, 01:04 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,102
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
The problem started when I went to a site
What site? Have no way of knowing what you have done. What was the machine waiting for? Downloading, big huge page load, one of those huge images that netflix puts in your browser?
 
Old 06-24-2022, 01:38 PM   #3
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
What browser? I have seen Falcon having what I think is memory leaks, filling up the memory all the way, where my computer slows down and I have to close the browser and get back to normal. Not a total computer freeze like you describe.
 
Old 06-24-2022, 08:59 PM   #4
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 867

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
What site? Have no way of knowing what you have done. What was the machine waiting for? Downloading, big huge page load, one of those huge images that netflix puts in your browser?
udacity.com, cause may have been a script perhaps?Firefox browser
 
Old 06-24-2022, 09:25 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
I visited that site in Firefox on Mageia v. 8 and was not able to duplicate the issue. In fact, the site seemed to work quite quickly.

I clicked the "Download Report" button and the *.pdf opened in Okular within seconds.
 
Old 06-24-2022, 10:05 PM   #6
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by linux-man View Post
The problem started when I went to a site and above the top part of browser appeared in yellow asked me to 'wait or stop', I clicked wait, later I clicked stop. Everything froze and I had to power off/on to get back to normal after 40 minutes. I tired Ctrl + Esc, and Alt + space, crtl F2 etc, nothing worked. I wasn't able to get into terminal either using shortcut keys. Was powering off my only option?
This usually happens when you exhaust your RAM & Swap file. I have had it happen when I accidentally opened too many windows in Firefox (~300) or tried to open multiple pdf and word documents together (>100).

One option you can try is to ssh to the host from another machine, if you are successful then kill the process (in this case Firefox).
 
1 members found this post helpful.
Old 06-25-2022, 12:07 AM   #7
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 867

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suramya View Post
This usually happens when you exhaust your RAM & Swap file. I have had it happen when I accidentally opened too many windows in Firefox (~300) or tried to open multiple pdf and word documents together (>100).
I did have quite a few things running at same time. Is there a way to adjust the ram or swap to prevent this from occurring again?
 
Old 06-25-2022, 01:23 AM   #8
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
You can see how much memory you use with
Code:
free -h
 
Old 06-25-2022, 08:40 AM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,102
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
Is there a way to adjust the ram or swap to prevent this from occurring again?
You can change swapiness to a lower value so it wont swap as quickly. That's been talked about, the pros and cons of it. As for RAM, put more RAM in if you don't have enough.

I can max out the RAM on an old dual core box with 4GB RAM, without a swap partition, using something like google maps. When I do, the machine doesn't die, it sorta stops and becomes unresponsive for a bit until a bunch of RAM is dumped, and then the browser will crash/close.

You can also clear pages in RAM that are no loner active. Didn't say it was a good or bad thing, just that you can do it.

Systemd or not

Clear PageCache only.
Code:
sync; echo 1 > /proc/sys/vm/drop_caches

sudo sh -c 'echo 1 >/proc/sys/vm/drop_caches

sudo sysctl vm.drop_caches=1
Clear dentries and inodes.
Code:
sync; echo 2 > /proc/sys/vm/drop_caches

sudo sysctl vm.drop_caches=2
Clear PageCache, dentries and inodes.
Code:
sync; echo 3 > /proc/sys/vm/drop_caches

sudo sysctl vm.drop_caches=3
I've done that before too. With the web browser open. Cleared pages that the browser is no longer using. That will allow you to continue. If you go back to a web page that you have already opened, you'll have to download it again. But the machine never crashed on me, or the web browser.
 
Old 06-25-2022, 01:04 PM   #10
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by linux-man View Post
I did have quite a few things running at same time. Is there a way to adjust the ram or swap to prevent this from occurring again?
For RAM you need would need to add additional RAM chips to your system. I usually try to max out the available RAM. To add swap you would need to resize your partitions to add more space to the swap partition. Else, you can add another disk and create a swap partition on it.
 
Old 06-26-2022, 02:19 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Do we even know what OP's hardware specs are? what point is there in wild speculations about what _might_ help.
Further, what exactly the OS in question is and whether they're running it in a VM or not.
 
Old 06-26-2022, 05:20 AM   #12
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 867

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
You can change swapiness to a lower value so it wont swap as quickly.
To check current swappiness value should I use this?
Code:
cat /proc/sys/vm/swappiness
 
Old 06-26-2022, 10:57 AM   #13
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by ondoho View Post
Do we even know what OP's hardware specs are? what point is there in wild speculations about what _might_ help.
Further, what exactly the OS in question is and whether they're running it in a VM or not.
Didn't ask because based on their previous threads they seem to be allergic to giving details. (Even in this case, see the response you got for your question (Post#12)
However, based on their brief (very brief) description it seemed to match what I had experienced when I exhausted the RAM+Swap on the system, so shared that...

Now unless they share more details can't help them further.
 
1 members found this post helpful.
Old 06-26-2022, 11:16 AM   #14
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,102
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
To check current swappiness value should I use this?
Code:
cat /proc/sys/vm/swappiness
60
sysctl vm.swappiness
vm.swappiness = 60
Let me see, some general info:
https://wiki.archlinux.org/title/Swap#Swappiness

Read about that. There are + and - of changing that.
https://bbs.archlinux.org/viewtopic.php?id=271192
https://www.howtogeek.com/449691/wha...-to-change-it/
 
1 members found this post helpful.
Old 06-29-2022, 09:58 PM   #15
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 867

Original Poster
Rep: Reputation: Disabled
Thanks, my new swappiness value is 10 after reboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
18.04 - the screen froze and kicked me out, upon login Im kicked back out wadesmart Ubuntu 2 07-11-2018 07:38 AM
screensaver froze, reboot ,3 long beeps, Fedora 11 never boots,no splash screen ehdwuld Linux - General 3 07-01-2009 06:00 PM
Kppp Froze>froze system>Lost a lot of data digitalhead Linux - Software 1 04-24-2005 08:12 PM
Alsa Problems: KDE System sounds work, everything else choppy! patkalolo Linux - Hardware 2 12-13-2004 09:40 PM
Slack 10:KDE is great, everything else seems broken tigerflag Slackware 7 07-24-2004 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration