首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
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逻辑处理。请问您们你那边有遇到过吗 ![](/storage/article-column/yuzSwoKgf8YybOLIJhXuNcXRvLQdYiO6ijMtIDAo.png) ![](/storage/article-column/vj4hukms68hZY8baxIS463hHwgNGXbs109MjYsBW.png) 请求包示例: 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)
发布于3年前 · 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逻辑处理。请问您们你那边有遇到过吗 ![](/storage/article-column/yuzSwoKgf8YybOLIJhXuNcXRvLQdYiO6ijMtIDAo.png) ![](/storage/article-column/vj4hukms68hZY8baxIS463hHwgNGXbs109MjYsBW.png) 请求包示例: 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
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。