Consistently use bytes for memory statistics

For some reason, stat_collector assumed rss was reported in kilobytes
instead of bytes and multiplied it by 1024.  The rest of the code then
started to divide the 'used_memory_in_bytes' by 1024 to really get bytes
back.  Very odd.

This change simply removes the hacks that multiply and divide to get
expected data.
Consistently use bytes for memory statistics

For some reason, stat_collector assumed rss was reported in kilobytes
instead of bytes and multiplied it by 1024.  The rest of the code then
started to divide the 'used_memory_in_bytes' by 1024 to really get bytes
back.  Very odd.

This change simply removes the hacks that multiply and divide to get
expected data.
Make memory reported match cgroup usage data

The DEA was reporting 'used_memory_in_bytes' as the RSS returned from
warden.  RSS, however, is not what cgroup uses when checking container
memory limits so it's inappropriate memory statistic to report to end
users via cf stats.

The Linux cgroup implementation reports container memory usage in
memory/memory.usage_in_bytes and calculates this by adding
memory/memory.stat:cache and memory/memory.stat:rss so this change will
introduce the same logic to the DEA.  Instead of using cache and rss,
however, total_rss and total_cache will be used as it accounts for child
containers when present.
updated license and notice file
Use ruby 1.9 hashes

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Update rubyzip gem (:test group)

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Remove TODOs

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Remove rspec monkey patch

  * kernel.srand issue has been fixed

[#62177292]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Log instance index when registering/unregistering instance

[#61267804]

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>
Merge pull request #88 from sykesm/consistently-use-bytes-for-memory

Consistently use bytes for memory statistics
Add warden update instructions
Emit loggregator message when health check fails

[finished #63325056]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Fix wording for health check timeout log message

[#63325056]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Update log messages when starting and stopping apps

[finished #63115394]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Remove duplicate debugger gem entry

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Remove .bundle/config

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Cleanup ignore file

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Re-add debugger gem and organize Gemfile

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Remove unnecessary version from nokogiri gem

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Ignore .bundle dir

Signed-off-by: Aram Price <aprice@pivotallabs.com>