Get Better Memory Performance in Opera 12

, ,

One of the great things about Opera is that it works on all sorts of computers and operating systems.From a shiny new machine with lots of bells and whistles to a very basic setup, Opera makes the most of the resources you have by default. That includes memory. When you have lots of memory, Opera will use larger portions of it to make your browsing faster. But if you think Opera is using too much memory relative to the amount you have available, we have a couple of quick and easy tips you can try.

  • Check to see if it's really a memory problem.

    Type opera:cpu in the address field of the browser and press Enter. Doing this will show you the amount of CPU usage that's being taken up by various processes that have been going on in the browser, such as tabs and extensions.

  • Cut down on the excess

    If you tend to just keep opening new tabs as you browse, that could be slowing you down. There are two different extensions in the add-ons catalog that can help with this problem. One is Tab Counter, which shows you right in the menu bar how many tabs you have open at the current moment. The second one, No Dupes, will tell you if you have any duplicate tabs of the same website open.

  • Optimize your preferences

    Here's an easy one: clean up your browser data! Go to Tools > Preferences > Advanced > Storage. You can also clear your browsing cache and cookies to further speed up page loading.

  • Plug-ins on demand

    Last but not least, while you're in Advanced Preferences, go to the Content tab and select "plug-ins on demand" to cut down on the memory used by plug-in content.

  • Do you have any tips of your own you'd like to share? Tell us in the comments!

Go faster with Opera Mini - also when bicycling Visually stunning themes

Comments

Daned4n3 Tuesday, June 19, 2012 1:16:50 PM

Can you please make the opera:cpu tab labels clickable, so it jumps to the open tab?

AFAIK, this can't be done with extensions since opera: pages are privileged.

inDigazzZAnuarSh Tuesday, June 19, 2012 1:35:40 PM

Plug-ins on demand
Wrong [No Dupes] screenshot?!

What does 'Other' mean?

Aleksander AasAleksander Tuesday, June 19, 2012 1:44:45 PM

Originally posted by AnuarSh:

Wrong [No Dupes] screenshot?!


Misplaced. Fixed now smile

inDigazzZAnuarSh Tuesday, June 19, 2012 1:57:14 PM

Originally posted by AnuarSh:

What does 'Other' mean?


stupidicons Tuesday, June 19, 2012 3:50:32 PM

better performance? also in version 12 you are wasting memory and disk space with icons for every single picture viewed in opera. i deleted them all one year ago and after a year i have again over 20k files in folder ...\local\opera\opera\icons !!! and all of them have a long filenames like: http%3A%2F%2Fhory.lezec.cz%2Ffotos%2Ffil10817.png

this problem was reported many times, but nobody cares...

ClashCityRockerclashcityrocker Tuesday, June 19, 2012 4:04:00 PM

It's unfortunate that too many "bedroom experts" can't distinguish between memory leaks and memory usage.

They are took hung up on how much of their otherwise wasted memory Opera is using.

They REALLY want slow browsing and only using 10MB when their PC has 4GB of memory, then perhaps they should use the Opera Mobile emulator for Windows...

stupidicons Tuesday, June 19, 2012 4:16:30 PM

in case you don´t understand the problem, it´s better stay quiet

QuHno Tuesday, June 19, 2012 4:34:20 PM

Originally posted by clashcityrocker:

It's unfortunate that too many "bedroom experts" can't distinguish between memory leaks and memory usage.


Oh, that is simple in Windows: Start Opera with memguard.
If there is a memleak log, there is a memleak.
btw: There is.

If Opera eats up all RAM and does some heavy thrashing on the HDD to fill the swap file with literally gigabytes of data too, then there is a problem too. It might not be a memleak, but still a problem to solve.

Closing the tabs that cause Opera 12 to eat up all available memory can't be the solution because that wasn't needed with the previous versions. I know some people who lived happily for years with 100+ tabs always open - and then came 12. Most of them were warned and had made a backup before, but some are very unhappy now.

The next problem: There are some pages that cause Opera to use all Processor power and eat up all available memory in such a bad way, that not only Opera freezes, but the whole Operating System UI freezes so that you can't even shot the offending pages or task kill Opera. This did not happen before.

The shiny opera:cpu page doesn't help with this at all - only a decent watchdog would.

