On 02/14/2014 07:34 PM, Michael Shuler wrote:
On 02/14/2014 06:58 PM, David Montgomery wrote:
Hi,
Using now oracle 7. commented out the line StringTableSize=1000003
same issue. but nothing in the log file now.
but I start from, the command line the works.
What user are you running c* with, when running from the command line?
What user is running c* via supervisord?
So you peaked my interest and tried supervisord in a vm. I think you
need to probably go hit up the supervisord community for some "how do I
do this correctly" questions.
Attached a console log and the conf I used. Here's what I did:
- installed c* 2.0.5 with /var/{lib,log}/cassandra owned by my user, as
usual
- verified c* runs fine from the command line
- killed c*
- installed supervisor package and added the attached conf
- stopped/started supervisord to pick up the new conf
- c* is running fine and nodetool confirms
- supervisorctl status shows ignorance of c* running (wrong config, I
assume)
- stopped supervisord, c* still running (not sure if this is normal..)
I have never played with supervisord. It's interesting, but my guess is
there is some additional magic needed by supervisor experts to help you
with a properly behaving configuration.
Good luck and do report back with a good config for the archives!
--
Kind regards,
Michael
mshuler@debian:~$ ps axu|grep [j]ava
mshuler@debian:~$
mshuler@debian:~$ sudo invoke-rc.d supervisor start
Starting supervisor: supervisord.
mshuler@debian:~$
mshuler@debian:~$ ps axu|grep [j]ava
mshuler 5313 75.6 16.1 1053044 166152 ? Sl 19:58 0:03 java -ea
-javaagent:/opt/cassandra/bin/../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42 -Xms501M -Xmx501M -Xmn100M
-XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled
-XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseTLAB -XX:+UseCondCardMark -Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote.port=7199
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dlog4j.configuration=log4j-server.properties -Dlog4j.defaultInitOverride=true
-cp
/opt/cassandra/bin/../conf:/opt/cassandra/bin/../build/classes/main:/opt/cassandra/bin/../build/classes/thrift:/opt/cassandra/bin/../lib/antlr-3.2.jar:/opt/cassandra/bin/../lib/apache-cassandra-2.0.5.jar:/opt/cassandra/bin/../lib/apache-cassandra-clientutil-2.0.5.jar:/opt/cassandra/bin/../lib/apache-cassandra-thrift-2.0.5.jar:/opt/cassandra/bin/../lib/commons-cli-1.1.jar:/opt/cassandra/bin/../lib/commons-codec-1.2.jar:/opt/cassandra/bin/../lib/commons-lang3-3.1.jar:/opt/cassandra/bin/../lib/compress-lzf-0.8.4.jar:/opt/cassandra/bin/../lib/concurrentlinkedhashmap-lru-1.3.jar:/opt/cassandra/bin/../lib/disruptor-3.0.1.jar:/opt/cassandra/bin/../lib/guava-15.0.jar:/opt/cassandra/bin/../lib/high-scale-lib-1.1.2.jar:/opt/cassandra/bin/../lib/jackson-core-asl-1.9.2.jar:/opt/cassandra/bin/../lib/jackson-mapper-asl-1.9.2.jar:/opt/cassandra/bin/../lib/jamm-0.2.5.jar:/opt/cassandra/bin/../lib/jbcrypt-0.3m.jar:/opt/cassandra/bin/../lib/jline-1.0.jar:/opt/cassandra/bin/../lib/json-simple-1.1.jar:/opt/cassandra/bin/../lib/libthrift-0.9.1.jar:/opt/cassandra/bin/../lib/log4j-1.2.16.jar:/opt/cassandra/bin/../lib/lz4-1.2.0.jar:/opt/cassandra/bin/../lib/metrics-core-2.2.0.jar:/opt/cassandra/bin/../lib/netty-3.6.6.Final.jar:/opt/cassandra/bin/../lib/reporter-config-2.1.0.jar:/opt/cassandra/bin/../lib/servlet-api-2.5-20081211.jar:/opt/cassandra/bin/../lib/slf4j-api-1.7.2.jar:/opt/cassandra/bin/../lib/slf4j-log4j12-1.7.2.jar:/opt/cassandra/bin/../lib/snakeyaml-1.11.jar:/opt/cassandra/bin/../lib/snappy-java-1.0.5.jar:/opt/cassandra/bin/../lib/snaptree-0.1.jar:/opt/cassandra/bin/../lib/thrift-server-0.3.3.jar
org.apache.cassandra.service.CassandraDaemon
mshuler@debian:~$
mshuler@debian:~$ sudo supervisorctl status
cassandra_server:cassandra FATAL Exited too quickly (process log may
have details)
mshuler@debian:~$
mshuler@debian:~$ /opt/cassandra/bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID
Rack
UN 127.0.0.1 114.22 KB 256 100.0%
3a7fde73-b1ca-4503-b5f2-b4cd9b41032c rack1
mshuler@debian:~$
mshuler@debian:~$ killall java
mshuler@debian:~$
mshuler@debian:~$ ps axu|grep [j]ava
mshuler@debian:~$
mshuler@debian:~$ ps axu|grep [j]ava
mshuler@debian:~$
mshuler@debian:~$ date
Fri Feb 14 20:00:09 CST 2014
mshuler@debian:~$
mshuler@debian:~$ ps axu|grep [j]ava
mshuler@debian:~$
mshuler@debian:~$ cat /tmp/cassandra.*
mshuler@debian:~$
mshuler@debian:~$ grep cassandra /var/log/supervisor/supervisord.log
2014-02-14 19:54:11,521 WARN Included extra file
"/etc/supervisor/conf.d/cassandra.conf" during parsing
2014-02-14 19:54:12,548 INFO spawned: 'cassandra' with pid 4491
2014-02-14 19:54:12,629 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:54:13,632 INFO spawned: 'cassandra' with pid 4547
2014-02-14 19:54:13,842 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:54:15,845 INFO spawned: 'cassandra' with pid 4711
2014-02-14 19:54:16,065 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:54:19,071 INFO spawned: 'cassandra' with pid 4764
2014-02-14 19:54:19,150 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:54:20,152 INFO gave up: cassandra entered FATAL state, too many
start retries too quickly
2014-02-14 19:56:36,755 WARN Included extra file
"/etc/supervisor/conf.d/cassandra.conf" during parsing
2014-02-14 19:56:37,781 INFO spawned: 'cassandra' with pid 4981
2014-02-14 19:56:37,860 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:56:38,862 INFO spawned: 'cassandra' with pid 5031
2014-02-14 19:56:38,930 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:56:40,935 INFO spawned: 'cassandra' with pid 5077
2014-02-14 19:56:41,012 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:56:44,017 INFO spawned: 'cassandra' with pid 5123
2014-02-14 19:56:44,085 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:56:45,086 INFO gave up: cassandra entered FATAL state, too many
start retries too quickly
2014-02-14 19:58:00,889 WARN Included extra file
"/etc/supervisor/conf.d/cassandra.conf" during parsing
2014-02-14 19:58:01,916 INFO spawned: 'cassandra' with pid 5275
2014-02-14 19:58:02,002 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:58:03,005 INFO spawned: 'cassandra' with pid 5334
2014-02-14 19:58:03,217 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:58:05,220 INFO spawned: 'cassandra' with pid 5498
2014-02-14 19:58:05,449 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:58:08,454 INFO spawned: 'cassandra' with pid 5552
2014-02-14 19:58:08,528 INFO exited: cassandra (exit status 0; not expected)
2014-02-14 19:58:09,530 INFO gave up: cassandra entered FATAL state, too many
start retries too quickly
mshuler@debian:~$
mshuler@debian:~$ ps axu|grep [j]ava
mshuler@debian:~$
mshuler@debian:~$
[program:cassandra]
command = /opt/cassandra/bin/cassandra
autostart=true
autorestart=true
startsecs=15
user=mshuler
stopsignal=KILL
stopasgroup=true
killasgroup=true
stdout_logfile=/tmp/cassandra.log
stderr_logfile = /tmp/cassandra.err
[group:cassandra_server]
programs=cassandra