• ~尘曦~
    2019-07-22
    [root@python nginx-1.15.9]# ./configure --prefix=/data/web --sbin-path=/usr/bin --user=nginx --group=nginx --with-http_stub_status_module --with-http_auth_request_module --with-http_sub_module --add-module=/root/nginx-http-concat --with-http_addition_module --with-http_
    secure_link_module --with-http_geoip_module --add-module=/root/ngx_cache_purge --with-http_slice_module --with-http_v2_module --with-stream --with-stream_realip_module --with-cc-opt=OPTIONS --with-ld-opt=OPTIONS --with-ld-opt=-ltcmallocchecking for OS
     + Linux 3.10.0-957.el7.x86_64 x86_64
    checking for C compiler ... found
     + using GNU C compiler
     + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
    checking for gcc -pipe switch ... found
    checking for --with-ld-opt="-ltcmalloc" ... not found
    ./configure: error: the invalid value in --with-ld-opt="-ltcmalloc"
    老师我装了gperftools-2.7库但他报这个错

    展开

    作者回复: tcmalloc需要单独编译生成

    
    
  • Man
    2019-06-15
    请问老师,加了--with-ld-opt=-ltcmalloc后,那nginx运行的时候如何判断当前内存分配器是ltcmalloc在负责了呢?

    作者回复: Nginx感知不到,也不需要知道

    
    
  • mxmkeep
    2019-06-11
    网络没满,主要是CPU满了,sy和si占比很高~
    1秒应答10万请求算低么?可以到多少呢?

    作者回复: 很难直接回答数字,要看请求与响应有多少字节,也要看返回响应消耗多少资源,特别是io。cpu全满肯定到了极限,看看有没有不必要的cpu消耗

    
    
  • mxmkeep
    2019-06-10
    老师,使用Google内存库nginx配置文件还得配置google_perftools_profiles吧?
    这边压测后,16线程16队列网卡下都是10万qps,没提升~~
    老师那边性能可以上到多少?

    作者回复: 不会那么低的,你看看网卡打满了吗?是千M网卡吗?现在BPS是多少?

    
    
我们在线,来聊聊吧