1、db.serverStatus()看看分片性能信息db.serverStatus().connections;分片查看客户端连接数,mongod和mongos的连接属于长连接"connections":{"current":737,--当前活动连接量。连接到server的当前活跃连接数目"available":82--剩余空闲连接量。剩余的可用连接数目},db.serverS..
分类:
数据库 时间:
2015-05-06 15:19:24
阅读次数:
175
google之后发现oracle11gR2禁止了supplemental loggingSQL> alter database add supplemental log data;即可
分类:
数据库 时间:
2015-05-06 14:43:16
阅读次数:
156
lr_start_timer:函数的功能:为了计算时间更加精确,可以用这个函数去掉LR自身的检查点所浪费的时间。如text check and image timeAction(){double time_elapsed;merc_timer_handle_t timer;web_url("4879...
分类:
其他好文 时间:
2015-05-06 13:11:06
阅读次数:
230
lr_start_transaction/lr_end_transaction事物组合总结一下:lr_start_transaction与lr_end_transaction 为使用最多的事物创造组合函数,lr_start_transaction为事物开始函数,lr_end_transaction为...
分类:
其他好文 时间:
2015-05-06 10:51:39
阅读次数:
121
对于错误 GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PU...
分类:
系统相关 时间:
2015-05-06 10:43:05
阅读次数:
261
try { randomAccessFile = new RandomAccessFile(file, "rw"); lock = randomAccessFile.getChannel().tryLock();} catch (IOException e) { e.printStackTrace(...
分类:
编程语言 时间:
2015-05-06 10:38:19
阅读次数:
386
题目描述 Afandi is herding N sheep across the expanses of grassland when he finds himself blocked by a river. A single raft is available for transportatio...
分类:
其他好文 时间:
2015-05-05 21:16:02
阅读次数:
133
避免死锁:在所有线程中以相同顺序锁定对象将所有调用中需要的锁定对象锁定到代码中的同一位置;同样,释放所有紧靠在起义的调用中的对象尽量少而且尽量短地锁定对象如果必须锁定多个对象,请确保所有的锁定都是成功的,而且如果他们还没有完成处理,请终止他们。可以利用Monitor.TryEnter方法完成这项工作...
分类:
编程语言 时间:
2015-05-05 19:12:48
阅读次数:
126
lr_get_transaction_duration用于获取事务所消耗的时间。实例:Action(){ double trans_time; //定义变量 web_url("www.baidu.com", "URL=http://www.baidu.com/", ...
分类:
其他好文 时间:
2015-05-05 19:11:41
阅读次数:
156
机器重启后显示 no boot device available.(如下图)检查bios中设置也是没问题的,因为装完系统后根本没动过什么。F11手动选择启动项也还是会跳到这里来。 这台机子做的Raid 1 ,一块热备盘,前端用的,硬盘也显示正常.后来同事进Raid设置中发现一块盘显示missi...
分类:
其他好文 时间:
2015-05-05 15:57:00
阅读次数:
3216