RE: A website suddenly creates high CPU load
This is usually because the site causing the sudden load is running scripts. There are three unfortunate internet trends that contribute to this happening; be advised, some of the following are just examples, and that this account represents an IT Security and Federal Law Practice in the United States, so don't take anything said here with a grain of salt because we stick with the facts:
1 - Facebook - Many illegal practices; especially with cookies, SCRIPTS (what causes CPU load problems), and of course there's their illegal policy in violation of US privacy laws where people are expected to give up their rights to personal privacy by being asked to submit ID's, birth certificates, utilities bills, etc. all of which are illegal under USC Title XVIII Chapter 42 Subsection 869 because requests for such documents are considered "extortionate credit transactions" and such documents are often used to establish financial credibility. Also bear in mind that the judicial system's personnel such as judges, lawyers, prosecutors, etc. are not well trained in technologically related applications of law; thus, this may be the reason this is the first you're hearing about these issues. There are also a number of privacy protections under Title XVII of USC; however there are too many to list here. Be advised that none of the rights provided by USC may be waived, or considered to have been consented to be waived under any terms of service, contract, or by way of any sort of agreement because such waivers would defer back to USC Title XVIII Chapter 42, Subsection 869. Any persons and/or entities having been perceived to have made such waivers by way of seemingly consenting to such agreements indicating waivers of privacy rights out of ignorance have neither in actuality consented to such waivers even if having done so out of ignorance of the law; nor can any such persons and/or entities be held liable for the mistakes since the law governs for all United States Residents (where a person and/or entity establishes jurisdiction, not where an organization running fraudulent policies resides because jurisdiction is established by the consumer(s)'s / entity(ies)'s residency and/or primary/permanent and/or location, NOT the organization that is providing service). Only the entities having committed such acts of coercion may be held liable for these acts even if a person/persons and/or entity/entities are inadvertently perceived to have entered into agreements of waiver. FaceBook's scripts are known to weigh heavily on CPU load due to the amount of leeching and data mining their scripts are programmed to perform, and those activities are largely related to FaceBook's criminal activities as far as United States Code is concerned anyway.
2 - Twitter constantly runs scripts to update their page. This is merely a part of the architecture of such websites whether Twitter or resembling Twitter.
3 - Use of Java. While we here actually like Java, it is unfortunate that on modern systems and browsers such as Windows 10 OS as of July 2016, and MS Edge, Java is unsupported and installing support for Java for use of those environments puts those platforms at risk. For programming purposes, it is very easy to program in Java; including on an older system that may be nearly 10 years old (that's Moore's Law for you, if you don't know what that is, it's in your interest to look it up, but here's a lead; essentially using Intel as an example, all those " cores " in the modern CPU's, are essentially Pentium 3 1Ghz to 1.5Ghz processors that are made to function in tandem with one another while using improved power consumption design and more cache memory on board the CPU's themselves making speeds such as 4Ghz, a product of the " cores' " combined function, but those cores are all still essentially the same Pentium 3's people were using in 2001 because electrons can only move so fast). Anyway, many organizations in the US do outsource, and unfortunately that means many are working with overseas organizations that are NOT using modern equipment because of limited access due to affordability, and many of those overseas groups still think Java is wonderful (we do too), but unlike those of us with access to more modern equipment due to a higher standard of living, many overseas groups don't recognize that Java is essentially not supported anymore on many modern OS'es and many modern browsers. Basically this amounts to two additional problems when it comes to Java:
A - Persons and Organizations involved in development in parts of the world with regular access to modern equipment still think Java is used because they'll often see Java used in other projects; however the confusion amongst the development community in the more fortunate parts of the world, is largely due to those in the development communities of less fortunate parts of the world still thinking Java has the significant amount of support it once did, but no longer does.
B - When any system by way of any program or interface; whether a browser, client, or the OS itself, receives code that it does NOT support or is in some manner secured against running (Windows 10 is a perfect example of having some limited security against running many Java functions in lieu of the fact MS wants everyone to " just use powershell " ) the OS tends to " choke on the code " and that's another reason you'll see performance suffer.
TO Resolve <Conclusion> - Take the following steps:
R1 - Check your task manager to see if you've anything running in the background that may be running code considered risky to your OS environment.
R2 - Check your add-ons in your browsers. Opera is great at vetting their extensions, but nobody's perfect, and once in a while something will slip by. I don't recall which extension it was, but we did catch one running a bitcoin mining script nearly 1 year ago, and have since removed the extension from the few workstations making use of it.
3 - Check your listing of installed programs for PUPS (Potentially Unwanted Software) that may have been installed along with other programs that were downloaded or installed in the past. Many such programs ONLY run background scripts and do nothing else. Just make sure programs you do decide to uninstall are not 3rd party API's that are proprietary to and required for a program that you use regularly to function.
4 - Check any clients you run regularly; including for gaming (yes, we vet gaming clients too for our residential customers) for running unsupported code. EXAMPLE: EVE Online had a ton of Java Code that was causing problems for its client to operate in Windows 10, and the developers recently resolved that problem by limiting their use of Java in Windows 10; however before the changes were made, it would cause Windows 10 to become so sluggish, it was nearly impossible to navigate the OS upon starting the client due to the Windows 10 kernel getting swamped with Java requests it's programmed to disallow by default. In short, launching the client would cause such instability that clicking a single menu icon would result in a 30+ minute wait just for that icons function to show up; while attempting to launch anything else would take 4+ hours to work at all when typically the same task outside of the scenario given would take 40 or less seconds to launch. This EVE Online example is something that was uncovered by one of our sub-contractors, but it's fresh in most of our minds here.
5 - In the event you do uninstall any software or add-ons, do your best to keep a record of the file path that those pieces of software or add-ons are located in BEFORE uninstalling them. After going through the uninstall process, make sure any temp files or folders related to programs you've elected to uninstall are truly gone by trying to go back to the first folder of the path they were installed in as many such PUP's and programs that are running in the background often leave traces of themselves behind that can still cause detriment to the system.
Hope this advice helps, and if it does, please pay it forward to sharing.
Thank you, and have a good day.