网址:wrapper.tanukisoftware.org/doc/english/introduction.html
该工具主要用于包装其他java服务器端程序(比如tomcat,或者自己开发的java服务器程序),提供如下特性:
•作为windows服务或者unix守护进程运行;
•增强程序的可靠性,程序崩溃后的自动重启,比如内存溢出,虚拟机崩溃等造成JVM退出的监控和恢复运行(重新启动);
•标准的,可独立使用的配置JVM参数的脚本;
•支持java应用程序重启JVM,比如应用程序修改了配置文件,或者重启系统避免内存溢出等问题;
•灵活的配置;
•简化应用程序的安装;
•记录日志。
以下为我在window系统测试的配置文件,放于此以备以后参考:
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
#set.JAVA_HOME=$JAVA_HOME
wrapper.java.command=java
# Java Main class. This class must implement the WrapperListener interface
# or guarantee that the WrapperManager class is initialized. Helper
# classes are provided to do this for you. See the Integration section
# of the documentation for details.
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=../lib/wrapper.jar
wrapper.java.classpath.2=../lib/wrappertest.jar
wrapper.java.classpath.3=../bin/.
wrapper.java.classpath.4=../bin/monitorServe.jar
wrapper.java.classpath.5=../lib/*
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
# Java Additional Parameters
wrapper.java.additional.1=-Dprogram.name=monitorServe.bat
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=640
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=com.starnet.windon.core.DmonitorServe
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Format of output for the console. (See docs for formats)
wrapper.console.format=PM
# Log Level for console output. (See docs for log levels)
wrapper.console.loglevel=INFO
# Log file to use for wrapper output logging.
wrapper.logfile=../logs/monitor.log
# Format of output for the log file. (See docs for formats)
wrapper.logfile.format=LPTM
# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=INFO
# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
wrapper.logfile.maxsize=5m
# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
wrapper.logfile.maxfiles=0
wrapper.console.title=Dmonitor serve
# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=NONE
#********************************************************************
# Wrapper NT Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.
# Name of the service
wrapper.ntservice.name=monitor
# Display name of the service
wrapper.ntservice.displayname=Dmonitor Server
# Description of the service
wrapper.ntservice.description=Dmonitor Server
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
_____________________________________________________________________
原文出处:http://gallop-liu.iteye.com/blog/653228
分享到:
相关推荐
Java Service Wrapper使用总结,将java应用发布为可安装的服务
Java Service Wrapper使用说明
去CSDN下载所谓破解出现以下错误:wrapper | Licensed to (null) for (null) wrapper | wrapper | Launching a JVM... jvm 1 | WrapperManager: Initializing... jvm 1 | WrapperJNI Error: Not licensed to use ...
Java Service Wrapper部署说明 Java Service Wrapper是一个开源的软件,能够将Java程序发布到不同平台,并保证其JVM正常运行。 附件是一个实例,有比较详细的说明。更多的可以参考其网站
SpringBoot 使用Java Service Wrapper 部署Windows服务
Java Service Wrapper 3.5.25 标准版破解,Windows 64位
YSJSW(Yet Another Java Service Wrapper) 可以配置java应用为windows服务。
Java Service Wrapper 可以将Java程序包装成系统服务,这样就可以随着系统的运行而自动运行。Java Service Wrapper分为Professional、Standard、Community三个版本,并支持32位和64位的系统,其中Community版本为...
Java Service Wrapper 可以将Java程序包装成系统服务,这样就可以随着系统的运行而自动运行。此文件为32位Community版本免费的社区版本。
Java Service Wrapper可以将java程序做成windows服务,逼格满满
Java Service Wrapper可为应用程序提供以下功能: (1)把应用安装为Windows服务或Linux守护进程; (2)监测JVM运行情况,对于程序原因或内存溢出导致的虚拟机崩溃实现自动重启; (3)记录运行日志;
在项目的开发中,有时候需要将Java应用程序打包成Windows服务,我们就直接可以通过windows的服务来启动和关闭java程序了。 本博文将通过有两种方法实现该功能,手动创建法和Maven自动打包法。
对以上配置的MyApp.bat进行测试,运行MyApp.bat,就像在Console窗口下运行Tomcat一样; 对以上配置的服务进行测试,运行InstallMyApp-NT.bat将把你的应用(此处为App)安装到Win32系统服务中了。...
NULL 博文链接:https://xbgd.iteye.com/blog/754948
在开发中老是面对黑乎乎的tomcat窗口总是很烦躁,还担心被关掉,利用Java Service Wrapper将tomcat写入系统服务是件很不错的选择,100%原创
可配置工具,允许像本地NT或Unix服务一样安装和控制Java应用程序。 包括故障纠正软件,可自动重新启动崩溃或冻结的JVM。 当需要24x7全天候使用应用时,至关重要。 专为灵活性而设计。
NULL 博文链接:https://thoughtfly.iteye.com/blog/1538495