Cassandra

Eclipse 运行Debug Cassandra

2019-10-02  本文已影响0人  Hey_Shaw

1、源码获取

git clone https://github.com/apache/cassandra.git
git checkout -b 3.11 origin/cassandra-3.11

2、可配置maven仓库和本地路径:build.xml和build.properties.default

<target name="generate-cql-html" depends="maven-ant-tasks-init" description="Generate HTML from textile source">
        <artifact:dependencies pathId="wikitext.classpath"
            settingsFile="maven库的settings配置文件路径">
...
</target>
# Maven2 Repository Locations (you can override these in "build.properties" to point to a local proxy, e.g. Nexus)
# 可将下面替换为自己的maven库
artifact.remoteRepository.central:     http://repo1.maven.org/maven2
artifact.remoteRepository.apache:      http://repo.maven.apache.org/maven2

3、构建

Project:
  Cassandra
Main Class:
  org.apache.cassandra.service.CassandraDaemon

-ea -javaagent:${project_loc:Cassandra}/lib/jamm-0.3.0.jar 
-XX:+UseThreadPriorities 
-XX:ThreadPriorityPolicy=4
-Xms150M 
-Xmx1000M 
-Xmn188M 
-XX:+HeapDumpOnOutOfMemoryError 
-Xss200k 
-XX:+UseParNewGC 
-XX:+UseConcMarkSweepGC 
-XX:+CMSParallelRemarkEnabled 
-XX:SurvivorRatio=8 
-XX:MaxTenuringThreshold=1 
-XX:CMSInitiatingOccupancyFraction=75 
-XX:+UseCMSInitiatingOccupancyOnly 
-Djava.net.preferIPv4Stack=true 
-Dcom.sun.management.jmxremote.port=7199  -- 运行nodetool使用的默认端口
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false

至此,运行配置全部完成

【参考文章】

上一篇 下一篇

猜你喜欢

热点阅读