How does Rserve/handle logging - rserve

I am trying to find out how R and Rserve handle logging. I am running R on daemon mode using Rserve ( connect to Java code). Can the logging feature be turned off

Related

"Failed creating Java" when using Windows Services to start Cassandra

I have had Cassandra 3.11.1 up and running correctly with no Java issues. I've been trying to set it up as a service using Apache Commons Daemon as recommended in the install guide. I was able to install it as a service, but when I attempt to start the service through Windows Services Manager it fails. The log reads:
Commons Daemon procrun (64-bit) started
Running 'cassandra' service...
Starting Service...
Failed creating Java
ServiceStart returned 1
Run Service finished.
Through cassandra config I am pointing to the 64 bit daemon prunsrv application.
Since cassandra seems to be working perfectly on its own it seems like it's a problem with prunsrv, but I have no idea how to track that down. I've seen similar problems, but it always seems to be a 32 vs 64 bit issue or the wrong environment paths for cassandra. Those seem fine for me.
Thank you!

check_jvm Nagios plugin to monitor java threads and heap memory not running

I have a Nagios monitoring system to monitor servers. I have a server in which WebSphere portal has been installed. I want to configure a system in which when there is high CPU usage/thread count increases, it automatically takes a thread dump. For this, I am using nagios plugin check_jvm. This plugin uses a jar called JvmInspector.jar. JvmInspector.jar should list all the jvm names which are running in the system.
Usage of JvmInspector.jar is as follows:
java -jar JvmInspector.jar all
When I am running this, it is showing an empty result although I have a running WebSphere portal server running. Inspite of this, I tried to run 'check_jvm' plugin but it shows the following result:
[root#dev03 libexec]# sudo -u root /usr/local/nagios/libexec/check_jvm -n WebSphere_Portal -p threads -w 105 -c 135
UNKNOWN Can't connect to the JVM:
Can anybody help me in this?

How to enable java flight recorder for tomcat installed on my windows machine?

I have a web app running inside my tomcat on my windows machine. I am trying to monitor it with Java Mission Control. I am getting an error message to unlock commercial features to access java flight recorder.. Please guide me where and how it needs to be enabled.
Thanks in advance..
You might try setting the CATALINA_OPTS environment variable, e.g.:
set CATALINA_OPTS=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.rmi.port=7091 -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Then start Tomcat as usual.

How can I run wildfly in debug mode, as a service on Windows?

I am running Wildfly as a service on windows. When I need to debug, I am shutting this down and starting Wildfly via standalone.bat -debug. What I want is to have the debug switch on always, when it runs as a service?
Uncomment following JAVA_OPTIONS from $JBOSS_HOME/bin/standalone.conf.bat
rem # Sample JPDA settings for remote socket debugging
set "JAVA_OPTS=%JAVA_OPTS%
-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
start service. Now you can detach a debugger with your favorite IDE. If you are using Eclipse you can switch to "Debug-Configurations" and add a new Remote Java-Application.
I'm using WildFly 11 and uncommenting the following lines in bin\standalone.conf.bat (windows) did the job:
set "DEBUG_MODE=true"
set "DEBUG_PORT=8787"
Open the command line and set java options with the following debug options:
set JAVA_OPTS = -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,suspend=n,server=y
start wildlfy service by running standalone.bat or standalone.sh for windows/linux respectively

Start ruby app as service on CentOS 7

I have a ruby script (actually an example script from the Oxidized project), which is written in Ruby and opens a UDP port (514) listening for syslog messages and executing some code in the background.
The system runs on CentOS 7. I want to start this script as "service" automatically when the OS boots. The script however needs to run as a specific user (oxidized) and should be controllable using normal "service ... [start|stop|status|...|" behaviour. What would be the best way to achieve this?
Startup services can be managed by 2 different boot systems.
CentOS6 uses System V (Old Boot System)
CentOS7 uses Systemd (New Boot System) (Systemd does support System V scripts.)
Here is a link "How to write startup script for systemd"
https://unix.stackexchange.com/questions/47695/how-to-write-startup-script-for-systemd
Here is a link "How to write a System V init script to start, stop, and restart my own application or service"
https://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html

Resources