Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
New Tomcat shuts down thread

New Tomcat shuts down thread

2007-01-12       - By Christopher Schultz

 Back
Reply:     1     2  

-- --BEGIN PGP SIGNED MESSAGE-- --
Hash: SHA1

Steve,

Steve Ingraham wrote:
> As I stated previously I manually stop and start Tomcat every morning.
> It is not that big of an inconvenience to do that in general but at the
> same time I would like to know why it is doing this and resolve it.
> There is something wrong with the application and fixing it would make
> things run smoother.

You mentioned that your users get an error when whatever happens to
Tomcat happens. Can you describe that error? I think you said something
like "not enough components". Does that appear on a stack trace, or as
an error message to the user?

I'm wondering if you are running out of database connections. (Although,
unless you require a database connection to shut down the server, it
wouldn't explain the fact that you have to kill -9 the server).

The infinite loop suggestion has a better chance of explaining /that/.
Can you wait for the server to get all messed up and take more careful
notes? That's probably the best next step to take. Check out CPU usage
(just run 'top' and see how much CPU time the java process is taking).
If the CPU isn't being eaten by java, then it's probably not a "code out
of control" problem.

Check all your log files: catalina.out, localhost_*.log,
[appname]_*.log, and any application-specific logs you may have (such as
log4j.log). These can usually be found in the TOMCAT_HOME/logs directory.

Certainly post a stack trace if you get one in any of those log files.
Another thing you can to is trigger a thread dump. From that, it's
(sometimes) possible to see that all the request handler threads are
stuck waiting on some resource. Send a QUIT (sig 3) to the application
instead of KILL (sig 9) and that should emit a thread dump (stack trace
for every live thread) to standard output (usually redirected to
catalina.out). You can inspect it yourself to see if you can detect
anything fishy, or go ahead and post it to the list and we'll see if we
can give you any advice.

The fact that a previous developer mentioned off-hand that "something
might be wrong with the memory" is not exactly encouraging, since I'm
guessing he or she didn't give you any indication of /where/ that memory
problem might be. That pretty much means that you're going to have to
start from scratch. :(

Good luck,
- -chris

-- --BEGIN PGP SIGNATURE-- --
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFp8ZH9CaO5/Lv0PARAjzCAJ43KFJuG6bza+zLGIAKygFJ97yAqACgw11n
bRAlQBGHIn6WlDZN0nzYyQg=
=T4kv
-- --END PGP SIGNATURE-- --

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.