forked from bingwong2010/RocketMQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b9b2e5
commit 6de88b8
Showing
592 changed files
with
83,453 additions
and
83,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,62 @@ | ||
rocketmq-broker/.classpath | ||
rocketmq-broker/.project | ||
rocketmq-broker/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-broker/target/classes/.gitignore | ||
rocketmq-broker/target/test-classes/.gitignore | ||
rocketmq-client/.classpath | ||
rocketmq-client/.project | ||
rocketmq-client/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-client/target/classes/.gitignore | ||
rocketmq-client/target/test-classes/.gitignore | ||
rocketmq-common/.classpath | ||
rocketmq-common/.project | ||
rocketmq-common/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-common/target/classes/.gitignore | ||
rocketmq-common/target/test-classes/.gitignore | ||
rocketmq-example/.classpath | ||
rocketmq-example/.project | ||
rocketmq-example/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-example/target/classes/.gitignore | ||
rocketmq-filtersrv/.classpath | ||
rocketmq-filtersrv/.project | ||
rocketmq-filtersrv/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-filtersrv/target/.gitignore | ||
rocketmq-namesrv/.classpath | ||
rocketmq-namesrv/.project | ||
rocketmq-namesrv/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-namesrv/target/.gitignore | ||
rocketmq-remoting/.classpath | ||
rocketmq-remoting/.project | ||
rocketmq-remoting/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-remoting/target/classes/.gitignore | ||
rocketmq-remoting/target/test-classes/.gitignore | ||
rocketmq-srvutil/.classpath | ||
rocketmq-srvutil/.project | ||
rocketmq-srvutil/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-srvutil/target/.gitignore | ||
rocketmq-srvutil/target/test-classes/.gitignore | ||
rocketmq-store/.classpath | ||
rocketmq-store/.project | ||
rocketmq-store/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-store/target/.gitignore | ||
rocketmq-store/target/test-classes/.gitignore | ||
rocketmq-tools/.classpath | ||
rocketmq-tools/.project | ||
rocketmq-tools/.settings/org.eclipse.jdt.core.prefs | ||
rocketmq-tools/target/.gitignore | ||
target/mvn-eclipse-cache.properties | ||
*.class | ||
.classpath | ||
.project | ||
.settings/ | ||
target/ | ||
*.iml | ||
.idea/ | ||
target/ | ||
logs/ | ||
.classpath | ||
.project | ||
.settings/ | ||
.amateras | ||
src/main/resources/hibernate.cfg.xml | ||
src/main/resources/hibernate.reveng.xml | ||
/target* | ||
*.log* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
language: java | ||
language: java |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: consumer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
sh ./runclass.sh com.alibaba.rocketmq.example.benchmark.Consumer $@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: consumer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
sh ./runclass.sh com.alibaba.rocketmq.example.benchmark.Consumer $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: producer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
sh ./runclass.sh -Dcom.alibaba.rocketmq.client.sendSmartMsg=true com.alibaba.rocketmq.example.benchmark.Producer $@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: producer.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
sh ./runclass.sh -Dcom.alibaba.rocketmq.client.sendSmartMsg=true com.alibaba.rocketmq.example.benchmark.Producer $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: runserver.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
|
||
if [ $# -lt 1 ]; | ||
then | ||
echo "USAGE: $0 classname opts" | ||
exit 1 | ||
fi | ||
|
||
BASE_DIR=$(dirname $0)/.. | ||
CLASSPATH=.:${BASE_DIR}/conf:${CLASSPATH} | ||
|
||
JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=320m" | ||
JAVA_OPT="${JAVA_OPT} -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:+DisableExplicitGC" | ||
JAVA_OPT="${JAVA_OPT} -verbose:gc -Xloggc:${HOME}/rmq_srv_gc.log -XX:+PrintGCDetails" | ||
JAVA_OPT="${JAVA_OPT} -XX:-OmitStackTraceInFastThrow" | ||
JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/lib" | ||
#JAVA_OPT="${JAVA_OPT} -Xdebug -Xrunjdwp:transport=dt_socket,address=9555,server=y,suspend=n" | ||
JAVA_OPT="${JAVA_OPT} -cp ${CLASSPATH}" | ||
|
||
if [ -z "$JAVA_HOME" ]; then | ||
JAVA_HOME=/opt/taobao/java | ||
fi | ||
|
||
JAVA="$JAVA_HOME/bin/java" | ||
|
||
$JAVA ${JAVA_OPT} $@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: runserver.sh 1831 2013-05-16 01:39:51Z shijia.wxr $ | ||
# | ||
|
||
if [ $# -lt 1 ]; | ||
then | ||
echo "USAGE: $0 classname opts" | ||
exit 1 | ||
fi | ||
|
||
BASE_DIR=$(dirname $0)/.. | ||
CLASSPATH=.:${BASE_DIR}/conf:${CLASSPATH} | ||
|
||
JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=320m" | ||
JAVA_OPT="${JAVA_OPT} -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:+DisableExplicitGC" | ||
JAVA_OPT="${JAVA_OPT} -verbose:gc -Xloggc:${HOME}/rmq_srv_gc.log -XX:+PrintGCDetails" | ||
JAVA_OPT="${JAVA_OPT} -XX:-OmitStackTraceInFastThrow" | ||
JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/lib" | ||
#JAVA_OPT="${JAVA_OPT} -Xdebug -Xrunjdwp:transport=dt_socket,address=9555,server=y,suspend=n" | ||
JAVA_OPT="${JAVA_OPT} -cp ${CLASSPATH}" | ||
|
||
if [ -z "$JAVA_HOME" ]; then | ||
JAVA_HOME=/opt/taobao/java | ||
fi | ||
|
||
JAVA="$JAVA_HOME/bin/java" | ||
|
||
$JAVA ${JAVA_OPT} $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
### 操作系统调优 | ||
在生产环境部署Broker前,必须要执行os.sh,对操作系统进行调优 | ||
|
||
**P.S: os.sh只能执行一次,需要sudo root权限** | ||
|
||
### 启动broker | ||
* Unix平台 | ||
|
||
`nohup sh mqbroker &` | ||
|
||
* Windows平台(仅支持64位) | ||
|
||
`mqbroker.exe` | ||
|
||
### 关闭broker | ||
sh mqshutdown broker | ||
|
||
### 启动Name Server | ||
* Unix平台 | ||
|
||
`nohup sh mqnamesrv &` | ||
|
||
* Windows平台(仅支持64位) | ||
|
||
`mqnamesrv.exe` | ||
|
||
### 关闭Name Server | ||
sh mqshutdown namesrv | ||
|
||
### 更新或创建Topic | ||
sh mqadmin updateTopic -b 127.0.0.1:10911 -t TopicA | ||
|
||
### 更新或创建订阅组 | ||
### 操作系统调优 | ||
在生产环境部署Broker前,必须要执行os.sh,对操作系统进行调优 | ||
|
||
**P.S: os.sh只能执行一次,需要sudo root权限** | ||
|
||
### 启动broker | ||
* Unix平台 | ||
|
||
`nohup sh mqbroker &` | ||
|
||
* Windows平台(仅支持64位) | ||
|
||
`mqbroker.exe` | ||
|
||
### 关闭broker | ||
sh mqshutdown broker | ||
|
||
### 启动Name Server | ||
* Unix平台 | ||
|
||
`nohup sh mqnamesrv &` | ||
|
||
* Windows平台(仅支持64位) | ||
|
||
`mqnamesrv.exe` | ||
|
||
### 关闭Name Server | ||
sh mqshutdown namesrv | ||
|
||
### 更新或创建Topic | ||
sh mqadmin updateTopic -b 127.0.0.1:10911 -t TopicA | ||
|
||
### 更新或创建订阅组 | ||
sh mqadmin updateSubGroup -b 127.0.0.1:10911 -g SubGroupA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: mqbroker 1840 2013-05-16 02:13:59Z shijia.wxr $ | ||
# | ||
|
||
if [ -z "$ROCKETMQ_HOME" ] ; then | ||
## resolve links - $0 may be a link to maven's home | ||
PRG="$0" | ||
|
||
# need this for relative symlinks | ||
while [ -h "$PRG" ] ; do | ||
ls=`ls -ld "$PRG"` | ||
link=`expr "$ls" : '.*-> \(.*\)$'` | ||
if expr "$link" : '/.*' > /dev/null; then | ||
PRG="$link" | ||
else | ||
PRG="`dirname "$PRG"`/$link" | ||
fi | ||
done | ||
|
||
saveddir=`pwd` | ||
|
||
ROCKETMQ_HOME=`dirname "$PRG"`/.. | ||
|
||
# make it fully qualified | ||
ROCKETMQ_HOME=`cd "$ROCKETMQ_HOME" && pwd` | ||
|
||
cd "$saveddir" | ||
fi | ||
|
||
export ROCKETMQ_HOME | ||
|
||
sh ${ROCKETMQ_HOME}/bin/tools.sh com.alibaba.rocketmq.tools.command.MQAdminStartup $@ | ||
#!/bin/sh | ||
|
||
# | ||
# $Id: mqbroker 1840 2013-05-16 02:13:59Z shijia.wxr $ | ||
# | ||
|
||
if [ -z "$ROCKETMQ_HOME" ] ; then | ||
## resolve links - $0 may be a link to maven's home | ||
PRG="$0" | ||
|
||
# need this for relative symlinks | ||
while [ -h "$PRG" ] ; do | ||
ls=`ls -ld "$PRG"` | ||
link=`expr "$ls" : '.*-> \(.*\)$'` | ||
if expr "$link" : '/.*' > /dev/null; then | ||
PRG="$link" | ||
else | ||
PRG="`dirname "$PRG"`/$link" | ||
fi | ||
done | ||
|
||
saveddir=`pwd` | ||
|
||
ROCKETMQ_HOME=`dirname "$PRG"`/.. | ||
|
||
# make it fully qualified | ||
ROCKETMQ_HOME=`cd "$ROCKETMQ_HOME" && pwd` | ||
|
||
cd "$saveddir" | ||
fi | ||
|
||
export ROCKETMQ_HOME | ||
|
||
sh ${ROCKETMQ_HOME}/bin/tools.sh com.alibaba.rocketmq.tools.command.MQAdminStartup $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<java> | ||
<debug>false</debug> | ||
|
||
<javahome>${JAVA_HOME}</javahome> | ||
|
||
<jvmtype>server</jvmtype> | ||
|
||
<mainclass>com.alibaba.rocketmq.tools.command.MQAdminStartup</mainclass> | ||
|
||
<properties> | ||
<java.ext.dirs>${cpd}/../lib</java.ext.dirs> | ||
<rocketmq.home.dir>${cpd}/..</rocketmq.home.dir> | ||
</properties> | ||
|
||
<classpaths> | ||
</classpaths> | ||
|
||
<options> | ||
<-Xms512m></-Xms512m> | ||
<-Xmx1g></-Xmx1g> | ||
<-XX:NewSize>256M</-XX:NewSize> | ||
<-XX:MaxNewSize>512M</-XX:MaxNewSize> | ||
<-XX:PermSize>128M</-XX:PermSize> | ||
<-XX:MaxPermSize>128M</-XX:MaxPermSize> | ||
</options> | ||
</java> | ||
<java> | ||
<debug>false</debug> | ||
|
||
<javahome>${JAVA_HOME}</javahome> | ||
|
||
<jvmtype>server</jvmtype> | ||
|
||
<mainclass>com.alibaba.rocketmq.tools.command.MQAdminStartup</mainclass> | ||
|
||
<properties> | ||
<java.ext.dirs>${cpd}/../lib</java.ext.dirs> | ||
<rocketmq.home.dir>${cpd}/..</rocketmq.home.dir> | ||
</properties> | ||
|
||
<classpaths> | ||
</classpaths> | ||
|
||
<options> | ||
<-Xms512m></-Xms512m> | ||
<-Xmx1g></-Xmx1g> | ||
<-XX:NewSize>256M</-XX:NewSize> | ||
<-XX:MaxNewSize>512M</-XX:MaxNewSize> | ||
<-XX:PermSize>128M</-XX:PermSize> | ||
<-XX:MaxPermSize>128M</-XX:MaxPermSize> | ||
</options> | ||
</java> |
Oops, something went wrong.