Comments (7)
现在在生产环境中使用你的driver, 发现cpu占用太高,内存占用太大。
cpu耗时的地方基本就在你的driver 里面。
内存占用基本就是
flat flat% sum% cum cum%
273.31MB 67.52% 67.52% 273.31MB 67.52% bytes.makeSlice
58.51MB 14.45% 81.98% 58.51MB 14.45% runtime.rawstringtmp
45.29MB 11.19% 93.16% 103.80MB 25.64% github.com/ssdb/gossdb/ssdb.(*Client).parse
from gossdb.
好像不是你的问题,是ssdb作者写的driver 好像有问。
from gossdb.
你好,能不能提供一下并发数量,以及平均每个cmd的kb数,方便我测试一下。
from gossdb.
看你发的图,应该是在使用MultiHgetSliceArray时下载的数据量比较大,建议你减小一次请求量,改成多次获取,再合并试一下,也许会好一些。ssdb在一次获取的数据里比较多时,会比较慢。
from gossdb.
已解决该问题,ssdb的连接在解析大数组时性能会比较差,已将连接重写并移植到gossdb里。
from gossdb.
我hashmap单个数据项不大,但是整个hashmap比较大,单个数据项不超过200字节,整个hashmap可能有2000-5000项。整个大小应该只有1MB 左右,你修改完之后在线上验证过来吗?
from gossdb.
我本机测试的,用pprof也分析过数据,速度比原来提高不是一个数量级。原来是下载量如果太多会导致buf重复加载,所以内存和cpu的压力都比较大。
from gossdb.
Related Issues (20)
- Can do hset? Can do multi / batch / exec? HOT 1
- 关于ssdb 队列缓存数据上限的问题 HOT 1
- 当ssdb服务器重启后,会大量pool is busy,can not get new client in x seconds HOT 11
- 连续c.Close()导致报错 HOT 1
- 引用包goerr没有New方法,go get 出错 HOT 2
- 设置密码之后,get 总是报 authentication failed HOT 5
- 获取大的 value,获取不到 HOT 4
- go get (go mod) 获取到的是 旧版本 HOT 7
- 并发偶尔还会出现数据串包问题 HOT 7
- Setbit/Getbit/Bitcount 看到已被注释 HOT 5
- 2个独立的程序,调用同一个库 , 如何操作连接池 HOT 1
- Bitcount 返回值 byte 位数不够 HOT 1
- pool is busy,can not get new client in 5 seconds,wait count is 1 HOT 18
- 最多创建3个pool就无法使用了 HOT 5
- HScan 执行时间超长 [Linux平台] HOT 3
- 隐藏连接池相关操作 HOT 3
- tag version 应当为 v1.2.3 格式,以便兼容go mod HOT 4
- 开启300个协程去读取操作, 会有一半的读取操作报错 HOT 1
- ssdb link数据读取和分析问题 HOT 1
- 这个zset size 是9w+,这个命令要花20秒,java同样的demo程序花220ms,why HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gossdb.