Re: Re: Help, My Tomcat always down everyday!

2001-09-20 Thread akilus

simon colston£¬ÄúºÃ£¡

Thanks for your reply, but I use JSDK1.3.0.04, not 1.3.1, and do you found the same 
problem of my JVM?
Such like this, when I restart tomcat, JAVA occupy 14M memory, after some times, JAVA 
occupy 23M or more Memory, do you have this problem? The memory of JAVA increased by 
time!!!
I 'm not familiar with IBM JVM,where can I found IBM JVM?
And will it work good with tomcat? will IBM JVM have all functions of JDK JVM?
Thanks a lot!



ÔÚ 2001-09-20 18:01:00 ÄúдµÀ£º
I've found the Sun JVM 1.3.1 to be unstable on Linux 6.2 and 7.1.  Tomcat kept 
crashing at random intervals (sometime a few days, sometimes a few hours).  I 
switched to the IBM JVM and it started to run OK - no crashing.  Maybe you'd like to 
give that a try.

On Thu, 20 Sep 2001 14:28:39 +0530
Dinu Jose [EMAIL PROTECTED] wrote:

DJ Hello All,
DJ I am also facing a similar scenario and the situation is still more worse,i.
DJ e.,tomcat is down every two hours.If restarted,it works fine and will be
DJ down after two hours.Please help .
DJ Thanks in advance
DJ Dinu
DJ
DJ
DJ -Original Message-
DJ From: akilus [mailto:[EMAIL PROTECTED]]
DJ Sent: Thursday, September 20, 2001 2:17 PM
DJ To: [EMAIL PROTECTED]
DJ Subject: Help, My Tomcat always down everyday!
DJ
DJ
DJ Hello, Everybody!
DJ My Tomcat always down everyday, I don't know why, and I don't find anything
DJ useful in my log files.
DJ and when I restart Tomcat, everything will go correctly, but after some
DJ time, normally in noon, the tomcat will down again.
DJ And another thing is :The memory that jdk occupy increase with time, I don't
DJ know whether it is normal or abnormal.
DJ Who can tell me several possible reasons about this? I use redhat
DJ 6.2,Apache1.3.12, Tomcat3.2.2 and j2sdk1.3.0.04 for linux.
DJ The below is my configuration for tomcat, other files is not modified:
DJ Tomcat.conf:
DJ ///
DJ
DJ
DJ 
DJ ###
DJ # Apache JServ Configuration File
DJ #
DJ 
DJ ###
DJ
DJ # Note: this file should be appended or included into your httpd.conf
DJ
DJ # Tell Apache on win32 to load the Apache JServ communication module
DJ # LoadModule jserv_module modules/ApacheModuleJServ.dll
DJ
DJ # Tell Apache on Unix to load the Apache JServ communication module
DJ # For shared object builds only!!!
DJ # @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
DJ LoadModule jserv_module libexec/mod_jserv.so
DJ
DJ IfModule mod_jserv.c
DJ # Do not edit!
DJ ApJServManual on
DJ ApJServDefaultProtocol ajpv12
DJ ApJServSecretKey DISABLED
DJ ApJServMountCopy on
DJ ApJServLogLevel notice
DJ
DJ
DJ ### Change if you run tomcat on a different host
DJ #ApJServDefaultHost localhost
DJ ApJServDefaultPort 8007
DJ
DJ
DJ  All jsp files will go to tomcat 
DJ ApJServMount default /root
DJ
DJ AddType text/jsp .jsp
DJ AddHandler jserv-servlet .jsp
DJ
DJ Alias /app /home/httpd/html
DJ
DJ Directory /home/httpd/html
DJ Options  FollowSymLinks
DJ /Directory
DJ
DJ Location /app/WEB-INF/
DJ AllowOverride None
DJ deny from all
DJ /Location
DJ
DJ LocationMatch /app/*.jsp
DJ setHandler jserv-servlet
DJ /LocationMatch
DJ
DJ ## Context mapping - all requests go to tomcat
DJ
DJ ApJServMount /examples /root
DJ
DJ ## Context mapping - you need to deploy
DJ # ( copy or ln -s ) the context into htdocs
DJ ##
DJ
DJ # ApJservMount /CONTEXT/servlet  /root
DJ # Location /CONTEXT/WEB-INF/ 
DJ #  AllowOverride None
DJ #  deny from all
DJ # /Location
DJ
DJ ApJServMount /app/servlet /app
DJ
DJ ApJServMount /servlet /ROOT
DJ
DJ /IfModule
DJ ///
DJ server.xml
DJ //
DJ ?xml version=1.0 encoding=ISO-8859-1?
DJ
DJ Server
DJ !-- Debug low-level events in XmlMapper startup --
DJ xmlmapper:debug level=0 /
DJ
DJ !--
DJ
DJ Logging:
DJ
DJ  Logging in Tomcat is quite flexible; we can either have a log
DJ  file per module (example: ContextManager) or we can have one
DJ  for Servlets and one for Jasper, or we can just have one
DJ  tomcat.log for both Servlet and Jasper.  Right now there are
DJ  three standard log streams, tc_log, servlet_log, and
DJ  JASPER_LOG.
DJ
DJ Path:
DJ
DJ The file to which to output this log, relative to
DJ TOMCAT_HOME.  If you omit a path value, then stderr or
DJ stdout will be used.
DJ
DJ Verbosity:
DJ
DJ Threshold for which types of messages are displayed in the
DJ log.  Levels are inclusive; that is, WARNING level displays
DJ any log message marked as warning, error, or fatal.  Default
DJ level is WARNING.
DJ
DJ verbosityLevel values can be:
DJFATAL
DJERROR
DJWARNING
DJ 

Re: RE: Help, My Tomcat always down everyday!

2001-09-20 Thread akilus

Dinu Jose£¬ÄúºÃ£¡

Do u have the same software with me?

ÔÚ 2001-09-20 14:28:00 ÄúдµÀ£º
Hello All,
I am also facing a similar scenario and the situation is still more worse,i.
e.,tomcat is down every two hours.If restarted,it works fine and will be
down after two hours.Please help .
Thanks in advance
Dinu


-Original Message-
From: akilus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 2:17 PM
To: [EMAIL PROTECTED]
Subject: Help, My Tomcat always down everyday!


Hello, Everybody!
My Tomcat always down everyday, I don't know why, and I don't find anything
useful in my log files.
and when I restart Tomcat, everything will go correctly, but after some
time, normally in noon, the tomcat will down again.
And another thing is :The memory that jdk occupy increase with time, I don't
know whether it is normal or abnormal.
Who can tell me several possible reasons about this? I use redhat
6.2,Apache1.3.12, Tomcat3.2.2 and j2sdk1.3.0.04 for linux.
The below is my configuration for tomcat, other files is not modified:
Tomcat.conf:
///



###
# Apache JServ Configuration File
#

###

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module libexec/mod_jserv.so

IfModule mod_jserv.c
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
ApJServDefaultPort 8007


 All jsp files will go to tomcat 
ApJServMount default /root

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /app /home/httpd/html

Directory /home/httpd/html
Options  FollowSymLinks
/Directory

Location /app/WEB-INF/
AllowOverride None
deny from all
/Location

LocationMatch /app/*.jsp
setHandler jserv-servlet
/LocationMatch

## Context mapping - all requests go to tomcat

ApJServMount /examples /root

## Context mapping - you need to deploy
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# Location /CONTEXT/WEB-INF/ 
#  AllowOverride None
#  deny from all
# /Location

ApJServMount /app/servlet /app

ApJServMount /servlet /ROOT

/IfModule
///
server.xml
//
?xml version=1.0 encoding=ISO-8859-1?

Server
!-- Debug low-level events in XmlMapper startup --
xmlmapper:debug level=0 /

!--

Logging:

 Logging in Tomcat is quite flexible; we can either have a log
 file per module (example: ContextManager) or we can have one
 for Servlets and one for Jasper, or we can just have one
 tomcat.log for both Servlet and Jasper.  Right now there are
 three standard log streams, tc_log, servlet_log, and
 JASPER_LOG.

Path:

The file to which to output this log, relative to
TOMCAT_HOME.  If you omit a path value, then stderr or
stdout will be used.

Verbosity:

Threshold for which types of messages are displayed in the
log.  Levels are inclusive; that is, WARNING level displays
any log message marked as warning, error, or fatal.  Default
level is WARNING.

verbosityLevel values can be:
   FATAL
   ERROR
   WARNING
INFORMATION
DEBUG

Timestamps:

By default, logs print a timestamp in the form -MM-dd
hh:mm:ss in front of each message.  To disable timestamps
completely, set 'timestamp=no'. To use the raw
msec-since-epoch, which is more efficient, set
'timestampFormat=msec'.  If you want a custom format, you
can use 'timestampFormat=hh:mm:ss' following the syntax of
java.text.SimpleDateFormat (see Javadoc API).  For a
production environment, we recommend turning timestamps off,
or setting the format to msec.

Custom Output:

Custom means normal looking.  Non-custom means
surrounded with funny xml tags.  In preparation for
possibly disposing of custom altogether, now the default is
'custom=yes' (i.e. no tags)

Per-component Debugging:

Some components accept a debug attribute.  This further
enhances log output.  If you set the debug level for a
component, it may output extra debugging information.
--

 

Re: Re: Help, My Tomcat always down everyday!

2001-09-20 Thread song yantao

On Thu, 20 Sep 2001 17:53:42 +0800
akilus [EMAIL PROTECTED] wrote:

Thanks for your help, I used JDK1.3.1 and JDK1.3.0, the two JDKs have the same 
problem.
I will try JDK1.2.2 now, and see whether it have this problem or not.
If JDK1.2.2 is the same for me, maybe the tomcat have some problem with JDK. 
But I dont want to use IBM JVM now, because I'm not familiar with them, and I don't 
know whether I need to modify my jsp program or not if I change to IBM JVM, because 
our program utilize some functions of JDK and other packages from SUN.
  
 Thanks for your reply, but I use JSDK1.3.0.04, not 1.3.1, and do you found the same 
problem of my JVM?

Not tried it, sorry.

 Such like this, when I restart tomcat, JAVA occupy 14M memory, after some times, 
JAVA occupy 23M or more Memory, do you have this problem? The memory of JAVA 
increased by time!!!

This is normal.  By default the JVM will use up 64M without releasing memory back to 
the OS.  You can set the maximum and minimum amount of memory the JVM uses uses 
command line parameters to the java command (see the documentation for the 'java' 
command)

 I 'm not familiar with IBM JVM,where can I found IBM JVM? 

http://www-106.ibm.com/developerworks/java/jdk/linux130/?dwzone=java

 And will it work good with tomcat? will IBM JVM have all functions of JDK JVM?

I'm using it and it works for me  ;o)


--
simon colston
[EMAIL PROTECTED]