Giter Site home page Giter Site logo

Comments (5)

grystudy avatar grystudy commented on May 22, 2024

loli_server.cpp里设置最大buffer是 327675
// set max send buffer
int sendbuff = 327675;
ecode = setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sendbuff, sizeof(sendbuff));

跟这个设置有关吗,调大点会不会不断开tcp

from loli_profiler.

sindney avatar sindney commented on May 22, 2024

loli_server.cpp里设置最大buffer是 327675
// set max send buffer
int sendbuff = 327675;
ecode = setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sendbuff, sizeof(sendbuff));

跟这个设置有关吗,调大点会不会不断开tcp

不好意思刚休假回来
应该没关系,有可能是瞬时网络包量太大了,可以尝试设置strict mode设置一个采集阈值,比如128/256byte以上再采集
或者用attach模式

也可以看看adb logcat -s Loli 看看设备上的socket是不是创建失败了,是不是ecode=-1
确保你的app开了internet access权限哈(mainfest)

from loli_profiler.

grystudy avatar grystudy commented on May 22, 2024

恩,网络应该正常,因为断开连接的现象是连接成功并正常记录一段时间后才出现的。
我们换了一台配置较高的windows主机,这种现象出现的频率就有所降低。

好奇的问一下,为啥 “瞬时网络包量太大了” 会导致connect lost 呢?

from loli_profiler.

sindney avatar sindney commented on May 22, 2024

具体原因我也没深究过,这个内存profile数据量是比较大,可能和adb socket的实现有关
也有可能是loli的server或client端设计不够健壮导致的
嗯 数据量确实大,pc上会把socket数据缓存到磁盘,一会就上G了,可能对disk的速度有写要求

from loli_profiler.

grystudy avatar grystudy commented on May 22, 2024

感谢

from loli_profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.