aduchate commented on issue #5342:
URL: https://github.com/apache/couchdb/issues/5342#issuecomment-2501633390

   Hi nicka,
   
   No crash in the logs at all
   The parallelism of ken was limited to 5 which insured that the CPU usage was 
staying very low on the 48 cores machine
   I'll try raising memory_limit_bytes though I doubt it will improve things 
because at a subsequent indexations of the same view succeed.
   
   Below, the request information from remsh
   ```
   ([email protected])2> 
([email protected])2> 
erlang:process_info(<0.83257742.0>). 
   [{current_function,{gen,do_call,4}},
    {initial_call,{erlang,apply,2}},
    {status,waiting},
    {message_queue_len,0},
    {links,[<0.83311580.0>]},
    {dictionary,
        [{task_status_props,
             [{changes_done,622766},
              {database,
                  
<<"shards/a0000000-bfffffff/icure-ms-wgc-nieuwegent-614fc45"...>>},
              {design_document,<<"_design/Contact-DataOwner">>},
              {indexer_pid,<<"<0.4441283.0>">>},
              {progress,50},
              {started_on,1732624104},
              {total_changes,1223768},
              {type,indexer},
              {updated_on,1732624464}]},
         {io_priority,
             {view_update,
                 
<<"shards/a0000000-bfffffff/icure-ms-wgc-nieuwegent-614fc455-b5"...>>,
                 <<"_design/Contact-DataOwner">>}},
         {task_status_update,{{0,0,0},500000}}]},
    {trap_exit,false},
    {error_handler,error_handler},
    {priority,normal},
    {group_leader,<0.252.0>},
    {total_heap_size,833025},
    {heap_size,318187},
    {stack_size,16},
    {reductions,86130223},
    {garbage_collection,
        [{max_heap_size,
             #{error_logger => true,include_shared_binaries => false,
               kill => true,size => 0}},
         {min_bin_vheap_size,46422},
         {min_heap_size,233},
         {fullsweep_after,65535},
         {minor_gcs,1217}]},
    {suspending,[]}]
   ([email protected])3> 
recon:proc_window(reductions, 3, 5000).
   [{<0.172400993.0>,64192268,
     [{current_function,{gen,do_call,4}},
      {initial_call,{couch_index_updater,update,3}}]},
    {<0.170530515.0>,61520321,
     [{current_function,{gen,do_call,4}},
      {initial_call,{couch_index_updater,update,3}}]},
    {<0.172131409.0>,60832785,
     [{current_function,{gen,do_call,4}},
      {initial_call,{couch_index_updater,update,3}}]}]
   ([email protected])4> 
recon:proc_window(message_queue_len, 3, 5000).
   [{<0.554738.0>,1,
     [{current_function,{gen_server,loop,7}},
      {initial_call,{proc_lib,init_p,5}}]},
    {<0.21585.0>,1,
     [{current_function,{erts_internal,dirty_nif_finalizer,1}},
      {initial_call,{proc_lib,init_p,5}}]},
    {<0.3.0>,1,
     [{current_function,
          {erts_dirty_process_signal_handler,msg_loop,0}},
      {initial_call,
          {erts_dirty_process_signal_handler,start,0}}]}]
   ([email protected])5> recon:proc_window(memory, 3, 
5000).
   [{<0.172416530.0>,4721072,
     [{current_function,{gen,do_call,4}},
      {initial_call,{couch_bt_engine_compactor,start,4}}]},
    {<0.172600591.0>,4720504,
     [{current_function,{gen_server,loop,7}},
      {initial_call,{proc_lib,init_p,5}}]},
    {<0.4328.0>,4032976,
     [{current_function,{gen_server,loop,7}},
      {initial_call,{proc_lib,init_p,5}}]}]
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to