|
Hi all, Im running Tomcat on the 400, everithing run well, my only problem is the job take 56% of the processor on the status TIMW (When nothing accessing tomcat) here is the CL to start the job: SBMJOB CMD(QSH CMD('/TOMCAT400/BIN/CATALINA400.SH')) + JOB(CATALINA) JOBQ(QSYSNOMAX) + CPYENVVAR(*YES) ALWMLTTHD(*YES) the script: # shell script to run Tomcat 4.0 and earlier # SBMJOB CMD(QSH CMD('tomcat400/bin/catalina400.sh')) JOB(catalina) # To provide multiple instances of Tomcat, development, test, and production, # modify this script to set CATALINA_BASE to a directory containing the conf, log, # and work directories. Copy the conf directory found in CATALINA_HOME to the new # conf directory in CATALINA_BASE. I set CATALINA_BASE to $home/tomcat400 # if it exists. Scan for and replace the following original ports in the server.xml # file found in the conf directory. I prepend a 1-6 allowing for 7 total servers. # # orig new # 8005 | x8005 | Shutdown # 8080 | x8080 | Non-SSL HTTP # 8443 | x8443 | Redirect port - Used / SSL HTTP Connector - Not used # 8009 | | AJP Connector # 8081 | | Proxied HTTP # 8082 | | Test HTTP # 1521 | | Oracle # 8008 | x8008 | Warp Connector # Set job priority to standard for interactive (interactive - 6) by using # the interactive priority - 6, the helper threads that respond to requests # will be running at the same priority as interactive jobs. export COMMAND='chgjob job('$JOBNAME') runpty(20)' system $COMMAND export QIBM_MULTI_THREADED=Y export -s JAVA_HOME=/QIBM/ProdData/Java400/jdk13 export -s CATALINA_HOME=/tomcat400 # Set CATALINA_BASE to point to a directory containing conf, work, and logs # directories if you want to run multiple instances of Tomcat but share the # the same installation found in your CATALINA_HOME directory. # export -s CATALINA_BASE=$HOME/$CATALINA_HOME export -s CATALINA_BASE=$CATALINA_HOME # The following line allows you to compile JSP pages CP=$CATALINA_HOME/bin/bootstrap.jar:/QIBM/ProdData/Java400/jdk13/lib/tools.jar export -s CLASSPATH=$CP echo Using Classpath: $CP echo Using CATALINA_BASE: $CATALINA_BASE echo Using CATALINA_HOME: $CATALINA_HOME echo Using JAVA_HOME: $JAVA_HOME # Run tomcat: # on releases prior to V5R1 systems add -Djava.version=1.3 # to debug use -debug -Djava.compiler=NONE # set -Duser.dir appropriately, it becomes the relative base for file I/O # on larger sites, consider upping the memory from 64 to something bigger java -ms64m -Duser.dir="$CATALINA_BASE" -Dcatalina.base="$CATALINA_BASE" -Dcatalina.home="$CATALINA_HOME" org.apache.catalina.startup.Bootstrap "$@" start Thanks in advance Edouard Lanteigne Abbott Laboratories (Canada), Systems Analyst Tel: (514) 832-7124 Fax: (514) 832-7833 E-mail : edouard.lanteigne@xxxxxxxxxx http://www.abbott.ca
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.