Skip to content

Async produce Message accumulation #54

Description

@turtleDeng

30k/s msg async write kafka

(emqx@127.0.0.1)3> erlang:process_info(pid(0, 1767, 0)).
[{current_function,{erlang,spawn,3}},
 {initial_call,{proc_lib,init_p,5}},
 {status,running},
 {message_queue_len,13758967},
 {messages,[{tcp,#Port<0.3122>,
                 <<0,27,132,33,0,0,0,1,0,15,109,101,115,115,97,103,101,95,
                   ...>>},
            {tcp,#Port<0.3122>,
                 <<0,27,151,198,0,0,0,1,0,15,109,101,115,115,97,103,101,
                   ...>>},
            {'$gen_event',{produce_async,<<"{\"client_id\":\"pub_1a06b4cd44374f3a947\",\"username\":\"undefined"...>>}},
            {'$gen_event',{produce_async,<<"{\"client_id\":\"pub_f562fb58af2c4ce1aef\",\"username\":\"undef"...>>}},
            {'$gen_event',{produce_async,<<"{\"client_id\":\"pub_f3375a2c3fa74a419f0\",\"username\":\"u"...>>}},
            {'$gen_event',{produce_async,<<"{\"client_id\":\"pub_8952b84cc06046ed9a0\",\"username"...>>}},
            {'$gen_event',{produce_async,<<"{\"client_id\":\"pub_0a41e3193db64fbea0a\",\"user"...>>}},
            {tcp,#Port<0.3122>,<<0,27,143,58,0,0,0,1,0,15,109,...>>},
            {tcp,#Port<0.3122>,<<0,27,194,227,0,0,0,1,0,15,...>>},
            {tcp,#Port<0.3122>,<<0,27,204,77,0,0,0,1,0,...>>},
            {tcp,#Port<0.3122>,<<0,27,72,71,0,0,0,1,...>>},
            {tcp,#Port<0.3122>,<<0,27,204,83,0,0,0,...>>},
            {tcp,#Port<0.3122>,<<0,27,193,96,0,0,...>>},
            {tcp,#Port<0.3122>,<<0,27,132,34,0,...>>},
            {tcp,#Port<0.3122>,<<0,26,247,60,...>>},
            {tcp,#Port<0.3122>,<<0,27,129,...>>},
            {tcp,#Port<0.3122>,<<0,27,...>>},
            {tcp,#Port<0.3122>,<<0,...>>},
            {tcp,#Port<0.3122>,<<...>>},
            {tcp,#Port<0.3122>,...},
            {tcp,...},
            {...}|...]},
 {links,[<0.1709.0>,#Port<0.3122>]},
 {dictionary,[{'$initial_call',{ekaf_fsm,init,1}},
              {'$ancestors',[ekaf_sup,<0.1708.0>]},
              {rand_seed,{#{bits => 58,jump => #Fun<rand.8.77346176>,
                            next => #Fun<rand.5.77346176>,type => exrop,
                            uniform => #Fun<rand.6.77346176>,
                            uniform_n => #Fun<rand.7.77346176>,weak_low_bits => 1},
                          [228663813211387744|65157769469894326]}}]},
 {trap_exit,false},
 {error_handler,error_handler},
 {priority,normal},
 {group_leader,<0.1707.0>},
 {total_heap_size,431772712},
 {heap_size,137319567},
 {stack_size,16},
 {reductions,345736510},
 {garbage_collection,[{max_heap_size,#{error_logger => true,kill => true,size => 0}},
                      {min_bin_vheap_size,46422},
                      {min_heap_size,233},
                      {fullsweep_after,1000},
                      {minor_gcs,1}]},
 {suspending,[]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions