lampnick / doctron

html转pdf , html转图片 , Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel.
http://doctron.mitnick.fun
Apache License 2.0
557 stars 124 forks source link

并发请求转换时出现错误 #54

Closed andotorg closed 1 year ago

andotorg commented 1 year ago

错误详情 [0925/052143.197062:FATAL:zygote_host_impl_linux.cc(173)] Check failed: process.IsValid(). Failed to launch zygote process Received signal 6 r8: 00007ffff07033c4 r9: 00007fcace1de420 r10: 0000000000000008 r11: 0000000000000246 r12: 00007ffff0703b90 r13: 00007ffff0703acc r14: 00007ffff0703928 r15: 000000000000007a di: 0000000000000002 si: 00007ffff0703290 bp: 00007ffff0703290 bx: 0000000000000000 dx: 0000000000000000 ax: 0000000000000000 cx: 00007fcad30a8a71 sp: 00007ffff0703288 ip: 00007fcad30a8a71 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000 [end of stack trace] Calling _exit(1). Core file will not be generated.

andotorg commented 1 year ago

是用 tinit fix

andotorg commented 1 year ago

解决之后还是会出现 "msg": "{\"code\":30000000,\"message\":\"context canceled\",\"data\":null}"}

andotorg commented 1 year ago

堆资源可以解决,但是这个总是不是完美解决方案

andotorg commented 1 year ago

add queue 降低并发量