Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.7.x

Is this a web console memory leak in IE7 and IE8 on Windows?

8 replies [Last post]
  • Login or register to post comments
Sun, 09/18/2011 - 21:03
Victor Tseng
Offline
Joined: 09/14/2011
Groups: None

I found that the memory footprint of the web console continously grows even just login and keep the web console idle at the main page (Cluster Overview). Starting memory footprint is about 38MB (IE7) and 50MB (IE8), and after about one hour idle now the footprint is around 110~120MB.

Here is the machine spec used for browing the web console:
1. 32-bit Windows XP SP3 + IE8
2. 64-bit Windows Server 2008 SP2 + IE7

Top
  • Login or register to post comments
Mon, 09/19/2011 - 10:24
alex
Offline
Joined: 08/29/2011
Groups: None

Hi Victor,

Do you mean the membase process itself or the browser footprint?

For the membase process, you should expect to see on average around a 150mb footprint and zero cpu for a idle instance of membase without data.

-Alex.

Top
  • Login or register to post comments
Mon, 09/19/2011 - 19:12
Victor Tseng
Offline
Joined: 09/14/2011
Groups: None

Hi Alex,

It's the browser footprint.

And here are some more findings:

  • After the browser footprint grew, by refreshing the page in the browser I can release about 10-30MB memory but it never goes back to the level when the page first time loaded.
  • Logout seems doesn't help although I thought that releasing the page should cause the browser to release all stuff associated with that page.
  • I can observe the same issue in Chrome (v14.0.835.163 ) and FireFox (v4.x) (both are Windows version). I'll try out the FireFox 6.0 later.

Best regards,
Victor

Top
  • Login or register to post comments
Mon, 09/19/2011 - 19:50
Victor Tseng
Offline
Joined: 09/14/2011
Groups: None

An update:

Browser memory footprint growing in FireFox 6.0.2 for Windows observed with Web Console page loaded. Started with 96MB and after about half an hour it's around 180MB.

Top
  • Login or register to post comments
Tue, 09/20/2011 - 14:58
perry
Offline
Joined: 10/11/2010
Groups:

Just to confirm again, it is your FireFox or IE process whose memory is growing constantly, not the Membase process(es) right?

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Tue, 09/20/2011 - 18:33
Victor Tseng
Offline
Joined: 09/14/2011
Groups: None

Yes you are correct. The memory footprint of Membase processes (erl.exe and erlsrv.exe if I understand correctly) is stable even after a stress test we just done, while after that stress test the browser process grew to 400MB.

Top
  • Login or register to post comments
Thu, 09/22/2011 - 04:58
alex
Offline
Joined: 08/29/2011
Groups: None

victor, do you see this behavior on other html5/flex heavy web sites with your browser? How much memory is generally on the machines you access membase from?

Top
  • Login or register to post comments
Fri, 09/23/2011 - 04:05
Victor Tseng
Offline
Joined: 09/14/2011
Groups: None

Hi Alex and Perry,

I am looking at this issue because I think that when we deploy Membase to production the operation team shall open the Web Console monitoring page in browser on 24x7 basis. So if the browser memory footprint will grow continously then they need to close and reopen the page in browser periodically, which could be annoying.

And for Alex's two questions:

1. Yes I "did" see this behavior before.

One of our web sites ever hit this problem in Windows based web browser during development phase, and I think that both web sites (ours and the Web Console) shares the same characteristic (which is also the root cause of the leaking in our web site): The web page uses AJAX calls to continously pull data from server and update the page content without refreshing or reloading the page. So any dynamically created HTML DOM or JavaScript object that not properly disposed will remain in memory and pile up as time goes by.

We finally stopped most of the leaking in Windows based web browsers (we don't target non-Windows wbe browser) after a long memory leaking hunting run. Some of the leaking cases are bugs in specific browser and our workaround is to do a full page reload in next auto-update action after a designated timespan has elasped.

2. Currently I installed Membase server in two machines and browse the Web Console page locally (i.e., from http://localhost:8091). So the machine is both the hosting box of Membase server and the web browser that visits Web Console page.

One machine is my development machine with Windows XP 32bit 4GB RAM (so yes only 3.5GB usable). The other is a demo machine with Windows Server 2008 64bit 16GB RAM.

Today I open the monitoring page http://localhost:8091/index.html#sec=analytics&statsBucket=/pools/defaul... and it looks that browser process' memory grows faster because there are lots stuff to update. Both machine's browser process grows to about 900MB after 8 hours.

I also tried to boot 3 web servers in the Windows XP machine so that the memory pressure is high (one web site starts to log "out of memory" exception), and the browser process still holds the memory. So it should be less likely caused by browser's garbarge collection strategy.

Hope that the above info helps :)

Best regards,
Victor

Top
  • Login or register to post comments
Tue, 09/27/2011 - 15:56
alex
Offline
Joined: 08/29/2011
Groups: None

Victor - don't have a immediate fix for you but we did create a bug for this and its being tracked for 2.0 against IE 8, FF 4+, chrome and safari.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker