12 2017 档案
摘要:1、安装JDK 2、下载RocketMQ 3、创建目录并解压到指定目录 mkdir rocketmq tar -zxvf apache-rocketmq.tar.gz -C rocketmq 4、更改内存配置,根据实际机器内存大小更改 vim rocketmq/bin/runbroker.sh vi
阅读全文
摘要:一、单机模式安装 1、安装JDK 2、下载ZooKeeper 3、解压 4、将zoo_sample.cfg其名称修改为zoo.cfg tickTime :时长单位为毫秒,为zk使用的基本时间度量单位。例如,1 tickTime是客户端与zk服务端的心跳时间,2 tickTime是客户端会话的超时时间
阅读全文
摘要:1、下载Redis 2、tar -zxvf redis-3.2.6.tar.gz --解压 3、编译源程序 cd redis-3.2.6 make cd src make install PREFIX=/usr/local/redis 4、将配置文件移动到 /usr/local/redis/etc/
阅读全文
摘要:1、下载druid 2、将刚刚下载的druid放入tomcat下的lib目录 3、配置要监控的服务启动文件,添加: -Dcom.sun.management.jmxremote.port=4090 -Dcom.sun.management.jmxremote.rmi.port=4090 -Dcom.
阅读全文
摘要:1)负载:模拟业务操作对服务器造成压力的过程,比如模拟100个用户进行发帖。 2)性能测试(performance testing):模拟用户负载来测试系统在负载情况下,系统的响应时间、吞吐量等指标是否满足性能要求。 (一般我们的压测指的就是这种,即能否满足基本性能要求。) 3)负载测试(load
阅读全文
摘要:set linesize 200 --设置输出一行字符个数为200 1、查看表空间名称和大小(单位MB) SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size FROM dba_tablespaces t, db
阅读全文
摘要:--创建test表空间CREATE TABLESPACE test_data LOGGING DATAFILE '/u01/app/oracle/oradata/test/test_data.dbf' SIZE 256M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITE
阅读全文
摘要:查看当前内存使用情况 [xiaoxi@xiaoxitest data]$ free -m total used free shared buffers cached Mem: 16080 15918 161 0 2 6290 -/+ buffers/cache: 9625 6454 Swap: 81
阅读全文
摘要:--查看数据库最大连接数 select value from v$parameter where name = 'processes'; --更改数据库连接数 alter system set processes = 3000 scope = spfile; --查看被锁的表 select b.owner,b.object_name,a.session_id,a.locked_mode fro...
阅读全文