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

Error when changing Membase memory quota

3 replies [Last post]
  • Login or register to post comments
Fri, 04/29/2011 - 08:38
simonthorogood
Offline
Joined: 01/14/2011
Groups: None

based on the info here:

http://stackoverflow.com/questions/5286669/how-to-change-membase-memory-...
http://techzone.couchbase.com/wiki/display/membase/Membase+Management+RE...

I've been trying to change the memory quota for a single instance of membase. My request is of the form:

POST http://localhost:8091/pools/default HTTP/1.1
Host: localhost:8091
Content-Type: application/x-www-form-urlencoded
Authorization: Basic QWRtaW5pc3RyYXRvcjpmcmFuZ28=
Content-Length: 18

memoryQuota=1024

But I get the following response:

HTTP/1.1 400 Bad Request
Server: Membase Server 1.6.4.1
Pragma: no-cache
Date: Fri, 29 Apr 2011 15:35:59 GMT
Content-Type: application/json
Content-Length: 41
Cache-Control: no-cache no-store max-age=0

["The RAM Quota value must be a number."]

Any ideas?

Top
Fri, 04/29/2011 - 16:08
perry
Offline
Joined: 10/11/2010
Groups:

"Seems" like that should be working, clearly it's not.

Can you try it with the curl command:

curl -d memoryQuota=1024 http://:@:8091/pools/default

edit: I've had this successfully work. Make sure you're using a Membase version >=1.6.4

__________________

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
Mon, 05/02/2011 - 07:34
simonthorogood
Offline
Joined: 01/14/2011
Groups: None

OK thanks, I seem to have it working via curl. The following worked for me

curl -d memoryQuota=1024 http://localhost:8091/pools/default -u Administrator:xxxxx

Top
Mon, 05/02/2011 - 07:41
simonthorogood
Offline
Joined: 01/14/2011
Groups: None

Just figured out that my issue was stray white-space in the request body! (was using Fiddler Request Builder)

Top
  • 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