× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sounds like the jar files and/or classes are creating Java programs for
themselves... did you do a CRTJVAPGM for all the jar files before you
started Tomcat?  What version and release of OS/400 are you on?  Do you
have the latest PTFs for the operating system and java?

David, you are the expert...

Kristen

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
> bounces@xxxxxxxxxxxx] On Behalf Of edouard.lanteigne@xxxxxxxxxx
> Sent: Monday, June 14, 2004 9:25 AM
> To: Java Programming on and around the iSeries / AS400
> Subject: Tomcat
> 
> 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/too
ls
> .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
> 
> --
> This is the Java Programming on and around the iSeries / AS400
(JAVA400-L)
> mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.