Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to find out the PID, if such exists of the Mozilla browser process which launches Javascripts?
Oddly enough have just now had to turn off Javascript, because while browsing the main page of this forum, memory usage went ballistic, swap jumped 300 MB and CPU 100%. All froze until browser came up with option to stop unresponsive script, some almost 5 minutes later.
Am fed up with some five minutes after disabling Javascript and minimising browser the whole system freezes due to unresponsive google apis script, best part of 10 minutes system incapacitated.
Flash hogging of system, am able to resolve by killing plugin-container, and it would be great if something similar for Javascript existed. Short of closing browser would like to terminate all running scripts before minimising browser.
something is clearly wrong with your browser, however that is not the solution.
what system, what distro, what browser (version), what addons?
and are you shutting down your browser regularly and cleaning up local files and do NOT use the restore tabs option?
answer these and we might get somewhere.
also, good you switched off javascript execution for now.
also flash should only be allowed to run after you explicitely allowed it by clicking on it.
addons exist to allow javascript selectively (noscript). a pain to get used to, but worth the effort on low hardware specs.
adblockers also, because besides just sucking, ads also suck resources.
something is clearly wrong with your browser, however that is not the solution.
Possibility have been considering. Browser is Light
Quote:
what system, what distro, what browser (version), what addons?
Linux Kernel 4.9.0, Porteus 3.2.2 KDE5, Light 47.0
Extensions: Another Restart, FEBE, FlashDisable, LastPass, Silent Block, storeTab, (new) disallow Script
Quote:
and are you shutting down your browser regularly and cleaning up local files
No problem here as running in RAM. Only persistence being the browser profile kept on real filesystem.
Quote:
do NOT use the restore tabs option?
Something to bear in mind. Been using it on PaleMoon without problem. Could be that here profile has been contaminated. Must try and eliminate that possibility.
Quote:
addons exist to allow javascript selectively (noscript). a pain to get used to, but worth the effort on low hardware specs.
adblockers also, because besides just sucking, ads also suck resources.
Gave up on noscript as one was being asked to make decisions about browser hijacking etc., which presumed expert knowledge of script tricks. Just use Silent Block, as URLs can be specified as regex, meaning sometimes let googleapis through and sometimes block, depending on context of URL. Also have added a user.js to browser profile.
Lastly, funnily enough after posting here got an X Y Solution. Searching for X found Y, being the 'disallow Script', which I thought had fallen by the wayside with FF 44, but apparently still very much alive. This blocks scripts per tab, meaning am able to just allow scripts to run in one tab. Not quite functioning completely properly as it used to do, at the moment, but at least going some of the way. Although providing a partial solution will not deter from quest to find the silver bullet: kill -- -<PID>!
Browser is Light
Linux Kernel 4.9.0, Porteus 3.2.2 KDE5, Light 47.0
Extensions: Another Restart, FEBE, FlashDisable, LastPass, Silent Block, storeTab, (new) disallow Script
a browser unsupported on most probably ANY linux distro, a larger number of addons, still no info on your hardware.
i see many reasons why your cpu could jump to 100% sometimes.
Quote:
Although providing a partial solution will not deter from quest to find the silver bullet: kill -- -<PID>!
i don't think the javascript has its own pid, it's just part of the browser process.
but i might be wrong, so keep reading those docs!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.