|
From: Ben L. <Ben...@As...> - 2008-02-20 02:54:53
|
I'm using version 3.2.3 of the wrapper on SuSe Linux 10.1 alongside
version 1.5 of Java. The "top" command shows the wrapper to consistently
monopolize the CPU, which I'd ~really~ appreciate help resolving. The
code I'm testing with looks as follows:
while(true)
{
System.out.println("This just ran");
Thread.currentThread().sleep(3000);
}
Only when run via the wrapper does this dominate the processor. Neither
changing the wrapper.ping.interval nor the priority (nice) properties
has had any noticeable affect. My configuration files are included
below. Thanks in advance for any help!
Cheers,
Ben
File One:
#! /bin/sh
#
# Copyright (c) 1999, 2006 Tanuki Software Inc.
#
# Java Service Wrapper sh script. Suitable for starting and stopping
# wrapped Java applications on UNIX platforms.
#
#-----------------------------------------------------------------------
------
# These settings can be modified to fit the needs of your application
# NOTE: The APP_NAME may not contain spaces.
APP_NAME="Registrar"
APP_LONG_NAME="Asentria SMP Registrar"
# Wrapper
WRAPPER_CMD="./wrapper"
WRAPPER_CONF="./daemonSettings/registrar.conf"
# Priority at which to run the wrapper. See "man nice" for valid
priorities.
# nice is only used if a priority is specified.
PRIORITY=
# Location of the pid file.
PIDDIR="./daemonSettings"
# If uncommented, causes the Wrapper to be shutdown using an anchor
file.
# When launched with the 'start' command, it will also ignore all INT
and
# TERM signals.
#IGNORE_SIGNALS=true
# If specified, the Wrapper will be run as the specified user.
# IMPORTANT - Make sure that the user has the required privileges to
write
# the PID file and wrapper.log files. Failure to be able to write the
log
# file will cause the Wrapper to exit without any way to write out an
error
# message.
# NOTE - This will set the user which is used to run the Wrapper as well
as
# the JVM and is not useful in situations where a privileged resource
or
# port needs to be allocated prior to the user being changed.
#RUN_AS_USER=
# The following two lines are used by the chkconfig command. Change as
is
# appropriate for your application. They should remain commented.
# chkconfig: 2345 20 80
# description: @app.long.name@
# Do not modify anything beyond this point
#-----------------------------------------------------------------------
------
File Two
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
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=.
wrapper.java.classpath.2=../lib/wrapper.jar
wrapper.java.classpath.3=../lib/commons-beanutils.jar
wrapper.java.classpath.4=../lib/commons-collections-3.1.jar
wrapper.java.classpath.5=../lib/commons-collections-3.2.jar
wrapper.java.classpath.6=../lib/commons-collections-testframework-3.2.ja
r
wrapper.java.classpath.7=../lib/commons-dbcp-1.2.1.jar:../lib/commons-di
gester-1.7.jar
wrapper.java.classpath.8=../lib/commons-fileupload-1.1.1.jar:../lib/comm
ons-io-1.2.jar
wrapper.java.classpath.9=../lib/commons-logging-1.1.jar:../lib/commons-l
ogging-adapters-1.1.jar
wrapper.java.classpath.10=../lib/commons-logging-api-1.1.jar:../lib/comm
ons-logging-api.jar
wrapper.java.classpath.11=../lib/commons-logging.jar:../lib/commons-mode
ler-1.1.jar
wrapper.java.classpath.12=../lib/commons-net-1.4.1.jar:../lib/commons-po
ol-1.2.jar
wrapper.java.classpath.13=../lib/commons-pool-1.3.jar:../lib/commons-val
idator-1.1.4.jar
wrapper.java.classpath.14=../lib/jakarta-oro-2.0.8.jar:../lib/jta-1_0_1B
-classes.jar
wrapper.java.classpath.15=../lib/log4j-1.2.11.jar:../lib/postgresql-8.1-
407.jdbc3.jar
wrapper.java.classpath.16=../lib/quartz-1.6.0.jar:../lib/quartz-all-1.6.
0.jar
wrapper.java.classpath.17=../lib/ws-commons-util-1.0.1.jar:../lib/xmlrpc
-1.0.1.jar
wrapper.java.classpath.18=../lib/xmlrpc-1.0.jar:../lib/xmlrpc-client-3.0
.jar
wrapper.java.classpath.19=../lib/xmlrpc-common-3.0.jar:../lib/xmlrpc-ser
ver-3.0.jar
wrapper.java.classpath.20=../lib/jakarta-httpcore-4.0-alpha2-2006-06-08.
jar
wrapper.java.classpath.21=../lib/xmlrpc-client-1.0.jar
wrapper.java.classpath.21=../lib
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
# Java Additional Parameters
#wrapper.java.additional.1=
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=64
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=configManager.VPNManagement.RegistrarDaemon
wrapper.app.parameter.2=./daemonLogs/Registrar
#********************************************************************
# 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=./daemonLogs/RegistrarWrapper_YYYYMMDD.log
# Format of output for the log file. (See docs for formats)
wrapper.logfile.format=LPTM
# Valid values are NONE, FATAL, ERROR, STATUS, INFO, and DEBUG
wrapper.logfile.loglevel=INFO
#Log all messages to a file named according to the date
(wrapper_YYYYMMDD.log)
#Retain five such files, deleting older ones.
wrapper.logfile.rollmode=DATE
wrapper.logfile.maxfiles=5
# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=NONE
#********************************************************************
# Wrapper Windows Properties
#********************************************************************
# Title to use when running as a console
wra...@ap...@
#********************************************************************
# Wrapper Windows NT/2000/XP 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
wra...@ap...@
# Display name of the service
wra...@ap...@
# Description of the service
wra...@ap...@
# 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
|