Lucas Meneghel Rodrigues
6692f5a3c0
pom.xml: Add log4j classes
After observing logs of scylla-jmx, I started to notice the following message: Running '/bin/journalctl --unit scylla-jmx.service' [stdout] -- Logs begin at Sat 2016-01-23 10:02:51 UTC, end at Sat 2016-01-23 10:07:26 UTC. -- [stdout] Jan 23 10:05:15 ip-172-30-0-9 systemd[1]: Started Scylla JMX. [stdout] Jan 23 10:05:15 ip-172-30-0-9 systemd[1]: Starting Scylla JMX... [stdout] Jan 23 10:05:16 ip-172-30-0-9 scylla-jmx[2685]: Using config file: /etc/scylla/scylla.yaml [stdout] Jan 23 10:05:22 ip-172-30-0-9 scylla-jmx[2685]: Connecting to http://127.0.0.1:10000 [stdout] Jan 23 10:05:22 ip-172-30-0-9 scylla-jmx[2685]: Starting the JMX server [stdout] Jan 23 10:05:29 ip-172-30-0-9 scylla-jmx[2685]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". [stdout] Jan 23 10:05:29 ip-172-30-0-9 scylla-jmx[2685]: SLF4J: Defaulting to no-operation (NOP) logger implementation [stdout] Jan 23 10:05:29 ip-172-30-0-9 scylla-jmx[2685]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. So we're potentially losing a lot of information on our jmx service logs. Let's update the log4j dependencies, and add the other ones that are necessary for the logging to work. Signed-off-by: Lucas Meneghel Rodrigues <lmr@scylladb.com> Message-Id: <1453746313-15054-1-git-send-email-lmr@scylladb.com>
Urchin JMX Interface
This is the JMX interface for Scylla
Compile
To compile do:
mvn install
Run
The maven will create an uber-jar with all dependency under the target directory. You should run it with the remote jmx enable so the nodetool will be able to connect to it.
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7199 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar target/scylla-jmx-1.0.jar
Setting IP and Port
By default the the JMX would connect to a node on the localhost on port 10000.
The jmx API uses the system properties to set the IP address and Port. To change the ip address use the apiaddress property (e.g. -Dapiaddress=1.1.1.1) To change the port use the apiport (e.g. -Dapiport=10001)
Description
Languages
Java
92.4%
Python
4.5%
Shell
3.1%