mongodb查看锁信息
来源:互联网 发布:linux切换至具体目录 编辑:程序博客网 时间:2024/05/22 04:33
serverStatus 的输出中可以看到锁的信息
Dividing locks.timeAcquiringMicros by locks.acquireWaitCount can give an approximate average wait time for a particular lock mode.
locks.deadlockCount provide the number of times the lock acquisitions encountered deadlocks.
If globalLock.currentQueue.total is consistently high, then there is a chance that a large number of requests are waiting for a lock. This indicates a possible concurrency issue that may be affecting performance.
If globalLock.totalTime is high relative to uptime, the database has existed in a lock state for a significant amount of time.
连接的信息
globalLock.activeClients contains a counter of the total number of clients with active operations in progress or queued.
connections is a container for the following two fields:
connections.current the total number of current clients that connect to the database instance.
connections.available the total number of unused connections available for new clients.
对读多及写多的不同场景的应对情况
For read-heavy applications, increase the size of your replica set and distribute read operations to secondary members.
For write-heavy applications, deploy sharding and add one or more shards to a sharded cluster to distribute load among mongod instances.
操作系统资源设置
ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) 0
-m: resident set size (kbytes) unlimited
-u: processes 192276
-n: file descriptors 21000
-l: locked-in-memory size (kb) 40000
-v: address space (kb) unlimited
-x: file locks unlimited
-i: pending signals 192276
-q: bytes in POSIX msg queues 819200
-e: max nice 30
-r: max rt priority 65
-N 15: unlimited
推荐设置
-f (file size): unlimited
-t (cpu time): unlimited
-v (virtual memory): unlimited [1]
-n (open files): 64000
-m (memory size): unlimited [1] [2]
-u (processes/threads): 64000
- mongodb查看锁信息
- mongodb查看数据库和表的信息
- mongodb查看数据库和表的信息
- MongoDB 查看所有用户账号信息
- 使用java查看mongodb的数据库、集合以及数据信息
- 开启mongodb服务以及查看数据库中的信息
- 开启mongodb服务以及查看数据库中的信息
- 查看锁信息
- MsSql查看锁信息
- oracle查看锁信息
- MySQL查看事务锁信息
- 信息查看
- MongoDB---查看mongodb的位数
- 查看mongodb 当前任务
- mongodb查看执行计划
- mongodb 表记录 查看
- 【MongoDB】查看datasize
- 查看 锁信息、强制杀锁
- C#[Win32&WinCE&WM]应用程序只能运行一个实例:MutexHelper
- bevBufferevent转发服务器
- Android apk 反编译
- 重载与构造函数的解析
- HTML5表格元素(20160805-0005)
- mongodb查看锁信息
- 写给一年后的自己
- Scheme版本修订进展
- Range Sum Query - Immutable
- 网络加载框架Retrofit2
- Spring MVC Hello World 实例
- Java中使用Jedis操作Redis
- POJ1.11 06月度开销
- 利用距离进行分类