Skip to content

Instantly share code, notes, and snippets.

@wnstn
Created April 19, 2013 19:36
Show Gist options
  • Save wnstn/5422662 to your computer and use it in GitHub Desktop.
Save wnstn/5422662 to your computer and use it in GitHub Desktop.
Error
/etc /usr/local/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log [ruby-1.9.3-p125]
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=14442496, 03600).
HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 14442496 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.
If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about shared memory configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment