summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-10-30 12:01:07 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-10-30 12:01:07 +0000
commit81dc6a9a8ebdb39f720a21536ebcae9ecb73369e (patch)
tree6bd6610dc35a7087c29aff80cc2a19d4910fb739
parentc1fa71d74c800a378ceec6e4979ac3d9fa60ade0 (diff)
downloadrabbitmq-server-bug25482.tar.gz
Math is hard, let's go shopping (for a 64 bit OS).bug25482
-rw-r--r--src/vm_memory_monitor.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm_memory_monitor.erl b/src/vm_memory_monitor.erl
index e400db42..9653d000 100644
--- a/src/vm_memory_monitor.erl
+++ b/src/vm_memory_monitor.erl
@@ -225,7 +225,7 @@ get_vm_limit({win32,_OSname}) ->
%% in big trouble anyway.
get_vm_limit(_OsType) ->
case erlang:system_info(wordsize) of
- 4 -> 2*1024*1024*1024; %% 2 GB for 32 bits 2^32
+ 4 -> 2*1024*1024*1024; %% 2 GB for 32 bits 2^31
8 -> 256*1024*1024*1024*1024 %% 256 TB for 64 bits 2^48
%%http://en.wikipedia.org/wiki/X86-64#Virtual_address_space_details
end.