What is wrong? Help please.

svg <>
Sun Oct 10 19:17:25 CEST 1999


I'm working on simple erlang alarm monitor with Java front-end, but jive
always crushs with same reason on the same function after 2-10 minutes of
work. Below is a part of erlang-crush.dump.
My environment is RedHat Linux 6.0 and erlang-47.4.1.

<Erlang crash dump>
Sun Oct 10 22:53:18 1999

Slogan: <0.184.0>: Overrun heap
heap start 0x082f6c08, heap end 0x082f946c, size 0x00000a18


Erlang (JAM) emulator version 47.4.1
Compiled on Tue Sep 14 21:51:00 1999

Process Information
--------------------------------------------------

...skipped...

--------------------------------------------------
<0.183.0> Waiting. Registered as: jive_server
Spawned as: jive:jive_server_boot/0
Current call: jive:jive_server_loop/3
Link list: [<0.196.0>,<0.184.0>]
Reductions=30 stack=87 heap=89 old_heap_sz=0
Heap unused=57 OldHeap unused=0
--------------------------------------------------
<0.184.0> Running.
Spawned as: proc_lib:init_p/5
Current call: jive:int_to_bytes/1
Link list: [<0.196.0>,<0.183.0>,<0.189.0>,<0.188.0>]
Dictionary: [{'$initial_call',{jive,listen_boot,[14000]}},{'$ancestors',[ams_sup,<0.174.0>]}]
Reductions=133648 stack=375 heap=2584 old_heap_sz=2584
Heap unused=-1 OldHeap unused=2584
--------------------------------------------------
<0.185.0> Waiting. Registered as: alarm_reckeeper
Spawned as: proc_lib:init_p/5
Current call: gen_server:loop/6
Link list: [<0.196.0>,<0.186.0>,<0.175.0>]
Dictionary: [{'$initial_call',{gen,init_it,[gen_server,<0.175.0>,<0.175.0>,{local,alarm_reckeeper},alarm_reckeeper,[],[]]}},{'$ancestors',[ams_sup,<0.174.0>]}]
Reductions=28356 stack=87 heap=377 old_heap_sz=377
Heap unused=11 OldHeap unused=377
--------------------------------------------------
<0.186.0> Waiting.
Spawned as: alarm_observer:start/1
Current call: gen:wait_resp/4
Link list: [<0.185.0>]
Dictionary: [{random_seed,{25880,17513,21457}}]
Reductions=20319 stack=231 heap=610 old_heap_sz=377
Heap unused=467 OldHeap unused=377
--------------------------------------------------
<0.188.0> Waiting.
Spawned as: proc_lib:init_p/5
Current call: inet_tcp:listen_loop/4
Link list: [<0,152>,<0.184.0>]
Dictionary: [{'$initial_call',{inet_tcp,listen_mgr,[<0.184.0>,<<0,355>>,{sock,[],{0,0,0,0},14000,true,[{reuseaddr,true},{packet,4},{active,true}],[],[],[],undefined,undefined}]}},{'$ancestors',[<0.184.0>,ams_sup,<0.174.0>]}]
Reductions=89 stack=87 heap=233 old_heap_sz=55
Heap unused=98 OldHeap unused=55
--------------------------------------------------
<0.189.0> Waiting.
Spawned as: proc_lib:init_p/5
Current call: inet_tcp:socket_loop/3
Link list: [<0,153>,<0.184.0>]
Dictionary: [{'$initial_call',{inet_tcp,accept_mgr,[<0.184.0>,<<0,357>>,2,{sock,[],{0,0,0,0},14000,true,[{reuseaddr,true},{packet,4},{active,true}],[],[],[],undefined,undefined},infinity]}},{'$ancestors',[<0.188.0>,<0.184.0>,ams_sup,<0.174.0>]}]
Reductions=2407 stack=87 heap=1597 old_heap_sz=987
Heap unused=1153 OldHeap unused=987
--------------------------------------------------
<0.191.0> Waiting.
Spawned as: erlang:apply/2
Current call: io:wait_io_reply/2
Link list: [<0.22.0>]
Reductions=14 stack=87 heap=34 old_heap_sz=0
Heap unused=2 OldHeap unused=0
--------------------------------------------------
<0.196.0> Waiting.
Spawned as: proc_lib:init_p/5
Current call: alarm_jive:loop/2
Link list: [<0.185.0>,<0.184.0>,<0.183.0>]
Dictionary: [{'$initial_call',{alarm_jive,start,[0,{pidid,0}]}},{'$ancestors',[<0.192.0>,<0.184.0>,ams_sup,<0.174.0>]}]
Reductions=2947 stack=87 heap=377 old_heap_sz=377
Heap unused=166 OldHeap unused=377
--------------------------------------------------
<0.197.0> Waiting.
Spawned as: proc_lib:init_p/5
Current call: gen_tcp:call/2
Link list: [<0.198.0>]
Dictionary: [{'$initial_call',{jive,listen,[{socket,<0.188.0>,<0,152>,inet_tcp}]}},{'$ancestors',[<0.194.0>,<0.192.0>,<0.184.0>,ams_sup,<0.174.0>]}]
Reductions=7 stack=87 heap=34 old_heap_sz=34
Heap unused=17 OldHeap unused=34
--------------------------------------------------
<0.198.0> Waiting.
Spawned as: proc_lib:init_p/5
Current call: inet_tcp:sync_cmd/4
Link list: [<0,158>,<0.197.0>]
Dictionary: [{'$initial_call',{inet_tcp,accept_mgr,[<0.197.0>,<<0,415>>,2,{sock,[],{0,0,0,0},14000,true,[{reuseaddr,true},{packet,4},{active,true}],[],[],[],undefined,undefined},infinity]}},{'$ancestors',[<0.188.0>,<0.184.0>,ams_sup,<0.174.0>]}]
Reductions=11 stack=142 heap=89 old_heap_sz=0
Heap unused=1 OldHeap unused=0
--------------------------------------------------