zentechinc Tuesday, June 19, 2012 4:54:10 PM

Agree and disagree on select points discussed. It seems to me that Opera 12's light to moderate browsing is faster and smoother than Opera 11's (which was already pretty sweet). However, intense browsing for research where many tabs are open (I’m talking 20+ tabs), especially when some of those tabs may have flash or video objects, is much more painful in Opera 12.

While I think the opera:cpu tab is clever and an excellent attempt at transparency with regard to the browser's performance; I also think it can be improved significantly. Why not show a memory usage per page? Include an active audio flag to show which tabs are currently generating audio (who doesn't hate having to stop their reading and music to find an annoying advertisement for TV dinners on some obscure page that is queued to be read later). better yet, how about a mute or freeze or archive feature that allows tabs to be put on a figurative back burner.

I guess that is what sessions and bookmarks are for though. Speaking of sessions, can we please get a way to observe a sessions content and maybe add/remove things from a session in question?

Also, Opera Link of news feeds would be delightful.

It seams to me that anyone with the presence of mind to actually want to see CPU resource consumption is probably a power user and advanced enough to also be concerned about the various other attributes associated with the page.

Wow, this kind of turned into a wish-list, huh?

Sorry about that.

Robyyourscreamsareinvain Tuesday, June 19, 2012 6:59:43 PM

Yup, people have a few good points.
Opera uses huge amounts of processor power and memory when lots of tabs with flash and video content are opened.
Opera is even in a state similar to a freeze when I open a few tabs like that. It takes some time before I can continue using it, everything is super delayed for a while.

And YES, please add RSS feeds to Opera Link! How much longer will i have to beg for it? cry
When i add new feeds on one computer i have to transfer them manually to the other. And I have to mark stuff as read for each computer separately.

But Opera is still the best smile
Built in email, feeds, contacts, notes, speed dial and shortcuts ftw!
Thanks for the hard work!

earth01 Wednesday, June 20, 2012 7:24:33 AM

In my experience, there's no memory leak, as if you open Opera, you browse and you close it, no memory is used more than before opening Opera.

Then, the more you browse, the more it uses memory and it keeps all the content used in memory. So when you reach the end of the RAM, even with all tabs closed, you cannot browse anymore unless you restart the browser.

The main problem is here I think.

NB : The settings in O/Settings/Preferences.../Advanced/History have no effects.

Petter Nilsenmitchman2 Wednesday, June 20, 2012 8:33:16 AM

That memguard reports a leak on exit does not mean there's a continues leak in Opera, it just means it's likely a one-time leak we know about already. The OS will free up that on exit anyway.

dbratell Wednesday, June 20, 2012 9:04:51 AM

