start/stop, log4j.properties

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@758964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-03-27 02:18:11 +00:00
parent ce8f72e4af
commit c72b9e85b6
3 changed files with 24 additions and 0 deletions

1
bin/start-server Executable file
View File

@ -0,0 +1 @@
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n -Xms128M -Xmx2G -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:+AggressiveOpts -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=1 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote.port=8080 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcassandra -Dstorage-config=conf -cp conf:lib/j2ee.jar:lib/log4j-1.2.15.jar:lib/xerces.jar:lib/asm-all-2.2.1.jar:lib/libthrift.jar:lib/libfb303.jar:build/cassandra.jar:lib/azul-collections.jar:lib/commons-math-1.1.jar:lib/zookeeper-3.0.0.jar:lib/antlr-3.0.1.jar:lib/commons-cli-1.1.jar:jline-0.9.94.jar:lib/commons-lang-2.4.jar org.apache.cassandra.service.CassandraServer

1
bin/stop-server Executable file
View File

@ -0,0 +1 @@
pgrep -f cassandra | xargs kill -9

22
conf/log4j.properties Normal file
View File

@ -0,0 +1,22 @@
# for production, you should probably set the root to INFO
# and the pattern to %c instead of %l. (%l is slower.)
# output messages into a rolling log file as well as stdout
log4j.rootLogger=DEBUG,stdout,R
# stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout
# rolling log file ("system.log
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n
# Edit the next line to point to your logs directory
log4j.appender.R.File=/var/cassandra/logs/system.log
# Application logging options
#log4j.logger.com.facebook=DEBUG
#log4j.logger.com.facebook.infrastructure.gms=DEBUG
#log4j.logger.com.facebook.infrastructure.db=DEBUG