-XX:NativeMemoryTracking=detail
jps
ps -p <PID> -o pcpu,rss,size,vsize
#!/usr/local/bin/python3 | |
import logging, select, subprocess | |
LOG_FILE = "test.log" | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(level=logging.INFO,filename=LOG_FILE,format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | |
def logging_call(popenargs, **kwargs): | |
process = subprocess.Popen(popenargs, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
# (C) Datadog, Inc. 2010-2016 | |
# All rights reserved | |
# Licensed under Simplified BSD License (see LICENSE) | |
''' | |
As of zookeeper 3.4.0, the `mntr` admin command is provided for easy parsing of zookeeper stats. | |
This check first parses the `stat` admin command for a version number. | |
If the zookeeper version supports `mntr`, it is also parsed. | |
Duplicate information is being reported by both `mntr` and `stat` to keep backwards compatability. |
[Unit] | |
Description=Nexus Service | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/opt/nexus/bin/nexus start | |
ExecStop=/opt/nexus/bin/nexus stop | |
ExecReload=/opt/nexus/bin/nexus restart | |
PIDFile=/var/run/nexus/nexus.pid |
Steps for now (I'm not happy at all on how to get rid of VCRUNTIME140.DLL):
#enable each service for boot | |
systemctl enable nodemanager | |
systemctl enable adminserver | |
#then reboot and test |
[Unit] | |
Description=supervisord - Supervisor process control system for UNIX | |
Documentation=http://supervisord.org | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf | |
ExecReload=/bin/supervisorctl reload | |
ExecStop=/bin/supervisorctl shutdown |
[program:tomcat6] | |
command=/opt/tomcat6-instance/bin/supervisor-wrapper.sh |