memsup:get_system_memory_data/0 not working on FreeBSD?
Daniel Solaz
ds.erl@REDACTED
Sun May 12 19:08:25 CEST 2002
this is Erlang/OTP 8.1 compiled from sources on FreeBSD 4.4
as far as I've seen os_mon works fine except for
(erl40016@REDACTED)4> memsup:get_system_memory_data().
=ERROR REPORT==== 12-May-2002::18:59:18 ===
Error in process <0.76.0> on node 'erl40016@REDACTED' with exit value:
{{badmatch,{#integer(2) = {49152,7327},#integer(2) =
{16384,8014}}},[{memsup_helper,get_system_memory_usage,1},{memsup_helper,loop,2}]}
=SUPERVISOR REPORT==== 12-May-2002::18:59:18 ===
Supervisor: {<0.75.0>,memsup_helper}
Context: child_terminated
Reason: {{badmatch,{480231424,525221888}},
[{memsup_helper,get_system_memory_usage,1},
{memsup_helper,loop,2}]}
Offender: [{pid,<0.76.0>},{mod,memsup_helper}]
=ERROR REPORT==== 12-May-2002::18:59:18 ===
** Generic server <0.75.0> terminating
** Last message in was {'EXIT',<0.76.0>,
{{badmatch,{480231424,525221888}},
[{memsup_helper,get_system_memory_usage,1},
{memsup_helper,loop,2}]}}
** When Server state == {state,memsup_helper,
undefined,
<0.76.0>,
{<0.75.0>,memsup_helper}}
** Reason for termination ==
** {{badmatch,{480231424,525221888}},
[{memsup_helper,get_system_memory_usage,1},{memsup_helper,loop,2}]}
=CRASH REPORT==== 12-May-2002::18:59:18 ===
crasher:
pid: <0.75.0>
registered_name: []
error_info: {{badmatch,{480231424,525221888}},
[{memsup_helper,get_system_memory_usage,1},
{memsup_helper,loop,2}]}
initial_call: {gen,init_it,
[gen_server,
<0.73.0>,
<0.73.0>,
supervisor_bridge,
[memsup_helper,[],self],
[]]}
ancestors: [os_mon_sup,<0.72.0>]
messages: []
links: [<0.73.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 233
stack_size: 23
reductions: 148
neighbours:
=SUPERVISOR REPORT==== 12-May-2002::18:59:18 ===
Supervisor: {local,os_mon_sup}
Context: child_terminated
Reason: {{badmatch,{480231424,525221888}},
[{memsup_helper,get_system_memory_usage,1},
{memsup_helper,loop,2}]}
Offender: [{pid,<0.75.0>},
{name,memsup_helper_sup},
{mfa,{memsup_helper,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 12-May-2002::18:59:18 ===
supervisor: {<0.88.0>,memsup_helper}
started: [{pid,<0.89.0>},{mfa,{memsup_helper,init,[[]]}}]
=PROGRESS REPORT==== 12-May-2002::18:59:18 ===
supervisor: {local,os_mon_sup}
started: [{pid,<0.88.0>},
{name,memsup_helper_sup},
{mfa,{memsup_helper,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
** exited: {timeout,{gen_server,call,[memsup,get_system_memory_data]}}
**
memsup:get_memory_data/0 works:
(erl40016@REDACTED)5> memsup:get_memory_data().
{525221888,479645696,{<0.23.0>,284704}}
is this known?
is this a bug? should I report it as such?
-Daniel
More information about the erlang-questions
mailing list