Port Information
--------------------------------------------------
<1>
Connected: <0.2.0>
Links: <0.2.0>
Port controls linked-in driver: efile
--------------------------------------------------
<3>
Connected: <0.16.0>
Links: <0.16.0>
Port controls linked-in driver: efile
--------------------------------------------------
<4>
Connected: <0.19.0>
Links: <0.19.0>
Port controls linked-in driver: tty_sl -c
--------------------------------------------------
<152>
Connected: <0.188.0>
Links: <0.188.0>
Port controls linked-in driver: tcp_inet
--------------------------------------------------
<153>
Connected: <0.189.0>
Links: <0.189.0>
Port controls linked-in driver: tcp_inet
--------------------------------------------------
<158>
Connected: <0.198.0>
Links: <0.198.0>
Port controls linked-in driver: tcp_inet
--------------------------------------------------
<169>
Connected: <0.176.0>
Links: <0.176.0>
Port controls linked-in driver: efile
--------------------------------------------------
<172>
Connected: <0.83.0>
Links: <0.83.0>
Port controls linked-in driver: efile
--------------------------------------------------

Internal Table Information
--------------------------------------------------
Hash Table(atom_tab), size(3203), used(2532), objs(4945), depth(7)
Index Table(atom_tab), size(5000), limit(65536), used(4945), rate(100)
Atom space  53612/65544
Hash Table(module_code), size(97), used(72), objs(115), depth(4)
Index Table(module_code), size(120), limit(65536), used(115), rate(10)
Hash Table(export_list), size(1597), used(1250), objs(2472), depth(7)
Index Table(export_list), size(2500), limit(65536), used(2472), rate(100)
Hash Table(process_reg), size(47), used(32), objs(44), depth(4)
Allocated binary 6557
Allocated by process_desc 20160
Allocated by proc_bin_desc 9600
Allocated by table_desc 2080
Allocated by link_desc 3200
Allocated by atom_desc 99200
Allocated by export_desc 69440
Allocated by module_desc 3840
Allocated by preg_desc 960
--------------------------------------------------

Distribution Information
Not alive

Loaded Modules Information
--------------------------------------------------
init 7438
erl_prim_loader 4556
erlang 2459
error_handler 639
heart 1947
error_logger 2197
gen_event 5294
gen 1840
proc_lib 3358
application_controller 14166
gen_server 3996
sys 3510
ets 5766
lists 4972
application 1210
application_master 3185
kernel 1875
supervisor 6060
rpc 2785
global 9279
inet_db 9456
inet_config 4520
inet_udp 2918
inet 9467
erl_open_port 1327
gen_udp 1199
string 2988
inet_parse 6200
os 2481
filename 5808
inet_hosts 1350
erl_distribution 980
global_group 5460
file 8418
code 2605
code_server 7188
code_server_int 919
code_aux 758
user_sup 1138
supervisor_bridge 1174
user_drv 3754
group 2770
edlin 4066
io_lib 2612
shell 3670
io_lib_format 3922
erl_eval 8450
dict 1374
io 2520
kernel_config 1398
error_logger_tty_h 2533
c 5977
erl_scan 5148
erl_parse 61862
io_lib_pretty 1807
example 566
sasl 1733
sasl_report_tty_h 678
alarm_handler 955
overload 1860
calendar 2216
release_handler 13046
sasl_report 1733
mnesia_sup 1400
timer 2562
mnesia_kernel_sup 757
mnesia_monitor 5892
mnesia_event 2067
mnesia_lib 12064
mnesia 15695
mnesia_bup 10603
mnesia_subscr 2524
mnesia_locker 6863
mnesia_recover 8876
mnesia_dumper 8608
gen_fsm 3884
mnesia_tm 16026
mnesia_schema 23960
dets 18949
mnesia_controller 10335
mnesia_log 5690
disk_log 11448
disk_log_server 1553
disk_log_sup 544
pg2 3236
disk_log_1 7377
net_kernel 10346
mnesia_checkpoint_sup 551
mnesia_snmp_sup 550
mnesia_late_loader 1049
mnesia_checkpoint 10695
mnesia_loader 4291
mnemosyne_sup 1121
mnesia_index 3036
mnemosyne_catalog 8169
mnesia_snmp_hook 1874
bplus_tree 5128
ams_sup 880
eva_sup 1075
eva_server 2876
eva 1319
eva_log_sup 797
log_server 2038
eva_log 2317
log 904
jive 3102
alarm_reckeeper 1392
gen_tcp 1391
alarm_observer 1982
inet_tcp 4357
alatest 433
random 818
alarm_listener 1088
record 537
alarm_jive 846

Totals. Current code = 553411 Old code = 0
--------------------------------------------------

<End of Erlang crash dump>




More information about the erlang-questions mailing list