首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole因post请求包大小,导致处理速度产生波动问题
Please answer these questions before submitting your issue. Thanks! What did you do? If possible, provide a simple script for reproducing the error. 我使用进行curl包验证系统的时候发现,请求包的字符串大于一定值时,请求会慢一秒钟进入swoole逻辑处理。请问您们你那边有遇到过吗   请求包示例: curl -d '{"version":1,"componentName":"swoole_pricecenter","eventId":237406114,"seqId":"715338660","timestamp":1607000400,"caller":"swoole_pricecenter","interface":{"interfaceName":"qcloud.discount.query","para":{"ReqTime":1607000400,"TransTime":1607000400,"SeqId":"160700040054424","UserId":"100005116726","ActivityId":"0","CommodityList":{"product_2#1000001#1000043#sv_cvm_bandwidth_prepay":{"Business":"cvm","Conditions":{"ownerUin":"1000051167261","monNum":"1"},"Product":"cvm","ProductCodeNew":[{"names":"p_cvm","sub_product_code":"sp_cvm_s2sss"}]}}}}}' 9.223.63.30:61235 What did you expect to see? 请求时间不因请求包大小而发生剧烈波动 What did you see instead? What version of Swoole are you using (show your php --ri swoole)? Swoole => enabled Author => Swoole Team team@swoole.com Version => 4.4.16 Built => Jul 22 2020 20:27:58 image What is your machine environment used (show your uname -a & php -v & gcc -v) ? [root@qbilling-discount-new-dev-0 ~]# uname -a Linux qbilling-discount-new-dev-0 3.10.107-1-tlinux2_kvm_guest-0051 #1 SMP Sat Dec 7 22:03:22 CST 2019 x86_64 x86_64 x86_64 GNU/Linux [root@qbilling-discount-new-dev-0 ~]# /usr/local/services/php.7.21/bin/php -v PHP 7.2.1 (cli) (built: Jan 11 2018 19:22:45) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies [root@qbilling-discount-new-dev-0 ~]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
发布于5年前 · 1 次浏览 · 来自
提问
jaspery
Please answer these questions before submitting your issue. Thanks! What did you do? If possible, provide a simple script for reproducing the error. 我使用进行curl包验证系统的时候发现,请求包的字符串大于一定值时,请求会慢一秒钟进入swoole逻辑处理。请问您们你那边有遇到过吗   请求包示例: curl -d '{"version":1,"componentName":"swoole_pricecenter","eventId":237406114,"seqId":"715338660","timestamp":1607000400,"caller":"swoole_pricecenter","interface":{"interfaceName":"qcloud.discount.query","para":{"ReqTime":1607000400,"TransTime":1607000400,"SeqId":"160700040054424","UserId":"100005116726","ActivityId":"0","CommodityList":{"product_2#1000001#1000043#sv_cvm_bandwidth_prepay":{"Business":"cvm","Conditions":{"ownerUin":"1000051167261","monNum":"1"},"Product":"cvm","ProductCodeNew":[{"names":"p_cvm","sub_product_code":"sp_cvm_s2sss"}]}}}}}' 9.223.63.30:61235 What did you expect to see? 请求时间不因请求包大小而发生剧烈波动 What did you see instead? What version of Swoole are you using (show your php --ri swoole)? Swoole => enabled Author => Swoole Team team@swoole.com Version => 4.4.16 Built => Jul 22 2020 20:27:58 image What is your machine environment used (show your uname -a & php -v & gcc -v) ? [root@qbilling-discount-new-dev-0 ~]# uname -a Linux qbilling-discount-new-dev-0 3.10.107-1-tlinux2_kvm_guest-0051 #1 SMP Sat Dec 7 22:03:22 CST 2019 x86_64 x86_64 x86_64 GNU/Linux [root@qbilling-discount-new-dev-0 ~]# /usr/local/services/php.7.21/bin/php -v PHP 7.2.1 (cli) (built: Jan 11 2018 19:22:45) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies [root@qbilling-discount-new-dev-0 ~]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-12-07
鲁飞
see https://github.com/swoole/swoole-src/issues/3914
赞
0
回复