Skip to content

Instantly share code, notes, and snippets.

@terriyu
Created July 23, 2013 17:29
Show Gist options
  • Select an option

  • Save terriyu/6064325 to your computer and use it in GitHub Desktop.

Select an option

Save terriyu/6064325 to your computer and use it in GitHub Desktop.
Troubleshooting MongoDB connection problems, checking for out-of-memory errors in the kernel, but "dmesg | grep -i memory" doesn't return anything out-of-the-ordinary.
$ dmesg | grep -i memory
[ 0.000000] initial memory mapped : 0 - 20000000
[ 0.000000] Base memory trampoline at [ffff88000009a000] 9a000 size 20480
[ 0.000000] init_memory_mapping: 0000000000000000-000000007fff0000
[ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Memory: 2033420k/2097088k available (6566k kernel code, 452k absent, 63216k reserved, 6637k data, 920k init)
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.021585] Initializing cgroup subsys memory
[ 0.680609] Freeing initrd memory: 14396k freed
[ 1.776857] Freeing unused kernel memory: 920k freed
[ 1.791165] Freeing unused kernel memory: 1608k freed
[ 1.795391] Freeing unused kernel memory: 1196k freed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment