darxus: (Default)
darxus ([personal profile] darxus) wrote2010-07-11 11:52 am

Google Chrome sucks at freeing ram

This computer with 8gb ram keeps ending up swapping because of chrome.
I had 48 tabs open, with chrome using 4.2 gigs of ram, copied all the open urls to a file, closed chrome, started it, re-opened all the links, and memory is at 0.8 gigs of ram, in use. 19.0% of what it had been using.

[identity profile] woodwardiocom.livejournal.com 2010-07-11 04:15 pm (UTC)(link)
If the JavaScript (or whatever) on a page is badly coded, so it keeps consuming more and more memory, any browser has the option of breaking the page, or living with the problem. It's not necessarily Chrome's fault.
Edited 2010-07-11 16:15 (UTC)

[identity profile] milktree.livejournal.com 2010-07-11 04:46 pm (UTC)(link)

Ugh.. this is why I like web pages that could be written in vi. JavaScript and Flash and all similar crap never fails to annoy me. That's not really true, but the vast overwhelming majority of it just makes the pages harder to read and navigate.

[identity profile] darxus.livejournal.com 2010-07-11 06:39 pm (UTC)(link)
There is JavaScript on my site that's written in vi :)
But it's some very basic image pre-caching in my gallery that is tested to function perfectly in the absence of JavaScript support.

[identity profile] milktree.livejournal.com 2010-07-11 06:48 pm (UTC)(link)
You, my friend, are an exception.

Most Flash and JavaScript is crap, and only makes things worse. (although shinier)

And, the fact you wrote it in vi makes it by my definition, OK.

[identity profile] darxus.livejournal.com 2010-07-11 07:50 pm (UTC)(link)
Poor behavior by the browser is always the browser's fault. Negligent or malicious web pages do not make it acceptable for a browser to suck.

Just like allowing a bad program to crash a computer is always the operating systems fault. (Or maybe the hardware.)

[identity profile] feng-huang.livejournal.com 2010-07-11 09:07 pm (UTC)(link)
I think I'm too used to Reddit, because I looked for the arrow to upvote this comment after I read it.

[identity profile] woodwardiocom.livejournal.com 2010-07-11 09:10 pm (UTC)(link)
That's a valid way of looking at it.

Ideally, I guess, Chrome would report which sites leak memory, and then advise you not to visit them anymore, or offer to break them when they exceed X megabytes.

[identity profile] darxus.livejournal.com 2010-07-11 10:57 pm (UTC)(link)
Chrome has its own task manager, which you can get to by right clicking the title bar, or hitting shift-escape. Some of the tabs are somehow linked, I don't understand what's going on there.

[identity profile] underwatercolor.livejournal.com 2010-07-13 06:29 am (UTC)(link)
When you "open in a new tab," Chrome tends to use one process for multiple tabs. I can think of some reasons why, but it's probably lame.

[identity profile] darxus.livejournal.com 2010-07-13 01:31 pm (UTC)(link)
Yeah. Probably sharing cache memory or something. But given their memory problems, it seems to currently be a terrible idea.
drwex: (Default)

That's unfortunate

[personal profile] drwex 2010-07-12 04:09 pm (UTC)(link)
I've been on the verge of chucking Firefox because they seem incapable of solving their memory issues. Then they rearchitected (around release 3.4 I think) to move all media processing into a separate process. The result is a still leaky as heck, but much less likely to freeze up my computer.

Re: That's unfortunate

[identity profile] darxus.livejournal.com 2010-07-12 04:17 pm (UTC)(link)
Yeah it's fascinating how browsers have always seemed to have so much difficulty not sucking. I assume it doesn't help that most of the html on the internet conforms to no standard.

You could try Opera.

[identity profile] underwatercolor.livejournal.com 2010-07-13 06:27 am (UTC)(link)
Yeah. Chrome has several problems when left open for long periods of time. I... still use it, as Firefox annoyed me more. But come on... this isn't what this era considers a hard problem. :)