As the one implementing opera:cpu (sorry about the style, I'm a core developer - graphic design has never been my main interest), I agree that it can be improved. About including memory information there, that is something I've considered but we don't have all the necessary information available to make it accurate. During the spring we have been running a research project about low overhead memory tracking together with Linköping University and that might eventually turn into something but we'll see.

Making it possible to switch to/activate the tab when it refers to a tab would also be a nice improvement and I've seen the need myself (I have about 200 tabs open and not all with unique titles).

About memory usage in general, I think that is something we can keep improving. It's always a balance with performance and memory usage and to keep one high and the other low you have to do very smart things and I don't think we've run out of smart things to do yet. :-)

One thing to realise about the current Opera memory usage policy in our desktop product is that we'll happily use memory up to a limit to make history navigation and page loading faster. It's only once we're past that limit that we really try to limit memory usage.

Since this is a rather technical post you I'll tell you how to see that limit. Open opera:memdebug and look at the first line:

In my case (with 200 tabs) it is:
Documents 680858 kB 307200 kB 221

That says that we're at 221% of the limit which means that no more memory will be spent on making my loading/history navigation fast.

As proved by the line:
Cached documents 0

If you are below that limit (especially if you are below 80%) then we'll keep pages in memory even though you left them and the surest way to free the memory is to close the tab.

The rest of opera:memdebug is kind of technical. Don't worry too much about it. Maybe someone will make an article explaining the interesting parts of it at some time though.

earth01 Wednesday, June 20, 2012 9:22:27 AM

@dbratell

What can you say about the behavior I described above ? I'm sure you experienced that too.

ferry suradiferrysuradi Wednesday, June 20, 2012 6:52:42 PM

hi..smile

Muhammad Shahmi Bin Said @ SaidiTechnosparks Thursday, June 21, 2012 10:21:06 AM

Please answer my poll at my blog guys smile I would appreciate it bigsmile http://my.opera.com/Technosparks/blog/

QuHno Thursday, June 21, 2012 6:36:21 PM

Originally posted by mitchman2:

(...) it just means it's likely a one-time leak we know about already.

Thanks for clarification.
Should we send it anyway if it happens in combination with a crash?

Joel Spadinspadija Friday, June 22, 2012 2:00:29 AM

Opera doesn't seem to like releasing memory once I close tabs. If I open a new window and keep opening tabs with images (go on a wallpaper repository and open everything) until Opera is using 3-4GB, (as reported by Process Hacker) then I close that window, Opera's memory usage decreases slightly, but after a day of browsing after closing all these tabs, Opera still uses 2.5-3GB.

Of course, if you have a more reasonable number of tabs open, this isn't an issue.

Charles SchlossChas4 Friday, June 22, 2012 1:33:47 PM

I have turned of Ui animation, not sure tho if it helps w/ ram, but I don't have to wait for the animations to load

naymah3 Friday, June 22, 2012 8:50:51 PM

Originally posted by AnuarSh:

Plug-ins on demand
Wrong [No Dupes] screenshot?!

What does 'Other' mean?

i do loved to see new things

ColdWarBaby Monday, June 25, 2012 3:34:23 PM

I'm guessing that everyone posting here has a relatively new computer with all sorts of bells and whistles and "improvements".

I've got a really old PC and I can't afford a new one. I've only got 512 MB DDR @ 132MHz of RAM. The minute I activate Opera, or any other browser for that matter, my memory usage goes up to over 80% and sometimes it hits 100%.

So what's this "memguard" and is safe and worth installing. Avast tried to prevent me from downloading it so that concerns me a bit.

I always update to the newest version of Opera whenever one is available. One would expect that to lead to a better browsing experience but, in fact, it just seems to keep getting worse. I suppose that's my fault because I've been pretty much broke for the last 12 years and can't afford a new "improved" PC and each new version of Opera is undoubtedly designed with the "new and improved" technology in mind.

I was pretty happy with Opera when I first started using it. I made it my default browser. Is there any way I can go back to an earlier version?

QuHno Monday, June 25, 2012 9:03:41 PM

"memguard" is build in into Opera, no need to download.

Description of the old, outdated memguard and what it does here. Do not install those files for Opera 12! That is just an explanation what it does and how it works, it is now built in!

To activate it, just place a file called memguard.ini on your desktop. This file should contain the word

all

in plain text in it and it will work with the next Opera 12 start.
Be aware that this can cause heavy load and disk thrashing, way more than a normal Opera run and is meant for catching errors only.

ColdWarBaby Tuesday, June 26, 2012 1:46:58 PM

Thank for your response QuHno.

Doesn't sound like memguard will be of any benefit to me. I think I'll simply have to find a way to "upgrade" my PC. I can't afford a new one but I might be able to juice up the ram and maybe even the processor on this one. All depends on what it will cost.

roso wongespwongesp Wednesday, June 27, 2012 12:41:47 PM

Bersama dengan opra saya mohon mf...atas kebodohonku tidak tahu bahasa ingrish...atas tindakanku dngan opra..."oleh sebab itu saya menimbang dan memutuskan untuk menyenangi Opra mini sebagai . lamunan .hayalan. lintasan hati.dan menuangkan hak azasi imajinasi...bersama taman dunia maya di opra mini...kiranya trima senang dan tidak trima senang saya hanya dapat mereduksi dan berpikir kebodohanku mengharap peringatan dunia Opra ...dan mengucapkan trima kasih atas shering dan warning...dan we happy fane in Opra ...

perrybarette Friday, June 29, 2012 1:42:10 PM


Duh, how did I get here ? Anyway, if you will use a RAM optimizer (compacting your memory and reserving contigous space ) before you run Opera 12 by including it as an option on the desktop shortcut, that will be a better option than memguard. Visit your favorite free software download site for datails... AFAIK ... haven't we met at motherboard.com before ... ?

Write a comment

New comments have been disabled for this post.