RE: Tomcat hangs up from time to time

2005-03-21 Thread Larry Johnson
I just finished dealing with the same problem. In the end I ended up having
to install a new version of linux (rh 9 -> rh enterprise) to resolve it. I'm
not sure about the exact cause, but given that the problem acts like a
socket problem (Hard to tell without errors) I'm guessing that that would be
a good place to start looking. Please let me know if you find anything. 

Larry



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 20, 2005 11:55 PM
To: Tomcat Users List
Subject: Re: Tomcat hangs up from time to time

Well, I have tried to kill tomcat process with SIGQUIT in order to take
thread dump.
No any reaction. Only SIGKILL works.

On Thu, 17 Mar 2005 11:28:58 -
"Peter Crowther" <[EMAIL PROTECTED]> wrote:

> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > But about two-five times per day, Tomcat hangs up,
> > java (version is 1.5.0_01-b08) eats much cpu (up to 90%),
> > and no any response from Tomcat, no warnings/errors in logs.
> > I even can't stop it with shutdown.sh!
> > 
> > Have anyone the same problem? Any solutions, advices, thoughts?
> 
> Check your JVM documentation, and then kill the main Tomcat process with
> the signal that causes a thread dump.  Read/grep through the thread dump
> - who's doing what?
> 
>   - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs up from time to time

2005-03-20 Thread lazyuser
Well, I have tried to kill tomcat process with SIGQUIT in order to take thread 
dump.
No any reaction. Only SIGKILL works.

On Thu, 17 Mar 2005 11:28:58 -
"Peter Crowther" <[EMAIL PROTECTED]> wrote:

> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > But about two-five times per day, Tomcat hangs up,
> > java (version is 1.5.0_01-b08) eats much cpu (up to 90%),
> > and no any response from Tomcat, no warnings/errors in logs.
> > I even can't stop it with shutdown.sh!
> > 
> > Have anyone the same problem? Any solutions, advices, thoughts?
> 
> Check your JVM documentation, and then kill the main Tomcat process with
> the signal that causes a thread dump.  Read/grep through the thread dump
> - who's doing what?
> 
>   - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs up from time to time

2005-03-17 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> But about two-five times per day, Tomcat hangs up,
> java (version is 1.5.0_01-b08) eats much cpu (up to 90%),
> and no any response from Tomcat, no warnings/errors in logs.
> I even can't stop it with shutdown.sh!
> 
> Have anyone the same problem? Any solutions, advices, thoughts?

Check your JVM documentation, and then kill the main Tomcat process with
the signal that causes a thread dump.  Read/grep through the thread dump
- who's doing what?

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs up from time to time

2005-03-17 Thread lazyuser
Hi all,

Lately, I have set up Tomcat 5.5.7 on Slackware Linux 9.1.
I have configured four virtual hosts for me and my workmates.
We develop a few web apps with Struts, Torque, Velocity, etc.
Application base directories, scratch directories and tomcat logs
are located on NFS share.
Common approach is edit source, compile, reload web app with
org.apache.catalina.ant.ReloadTask, look at browser time and again.

But about two-five times per day, Tomcat hangs up,
java (version is 1.5.0_01-b08) eats much cpu (up to 90%),
and no any response from Tomcat, no warnings/errors in logs.
I even can't stop it with shutdown.sh!

Have anyone the same problem? Any solutions, advices, thoughts?

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat hangs

2005-02-04 Thread Hari Mailvaganam
Have you analyze the memory usage on the box? 


On Fri, 04 Feb 2005 14:35:37 +0530, Dhana Sekar Sugunan
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am not sure i am posting this in the correct area. Please bear and advice.
> 
> My application needs to run a thread contiuously for every 1 hr. I have made
> the coding in servlet as
> package invservlet;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.IOException;
> import java.util.Timer;
> import java.util.TimerTask;
> import java.util.Date;
> import java.util.Calendar;
> import sample.Reminder;
> public class SampleReminder extends HttpServlet{
> Timer timer;
> Date date=new Date();
> Calendar calc=Calendar.getInstance();
> public void init(){
> timer = new Timer();
> timer.schedule(new Reminder(),calc.getTime(),1*1000*60*60);
> }
> public void doService(HttpServletRequest request,HttpServletResponse
> response) throws ServletException,IOException{
> }
> public void destroy(){
> timer.cancel();
> super.destroy();
> }
> }
> 
> and the execution file is
> 
> package sample;
> import java.util.TimerTask;
> import java.util.Date;
> import box.util.SendMail;
> 
> public class Reminder extends TimerTask{
> SendMail sendMail=new SendMail();
> public void run() {
> taskBody();
> }
> public void taskBody()
> {
> 
> try{
> sendMail.SendMail("192.168.0.33","[EMAIL PROTECTED]","[EMAIL 
> PROTECTED]","","","Test
> log mail","This is a test mail for every 1 hour"+new Date());
> }catch(Exception e){System.out.println("ERROR IN Remainder");}
> 
> }
> }
> 
> BUT EVERY 2 - 3 DAYS I AM GETTING MY TOMCAT HANGING. I THINK THE PROBLEM IS
> IN THE THREAD. PLEASE ADVICE. THANKS.
> 
> Sorry, forget to add some more points which may help for analysation.
> My application will fetch more than 1000 records for single transaction.
> And also some times in will be transferred (sendRedirect) to another page
> with nearly 20 fields of data.
> 
> Will this also create problem?
> 
> _
> MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal
> haven online.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat hangs

2005-02-04 Thread Dhana Sekar Sugunan
Hi,
I am not sure i am posting this in the correct area. Please bear and advice.
My application needs to run a thread contiuously for every 1 hr. I have made 
the coding in servlet as
package invservlet;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.util.Timer;
import java.util.TimerTask;
import java.util.Date;
import java.util.Calendar;
import sample.Reminder;
public class SampleReminder extends HttpServlet{
Timer timer;
Date date=new Date();
Calendar calc=Calendar.getInstance();
public void init(){
timer = new Timer();
timer.schedule(new Reminder(),calc.getTime(),1*1000*60*60);
}
public void doService(HttpServletRequest request,HttpServletResponse 
response) throws ServletException,IOException{
}
public void destroy(){
timer.cancel();
super.destroy();
}
}

and the execution file is
package sample;
import java.util.TimerTask;
import java.util.Date;
import box.util.SendMail;
public class Reminder extends TimerTask{
SendMail sendMail=new SendMail();
public void run() {
taskBody();
}
public void taskBody()
{
try{
sendMail.SendMail("192.168.0.33","[EMAIL PROTECTED]","[EMAIL PROTECTED]","","","Test 
log mail","This is a test mail for every 1 hour"+new Date());
}catch(Exception e){System.out.println("ERROR IN Remainder");}

}
}
BUT EVERY 2 - 3 DAYS I AM GETTING MY TOMCAT HANGING. I THINK THE PROBLEM IS 
IN THE THREAD. PLEASE ADVICE. THANKS.

Sorry, forget to add some more points which may help for analysation.
My application will fetch more than 1000 records for single transaction.
And also some times in will be transferred (sendRedirect) to another page 
with nearly 20 fields of data.

Will this also create problem?
_
MSN Spaces! Your space, your time. http://www.msn.co.in/spaces Your personal 
haven online.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


connection pool ? tomcat hangs

2005-01-08 Thread Eric Wulff
Hi all, I am still experiencing a problem by which tomcat hangs upon
attempting to execute a query under a specific circumstance, but I
don't know why.  I am attempting to utilize a connection pool and the
problem here in lies the problem I believe.  This is what happens,
Tomcat will hang until my session times out and then report the
following...
  java.sql.SQLException: System or internal error... 
then the app seems to login again immediately after that, without user
prompt, and immediately returns...
  java.net.SocketException: Broken pipe

Then I am required to restart my app.  All works fine until there is
inactivity for 20 minutes.   Note that my session is set to time out
after 20 minutes and it does... still this problem occurs after
inactivity of > 30 minutes.  I am able to log out and log back in
after the session times out (20 minutes) but before the 30 minute
mark.  Then the problem occurs at my "rset = stmt.executeQuery()" code
in the login process.  Details...

 - OS: fedora core 2
 - tomcat 5.0.28
 - connecting to informix dynamic server 9.1
 - $CATALINA_HOME/common/lib/ contains, among other jars...
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-pool.1.2.jar
ifxjdbc.jar

Notes: these jars are located NOWHERE else as recommended by the Tomcat docs.
Also my $CLASSPATH does not include the commons jars or ifxjdbcx.jar
drivers specifically but they are placed in the
$CATALINA_HOME/common/lib/ as per the Tomcat config docs...

 - my context descriptor is located @ $CATALINA_HOME/conf/engine/host/
 - my app sits in $CATALINA_HOME/webapps/
 - I have no context descriptor in my server.xml
 - I have a SessionListener class that closes the connection and
invalidates the session when it's destroyed

 - below copied is code I use to connect and where it gets stuck,
context, server.xml, web.xml.  Sorry for all the DEBUG stmts... 
obviously I've been working on this for awhile...

Thx much
Eric

CONNECTION POOL METHOD LOCATED IN THE CONTROLLER O FMY APP
private void setConnectionPool() {
try{
// next two lines obtain our environment naming context
Context initialContext = new InitialContext();  // 
throws NamingException
Context environmentContext = (Context)
initialContext.lookup("java:comp/env");  // throws NamingException
// look up our data source
dataSource = (DataSource) 
environmentContext.lookup("jdbc/wms"); 
// throws NamingException
console.println("DEBUG: Dispatcher.setConnectionPool(): 
dataSource set...");
} catch(NamingException e) {
console.println("EXCEPTION:
Dispatcher.setConnectionFromConnectionPool(): " + e);
}
}


LOGIN METHOD OF CONTROLLER/DISPATCHER OF APP:
private void login(HttpSession session, HttpServletRequest req,
HttpServletResponse res) {
//if(dataSource == null) {
//if(DEBUG){console.println("DEBUG: Dispatcher.login(): 
dataSource
null...");}
setConnectionPool();  // setting data source
if(DEBUG){console.println("DEBUG: Dispatcher.login(): 
set
connection pool...");}
//}
if(connection == null) {
if(DEBUG){console.println("DEBUG: Dispatcher.login(): 
connection null...");}
try { 
// allocate and use a connection from the pool
connection = dataSource.getConnection(); 
if(DEBUG){console.println("DEBUG: 
Dispatcher.login(): connection
received... ");}
session.setAttribute("connection", connection);
} catch(SQLException e) { 
if(DEBUG){console.println("EXCEPTION: 
Dispatcher.login():
dataSource - getConnection() failed: " + e);}
}
}
EmployeeBean employee = new EmployeeBean();
MessageBean message = getMessage(session);
message.setView("login");
String employeeId = req.getParameter("employeeId");
String employeePassword = req.getParameter("employeePassword");
// EMPLOYEE ID OR PASSWORD DO NOT CONTAIN INPUT VALUES ?
if(UtilityBean.isEmpty(employeeId) || 
UtilityBean.isEmpty(employeePassword)) {
message.setInputError("employee id or password are 
empty.  Please
try again.");
session.setAttribute("message", message);
forwardTo(req, res, ".&quo

RE: Tomcat hangs up ... Huge count of webapps

2004-12-03 Thread Shapira, Yoav

Hi,

>### Ok. It's not THAT huge .. but we have ~45 users per webapp which
are
>going to connect on nearly the same time ..

25 apps * 45 users = virtually 1125 concurrent users, that's
significant.

> I'm bringing up the JVM with /usr/j2re142_05/bin/java -server
>-Xmx1024m -Xms256m -D ...

Then it's not allocating 1.96GB: how did you get that number for your
original post?

>>> What's SOL? We didn't expect to get THAT massive problems with
tomcat
>as i know that tomcat run even better some time ago :(

SOL: www.acronymfinder.com/default.asp?p=dict&String=exact&Acronym=SOL.

Tomcat has only improved in terms of memory usage, stability, and
performance over time.  It's more likely that your apps, your load, your
hardware, or a combination of the above have changed.  Regardless, this
is why you should also stress-test your applications as they would be
deployed in production against the expected user load.

For now, you should probably split the apps into multiple Tomcat
instances running on separate servers.  That way would reduce the load,
reduce the JVM size, and increase the performance seen by your users.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Tomcat hangs up ... Huge count of webapps

2004-12-03 Thread Eberle Martin
>i have a huge count of webapps (approximately 25) in my Tomcat here,

I wouldn't classify 25 as huge, but I suppose that's subjective.  We
have servers running that many webapps, but they're small webapps.

### Ok. It's not THAT huge .. but we have ~45 users per webapp which are
going to connect on nearly the same time .. 

>Well, beneath the fact that my server has 2 gigabytes of ram, only 40MB

>are available after starting tomcat. So, tomcat allocates 1.96
gigabytes
>of ram.

You control the JVM; if it allocates 1.96GB it means you gave it -Xmx2G
*at least*.  Even if that's the case on purpose, you need to redesign
your deployment practice because leaving 40MB free on a 2GB server will
only lead to bad things.

 I'm bringing up the JVM with /usr/j2re142_05/bin/java -server
-Xmx1024m -Xms256m -D ... 

>Question is: what is the maximum count of webapps, Tomcat is able to 
>handle?

It's limited by your environment and requirements.  Tomcat imposes no
limit of its own.  I ran a load test a year or so ago with 100 webapps
deployed, and it worked (with good response times and CPU usage), but
the apps were small and the machine was massive.
Then you're SOL for now ;)  It's no fun doing capacity planning after
deployment, and there are no easy shortcuts ;(

>> What's SOL? We didn't expect to get THAT massive problems with tomcat
as i know that tomcat run even better some time ago :(

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs up ... Huge count of webapps

2004-12-03 Thread Shapira, Yoav

Hi,

>i have a huge count of webapps (approximately 25) in my Tomcat here,

I wouldn't classify 25 as huge, but I suppose that's subjective.  We
have servers running that many webapps, but they're small webapps.

>Well, beneath the fact that my server has 2 gigabytes of ram, only 40MB
>are available after starting tomcat. So, tomcat allocates 1.96
gigabytes
>of ram.

You control the JVM; if it allocates 1.96GB it means you gave it -Xmx2G
*at least*.  Even if that's the case on purpose, you need to redesign
your deployment practice because leaving 40MB free on a 2GB server will
only lead to bad things.

>Question is: what is the maximum count of webapps, Tomcat is able to
>handle?

It's limited by your environment and requirements.  Tomcat imposes no
limit of its own.  I ran a load test a year or so ago with 100 webapps
deployed, and it worked (with good response times and CPU usage), but
the apps were small and the machine was massive.

>Or are there any other configuration hints?

Only the usual: think and apply performance testing principles.  There's
no magic switch or configuration.  In your case, you probably want to
split the apps into multiple Tomcat servers, and profile each app (or
small set of apps) separately to determine its hardware and memory
requirements.  Then figured out how you want to use your hardware and
configure as many instances of Tomcat as you need.

>- JDK1.4.2_06 and JRE1.4.2_05 (same effect on every Java version)

Those two versions are not that different ;)  It might be worth your
time to try J2SE 5.0, JRockit, or other JVMs.

>This is an absolut urgent issue! Please reply asap .. Thx a lot 

Then you're SOL for now ;)  It's no fun doing capacity planning after
deployment, and there are no easy shortcuts ;(

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs up ... Huge count of webapps

2004-12-03 Thread Eberle Martin
Hi everybody and java experts, 

i have a huge count of webapps (approximately 25) in my Tomcat here,
running on Suse Linux 9.1.  After a few connection requests, Tomcat just
hangs up and doesn't accept anymore connections. I can't kill the
process anyway, only "killall -9 java" helps. 

Well, beneath the fact that my server has 2 gigabytes of ram, only 40MB
are available after starting tomcat. So, tomcat allocates 1.96 gigabytes
of ram. 

Question is: what is the maximum count of webapps, Tomcat is able to
handle? Or are there any other configuration hints? 

System is 
- Suse Linux 9.1 
- 2GB of RAM 
- 3.0 Ghz Machine 
- JDK1.4.2_06 and JRE1.4.2_05 (same effect on every Java version) 
- Tomcat 4.1.31 or Tomcat bundle with TDK-2.2 (TurbineDevelopmentKit) ..


This is an absolut urgent issue! Please reply asap .. Thx a lot  

Regard,
Martin Eberle


RE: tomcat hangs, top displays 99%

2004-07-21 Thread Shapira, Yoav
Hi,
No, it's not built into tomcat to restart without a user command to do
so.  That'd be pretty bad.

How tomcat responds to load depends on where the stress is located.  If
you're throwing too many connections at it, you'll start getting
Connection Refused http error messages from the Coyote connector.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Hans Wichman [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 21, 2004 2:56 AM
>To: Tomcat Users List
>Subject: Re: tomcat hangs, top displays 99%
>
>Hi,
>sorry for the late reply, I've been allocated to other projects in the
>meantime.
>Nope it doesn't have the header included, but it was worth a shot.
>
>Does anybody know where can I find information on how tomcat will
respond
>when the load gets to high? Will it start throwing exceptions, or is
there
>no general response?
>Also it seems that during stresstesting, tomcat restarts, but I don't
know
>for sure (I see deploy messages).
>Is it build into tomcat to restart periodically?
>
>grtz
>Hans
>
>At 03:04 PM 7/8/2004, Jon Wingfield wrote:
>>Just a thought. Does your error page also have header.jsp included?
>>Have you got yourself into an infinite loop of "Session already
>>invalidated" IllegalStateExceptions?
>>
>>Jon
>>
>>Hans Wichman wrote:
>>
>>>Hi,
>>>while stresstesting my application using tomcat 4.1.29, oracle, dbcp
>>>connection pooling and a stresstest tool, I see the amount of my
>>>connections in my pool fluctuate (as expected). At a certain while I
>>>still have plenty connections left in the pool, errors start
occuring:
>>>org.apache.jasper.JasperException: setAttribute: Session already
>invalidated
>>>and after this has happened for a while (some processing proceeds
>>>normally), I get:
>>>org.apache.jasper.JasperException:
>>> at
>>>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>254)
>>>
>>> at
>>>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>>> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>>... root cause ...
>>>javax.servlet.ServletException:
>>> at
>>>
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte
xtIm
>pl.java:536)
>>>
>>> at org.apache.jsp.header_jsp._jspService(header_jsp.java:293)
>>> at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>>>at this point tomcat hangs. If I shutdown the stresstest tool, tomcat
>>>still displays at 99% when running top (freebsd).
>>>Does anybody know why these errors occur, and why after stopping the
>>>stresstest, tomcat is still at 99%?
>>>I don't see any out of memory errors or something like that, and
don't
>>>really know where to start exploring the problem.
>>>thanks in advance
>>>Hans W
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat hangs, top displays 99%

2004-07-20 Thread Hans Wichman
Hi,
sorry for the late reply, I've been allocated to other projects in the 
meantime.
Nope it doesn't have the header included, but it was worth a shot.

Does anybody know where can I find information on how tomcat will respond 
when the load gets to high? Will it start throwing exceptions, or is there 
no general response?
Also it seems that during stresstesting, tomcat restarts, but I don't know 
for sure (I see deploy messages).
Is it build into tomcat to restart periodically?

grtz
Hans
At 03:04 PM 7/8/2004, Jon Wingfield wrote:
Just a thought. Does your error page also have header.jsp included?
Have you got yourself into an infinite loop of "Session already 
invalidated" IllegalStateExceptions?

Jon
Hans Wichman wrote:
Hi,
while stresstesting my application using tomcat 4.1.29, oracle, dbcp 
connection pooling and a stresstest tool, I see the amount of my 
connections in my pool fluctuate (as expected). At a certain while I 
still have plenty connections left in the pool, errors start occuring:
org.apache.jasper.JasperException: setAttribute: Session already invalidated
and after this has happened for a while (some processing proceeds 
normally), I get:
org.apache.jasper.JasperException:
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) 

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... root cause ...
javax.servlet.ServletException:
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) 

at org.apache.jsp.header_jsp._jspService(header_jsp.java:293)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at this point tomcat hangs. If I shutdown the stresstest tool, tomcat 
still displays at 99% when running top (freebsd).
Does anybody know why these errors occur, and why after stopping the 
stresstest, tomcat is still at 99%?
I don't see any out of memory errors or something like that, and don't 
really know where to start exploring the problem.
thanks in advance
Hans W

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat hangs

2004-07-15 Thread Stefan Burkard
i don't tried this, because the app runs with ssl - therefore i'm using 
apache with mod_ssl in front of tomcat

greetings
stefan
Shapira, Yoav wrote:
Hi,
Does it happen if you run tomcat stand-alone, i.e. without the connector
and Apache in front?
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard
Sent: Wednesday, July 14, 2004 3:25 AM
To: [EMAIL PROTECTED]
Subject: tomcat hangs
hi tomcat-users
we use a tomcat-based application and it runs well and fast. but from
time to time (this can be some hours but also some days) the
application
hangs.
if i have a look on the server, it's absolutely not busy (this would be
surprising because only about 10 people use the application).
because of the many ajp13-log-entries, i thought the jk2-connector
could
be the problem. here are some log entries:
[Tue Jul 13 17:48:19 2004] [error] Error ajp_process_callback - write
failed
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() ajpGetReply
recoverable error 3
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8007 1 0
[Tue Jul 13 17:48:19 2004] [error] mod_jk.handler() Error connecting to
tomcat 3
mod_jk: Error flushing
in most of all cases, the application (or tomcat or the connector) can
recover itself after some minutes of hanging.
can anybody help me?
thanks and greetings
stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat hangs

2004-07-14 Thread Shapira, Yoav

Hi,
Does it happen if you run tomcat stand-alone, i.e. without the connector
and Apache in front?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Burkard
>Sent: Wednesday, July 14, 2004 3:25 AM
>To: [EMAIL PROTECTED]
>Subject: tomcat hangs
>
>hi tomcat-users
>
>we use a tomcat-based application and it runs well and fast. but from
>time to time (this can be some hours but also some days) the
application
>hangs.
>
>if i have a look on the server, it's absolutely not busy (this would be
>surprising because only about 10 people use the application).
>because of the many ajp13-log-entries, i thought the jk2-connector
could
>be the problem. here are some log entries:
>
>[Tue Jul 13 17:48:19 2004] [error] Error ajp_process_callback - write
>failed
>[Tue Jul 13 17:48:19 2004] [error] ajp13.service() ajpGetReply
>recoverable error 3
>[Tue Jul 13 17:48:19 2004] [error] ajp13.service() Error  forwarding
>ajp13:localhost:8007 1 0
>[Tue Jul 13 17:48:19 2004] [error] mod_jk.handler() Error connecting to
>tomcat 3
>mod_jk: Error flushing
>
>in most of all cases, the application (or tomcat or the connector) can
>recover itself after some minutes of hanging.
>
>can anybody help me?
>
>thanks and greetings
>stefan
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat hangs

2004-07-14 Thread Stefan Burkard
hi tomcat-users
we use a tomcat-based application and it runs well and fast. but from 
time to time (this can be some hours but also some days) the application 
hangs.

if i have a look on the server, it's absolutely not busy (this would be 
surprising because only about 10 people use the application).
because of the many ajp13-log-entries, i thought the jk2-connector could 
be the problem. here are some log entries:

[Tue Jul 13 17:48:19 2004] [error] Error ajp_process_callback - write failed
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() ajpGetReply 
recoverable error 3
[Tue Jul 13 17:48:19 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8007 1 0
[Tue Jul 13 17:48:19 2004] [error] mod_jk.handler() Error connecting to 
tomcat 3
mod_jk: Error flushing

in most of all cases, the application (or tomcat or the connector) can 
recover itself after some minutes of hanging.

can anybody help me?
thanks and greetings
stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat hangs, top displays 99%

2004-07-08 Thread Jon Wingfield
Just a thought. Does your error page also have header.jsp included?
Have you got yourself into an infinite loop of "Session already 
invalidated" IllegalStateExceptions?

Jon
Hans Wichman wrote:
Hi,
while stresstesting my application using tomcat 4.1.29, oracle, dbcp 
connection pooling and a stresstest tool, I see the amount of my 
connections in my pool fluctuate (as expected). At a certain while I 
still have plenty connections left in the pool, errors start occuring:
org.apache.jasper.JasperException: setAttribute: Session already 
invalidated

and after this has happened for a while (some processing proceeds 
normally), I get:
org.apache.jasper.JasperException:
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) 

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... root cause ...
javax.servlet.ServletException:
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) 

at org.apache.jsp.header_jsp._jspService(header_jsp.java:293)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at this point tomcat hangs. If I shutdown the stresstest tool, tomcat 
still displays at 99% when running top (freebsd).

Does anybody know why these errors occur, and why after stopping the 
stresstest, tomcat is still at 99%?
I don't see any out of memory errors or something like that, and don't 
really know where to start exploring the problem.

thanks in advance
Hans W
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat hangs, top displays 99%

2004-07-08 Thread Hans Wichman
Hi,
while stresstesting my application using tomcat 4.1.29, oracle, dbcp 
connection pooling and a stresstest tool, I see the amount of my 
connections in my pool fluctuate (as expected). At a certain while I still 
have plenty connections left in the pool, errors start occuring:
org.apache.jasper.JasperException: setAttribute: Session already invalidated

and after this has happened for a while (some processing proceeds 
normally), I get:
org.apache.jasper.JasperException:
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... root cause ...
javax.servlet.ServletException:
	at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
	at org.apache.jsp.header_jsp._jspService(header_jsp.java:293)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)

at this point tomcat hangs. If I shutdown the stresstest tool, tomcat still 
displays at 99% when running top (freebsd).

Does anybody know why these errors occur, and why after stopping the 
stresstest, tomcat is still at 99%?
I don't see any out of memory errors or something like that, and don't 
really know where to start exploring the problem.

thanks in advance
Hans W
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat hangs

2004-06-09 Thread Ryan Lissack
Hi Matt,

See this message for the probable solution:
http://marc.theaimsgroup.com/?l=tomcat-user&m=108670043100516&w=2

Also see the following messages for further explanations:
http://marc.theaimsgroup.com/?l=tomcat-user&w=2&r=1&s=tomcat+jitters%2C+then
+hangs+-+please+help&q=b

HTH,
Ryan.

-Original Message-
From: Matt Tucker [mailto:[EMAIL PROTECTED]
Sent: 09 June 2004 16:41
To: Tomcat Users List
Subject: tomcat hangs


Hello,

I know I've seen this issue discussed in a lot of places but I've yet to 
see a definitive solution. Here's our problem: we are running three 
instances of tomcat on our server. Two of them are running live webapps 
for two clients and one is for development. One app has been running for 
about a month and has been "hanging" (not accepting requests) more and 
more frequently (it's happening at least once a day). The second app has 
been running for a couple weeks and did not hang at first but has 
started to hang once in awhile and it appears to be happening more 
frequently. This does not seem to be related to usage as neither app is 
getting a lot of traffic when they go down. Here's our setup:

Red Hat Linux 9
Apache 2.0.49
Tomcat 5.0.19
Java 1.4.2

we are using mod_proxy to forward requests from apache to tomcat.

It went down this morning and we did a thread dump as was suggested 
elsewhere and couldn't find anything that was suspect. There is nothing 
in catalina.out to indicate why this is happening.

Someone here suggested that perhaps it has something to do with writing 
to catalina.out. This is legacy code and catalina.out is used for 
logging. The previous developers are logging every single SQL statement 
to catalina.out. This file is getting very, very large. Could this have 
anything to do with it?

Any help on this would be greatly appreciated as our customers are 
getting more and more annoyed. Thanks.

Matt Tucker
thoughtbot

cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat hangs

2004-06-09 Thread Matt Tucker
Hello,
I know I've seen this issue discussed in a lot of places but I've yet to 
see a definitive solution. Here's our problem: we are running three 
instances of tomcat on our server. Two of them are running live webapps 
for two clients and one is for development. One app has been running for 
about a month and has been "hanging" (not accepting requests) more and 
more frequently (it's happening at least once a day). The second app has 
been running for a couple weeks and did not hang at first but has 
started to hang once in awhile and it appears to be happening more 
frequently. This does not seem to be related to usage as neither app is 
getting a lot of traffic when they go down. Here's our setup:

Red Hat Linux 9
Apache 2.0.49
Tomcat 5.0.19
Java 1.4.2
we are using mod_proxy to forward requests from apache to tomcat.
It went down this morning and we did a thread dump as was suggested 
elsewhere and couldn't find anything that was suspect. There is nothing 
in catalina.out to indicate why this is happening.

Someone here suggested that perhaps it has something to do with writing 
to catalina.out. This is legacy code and catalina.out is used for 
logging. The previous developers are logging every single SQL statement 
to catalina.out. This file is getting very, very large. Could this have 
anything to do with it?

Any help on this would be greatly appreciated as our customers are 
getting more and more annoyed. Thanks.

Matt Tucker
thoughtbot
cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat hangs

2004-05-18 Thread Daniel Gibby
Well, here's an update on our tomcat 'lockups'.
When tomcat 'locks up', it won't answer any requests to any webapp, 
including the manager webapp, even on port 8080. Apache still runs fine 
on requests for things that are not directed to tomcat.

We are having mixed results right now fixing this. We have two separate 
servers running different versions of tomcat and apache but used to be 
running the same JVM from IBM that were having problems. We upgraded the 
java version on machine #1 to the latest IBM version to see if it would 
continue having problems. We have restarted that server a couple of 
times in the last week, but not because it locked up... so our results 
on that server are inconclusive since it hasn't been given the chance to 
run straight for a while.
That server runs apache 1.3.27 and tomcat 4.1.27 and the java version is:
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20040301 (JIT 
enabled: jitc))

It used to be what our other machine (#2) is using:
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20030930 (JIT 
enabled: jitc))

Machine #2 runs tomcat 4.1.30, apache 2.0.40 and mod_jk2.0.2. It used to 
lock up daily or once every two days (it has a higher load). We have put 
a cron in place to restart tomcat nightly. So we assume that it would 
still be having problems if it wasn't for that.

We are not using jboss or JMX.
If I can get server #1 to run consistently for an extended period of 
time, I'll try that java on machine #2 and turn off the nightly restarts 
and see if that works as well. There were quite a few fixes in the IBM 
changelog that talked about lockups that had to do with jitc.

Let me know how you are doing with this issue as well.
Daniel
Rupprecht, Alexander wrote:
Hi Daniel, 

unfortunately we've got exactly the same problem. Do You have any further informations concerning Your problem or any solutions? We've tested a lot, analyzed everything (including tcp-connectivity), but jboss cannot answer all request while there is heavy load on our servers. 

With kind regards
Alex
--
Alexander Rupprecht
PlanetHome AG   
Münchnerstraße 14
85774 Unterföhring 
http://www.planethome.de

Email:[EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat hangs Apache...

2004-05-17 Thread Krist van Besien
Hallo all,
We are having problems, where aparently Tomcat sort of "hangs" apache. Lets 
first discribe the setup:

Server runs IBM AIX 5
Tomcat is version 4.1.27
Apache is version 2.0.47
Java is IBM's own 64 bit JDK 1.4.1
mod_jk2 is used.
We run several virtual hosts on the apache server. There are three instances 
of tomcat running, for three different virtual apache hosts. Apache 
communicates with these instances on tcp sockets, using mod_jk2.

Every _monday_ morning I am presented with the following situation.
- The Apache server has stopped accepting connections. The number of daemons 
is maxclients +1.
- The Tomcat servers function normally. Connecting with a browser to their 
http ports does produce the expected results, within the expected time.
- Restarting one of the tomcat servers solves the problem. The Apache server 
becomes "unstuck", and starts accepting connections again. The number of 
apache daemons drops to around 20 or so, and that is normal for the load.

I currently run a couple of scripts to watch what happens on the system, as 
the logfiles do not give me any clue. I notice that always, somehwere during 
Saturday, the number of apache daemons starts to increase, to the point that 
the maximum is reached, then it stops. The weird thing is that these servers 
are intranet servers, so nobody is actually using them during the weekend. I 
find nothing (no accesses) in the logifles.

I ahve no idea where to start on this, what might cause this problem, how to 
find out more. Has anyobody here on the list seen similar behaviour? Any hints 
on how I might to start finding out what is happening here would be more then 
welcome.

Krist van Besien
--

Krist van Besien   Bern, Switzerland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Hangs

2004-03-29 Thread Jeff Tulley
This is a "For what it is worth" message, since I think that your JVM
upgrade was more to the point of solving the problem.

But, the permanent generation issue:
First, reference Yoav's email response to somebody last month:
http://marc.theaimsgroup.com/?l=tomcat-user&m=107590242329345&w=2

Every time a context is restarted, there is a possibility that there
will be some classloader objects that the JVM doesn't think it can
dispose of.  These are stored in the "permanent generation" memory.  The
perm gen is a small pool of memory just for this purpose - objects that
will never be garbage collected.  But, if the permanent gen fills up
from these constant reloads you can get an OutOfMemoryException even
though the old and new generation memory pools are not full.

I think there was something about the memory not being able to go away
because it was loaded by a classloader that was loading items to be
shared by all web applications, so in other words from jar files in
shared\lib or common\lib

Once again, that doesn't seem to be your problem, especially if you are
not reloading the context repeatedly.

>>> [EMAIL PROTECTED] 3/25/04 6:07:28 PM >>>
I'd say the activity is moderate. Some 6-10 users would be using our 
web application during that time. The machine is better than a 
development machine but not as good as production one.

Jeff, can you explain more about the -- JVM's "permanent generation".

Thanks.

- SPS

- Original Message -
From: "Jeff Tulley" <[EMAIL PROTECTED]>
Date: Thursday, March 25, 2004 7:59 pm
Subject: Re: Tomcat Hangs

> What kind of activity is going on with this server during those two
> hours?  Heavy, moderate, light load?  Is it a development box or
> production?
> 
> I ask the last question, since some have seen a problelm with
repeated
> redeploys of a web application, where the JVM's "permanent
generation"
> memory is running out even though the rest of the memory pools are
> nowhere near full.
> 
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com 
> 
> >>> [EMAIL PROTECTED] 3/25/04 5:50:42 PM >>>
> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> using AJP13 connector. The machine that we're using has got over 
> 2GB of
> 
> Memory and good processor speed. Tomcat has been allocated 1 GB of
max
> 
> memory.
> 
> The issue is: For every two hours or so Tomcat hangs. That means, 
> Tomcat don't crash but simply don't accept any more connections.
While


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hangs

2004-03-29 Thread Cox, Charlie
Try to search for the file from a command prompt. Windows explorer's search
"feature" will not find all the files depending on your setup.

dir /s hs*

Charlie

> -Original Message-
> From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 26, 2004 10:01 AM
> To: Tomcat Users List
> Subject: RE: Tomcat Hangs
> 
> I could not find that file. But meanwhile it stopped responding again.
> This time it is not a crash, I can still see the console and the
> java.exe process in the Task Manager.
> 
> When I hit ctrl + break on the console, there was a lot of log message
> that scrolled on the screen. I've pasted some of the messages at the
> end below:
> ---
> "StandardManager[/udf_uiAlertNS]" daemon prio=5 tid=0x34e22e48
> nid=0x6ac waiting
>  on monitor [0x358cf000..0x358cfdb8]
> at java.lang.Thread.sleep(Native Method)
> at org.apache.catalina.session.StandardManager.threadSleep
> (StandardManag
> er.java:810)
> at org.apache.catalina.session.StandardManager.run
> (StandardManager.java:
> 869)
> at java.lang.Thread.run(Thread.java:479)
> 
> "Signal Dispatcher" daemon prio=10 tid=0x828e78 nid=0xa68 waiting on
> monitor [0.
> .0]
> 
> "Finalizer" daemon prio=9 tid=0x34c50d78 nid=0x978 waiting on monitor
> [0x34f0f00
> 0..0x34f0fdb8]
> at java.lang.Object.wait(Native Method)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
> at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
> at java.lang.ref.Finalizer$FinalizerThread.run
> (Finalizer.java:157)
> 
> "Reference Handler" daemon prio=10 tid=0x34c500e0 nid=0xf60 waiting on
> monitor [
> 0x34ecf000..0x34ecfdb8]
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:415)
> at java.lang.ref.Reference$ReferenceHandler.run
> (Reference.java:105)
> 
> "main" prio=5 tid=0x234bc8 nid=0xfcc runnable [0x6f000..0x6fc34]
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
> at java.net.ServerSocket.implAccept(ServerSocket.java:238)
> at java.net.ServerSocket.accept(ServerSocket.java:217)
> at org.apache.catalina.core.StandardServer.await
> (StandardServer.java:527
> )
> at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
> at org.apache.catalina.startup.Catalina.execute
> (Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process
> (Catalina.java:180)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.apache.catalina.startup.Bootstrap.main
> (Bootstrap.java:203)
> 
> "VM Thread" prio=5 tid=0x829498 nid=0xe20 runnable
> 
> 
> 
> - SPS
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> Date: Friday, March 26, 2004 9:37 am
> Subject: RE: RE: Tomcat Hangs
> 
> >
> > Hi,
> >
> >
> > >Yes this time it appears to be a crash. The message that I posted
> > below>is the only message that I can see on the console. This is
> > the last
> > >message before crashing.
> >
> > There should be a file called hs_err_ ( can be a number of
> > different things on the Windows platform) in the current working
> > directory of the JVM when it crashed.  Look for that file and post its
> > contents if you find it.
> >
> > Yoav Shapira
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business
> > communication, and may contain information that is confidential,
> > proprietary and/or privileged.  This e-mail is intended only for
> > the individual(s) to whom it is addressed, and may not be saved,
> > copied, printed, disclosed or used by anyone else.  If you are not
> > the(an) intended recipient, please immediately delete this e-mail
> > from your computer system and notify the sender.  Thank you.
> >
> >
> > ---
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
It appears that upgrade to JDK 1.4.2 is helping. Tomcat did not 
crash/hang today.

- SPS

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 9:17 am
Subject: RE: Tomcat Hangs

> 
> Hi,
> You said it's hung, not crashed, but this is an internal crash.  
> It's a
> bit beyond not responding ;)
> 
> Due cose: update your JDK if you can, as 1.4.2 is far more stable and
> performant than 1.3.  And make sure you have all the Windows Update
> patches installed on the machine, as this error is usually due to a
> miscommunication between the JDK and the OS.
> 
> Was there a stack trace that you cut off in the message below?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
> >Sent: Friday, March 26, 2004 9:15 AM
> >To: Tomcat Users List
> >Subject: Re: Tomcat Hangs
> >
> >Just now Tomcat stopped responding. While stopping the console 
> I've got
> >the following message:
> >
> >---
> > #
> ># HotSpot Virtual Machine Error, Internal Error
> ># Please report this error at
> ># http://java.sun.com/cgi-bin/bugreport.cgi
> >#
> ># Error ID: 43492F424A454354264143544F52590E435050010E
> >#
> ># Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
> >---
> >
> >We're using JDK version 1.3.1_05.
> >
> >Any thoughts?
> >
> >- SPS
> >
> >- Original Message -
> >From: "Surya Suravarapu" <[EMAIL PROTECTED]>
> >Date: Thursday, March 25, 2004 7:50 pm
> >Subject: Tomcat Hangs
> >
> >> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.
> >> We're
> >> using AJP13 connector. The machine that we're using has got over
> >> 2GB of
> >> Memory and good processor speed. Tomcat has been allocated 1 GB of
> >> max
> >> memory.
> >>
> >> The issue is: For every two hours or so Tomcat hangs. That means,
> >> Tomcat don't crash but simply don't accept any more connections.
> >> While
> >> using Tomcat with Apache we're getting "500 Internal Server
> >> Error". We
> >> are constantly restarting server to make it work. There is no good
> >> information in the logs that could lead us to debug this issue.
> >>
> >> I have tried several things. Taken out Apache and Connectors from
> >> the
> >> equation by running Tomcat as standalone. This time Tomcat we
> >> get "server not found error - Page cannot be displayed" 
> message. I
> >> have
> >> also increased the maxProcessors of the connector to 300 instead
> >> of the
> >> default 75.
> >>
> >> Interesting thing is -- when Tomcat hangs the memory usage never
> >> reaches even half of the max memory (1 GB) allocated to Tomcat,
> >> and the
> >> number of threads that we see is also always less than half of
> >> maxProcessors value (300) set.
> >>
> >> If anybody encountered this kind of issue or if you have any
> >> thoughts
> >> please respond.
> >>
> >> Thanks in advance!
> >>
> >> - SPS
> >>
> >>
> >>
> >> 
> ---
> >> --
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: tomcat-user-
> [EMAIL PROTECTED]>>
> >>
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietary and/or privileged.  This e-mail is intended only for 
> the individual(s) to whom it is addressed, and may not be saved, 
> copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail 
> from your computer system and notify the sender.  Thank you.
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,

>I could not find that file. But meanwhile it stopped responding again.
>This time it is not a crash, I can still see the console and the
>java.exe process in the Task Manager.

OK.  Make note of the fact these are different problems with different
results: one is a hang, one is a crash.

>When I hit ctrl + break on the console, there was a lot of log message

These are all the live threads in the JVM: it's valuable information ;)
The info for the threads you posted is all fine: these are mostly the
standard JVM threads (main, finalizer, reference handler), as well as
one tomcat thread (the session manager for your webapp).  All appear OK.
Post the thread info for your request processing threads: if you're not
sure which those are, post the whole thread dump and we'll try to look
at it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
I could not find that file. But meanwhile it stopped responding again. 
This time it is not a crash, I can still see the console and the 
java.exe process in the Task Manager.

When I hit ctrl + break on the console, there was a lot of log message 
that scrolled on the screen. I've pasted some of the messages at the 
end below:
---
"StandardManager[/udf_uiAlertNS]" daemon prio=5 tid=0x34e22e48 
nid=0x6ac waiting
 on monitor [0x358cf000..0x358cfdb8]
at java.lang.Thread.sleep(Native Method)
at org.apache.catalina.session.StandardManager.threadSleep
(StandardManag
er.java:810)
at org.apache.catalina.session.StandardManager.run
(StandardManager.java:
869)
at java.lang.Thread.run(Thread.java:479)

"Signal Dispatcher" daemon prio=10 tid=0x828e78 nid=0xa68 waiting on 
monitor [0.
.0]

"Finalizer" daemon prio=9 tid=0x34c50d78 nid=0x978 waiting on monitor 
[0x34f0f00
0..0x34f0fdb8]
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
at java.lang.ref.Finalizer$FinalizerThread.run
(Finalizer.java:157)

"Reference Handler" daemon prio=10 tid=0x34c500e0 nid=0xf60 waiting on 
monitor [
0x34ecf000..0x34ecfdb8]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:415)
at java.lang.ref.Reference$ReferenceHandler.run
(Reference.java:105)

"main" prio=5 tid=0x234bc8 nid=0xfcc runnable [0x6f000..0x6fc34]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.catalina.core.StandardServer.await
(StandardServer.java:527
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:203)

"VM Thread" prio=5 tid=0x829498 nid=0xe20 runnable



- SPS

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 9:37 am
Subject: RE: RE: Tomcat Hangs

> 
> Hi,
> 
> 
> >Yes this time it appears to be a crash. The message that I posted 
> below>is the only message that I can see on the console. This is 
> the last
> >message before crashing.
> 
> There should be a file called hs_err_ ( can be a number of
> different things on the Windows platform) in the current working
> directory of the JVM when it crashed.  Look for that file and post its
> contents if you find it.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietary and/or privileged.  This e-mail is intended only for 
> the individual(s) to whom it is addressed, and may not be saved, 
> copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail 
> from your computer system and notify the sender.  Thank you.
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,


>Yes this time it appears to be a crash. The message that I posted below
>is the only message that I can see on the console. This is the last
>message before crashing.

There should be a file called hs_err_ ( can be a number of
different things on the Windows platform) in the current working
directory of the JVM when it crashed.  Look for that file and post its
contents if you find it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Yes this time it appears to be a crash. The message that I posted below 
is the only message that I can see on the console. This is the last 
message before crashing.

- SPS

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 9:17 am
Subject: RE: Tomcat Hangs

> 
> Hi,
> You said it's hung, not crashed, but this is an internal crash.  
> It's a
> bit beyond not responding ;)
> 
> Due cose: update your JDK if you can, as 1.4.2 is far more stable and
> performant than 1.3.  And make sure you have all the Windows Update
> patches installed on the machine, as this error is usually due to a
> miscommunication between the JDK and the OS.
> 
> Was there a stack trace that you cut off in the message below?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
> >Sent: Friday, March 26, 2004 9:15 AM
> >To: Tomcat Users List
> >Subject: Re: Tomcat Hangs
> >
> >Just now Tomcat stopped responding. While stopping the console 
> I've got
> >the following message:
> >
> >---
> > #
> ># HotSpot Virtual Machine Error, Internal Error
> ># Please report this error at
> ># http://java.sun.com/cgi-bin/bugreport.cgi
> >#
> ># Error ID: 43492F424A454354264143544F52590E435050010E
> >#
> ># Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
> >---
> >
> >We're using JDK version 1.3.1_05.
> >
> >Any thoughts?
> >
> >- SPS
> >
> >- Original Message -
> >From: "Surya Suravarapu" <[EMAIL PROTECTED]>
> >Date: Thursday, March 25, 2004 7:50 pm
> >Subject: Tomcat Hangs
> >
> >> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.
> >> We're
> >> using AJP13 connector. The machine that we're using has got over
> >> 2GB of
> >> Memory and good processor speed. Tomcat has been allocated 1 GB of
> >> max
> >> memory.
> >>
> >> The issue is: For every two hours or so Tomcat hangs. That means,
> >> Tomcat don't crash but simply don't accept any more connections.
> >> While
> >> using Tomcat with Apache we're getting "500 Internal Server
> >> Error". We
> >> are constantly restarting server to make it work. There is no good
> >> information in the logs that could lead us to debug this issue.
> >>
> >> I have tried several things. Taken out Apache and Connectors from
> >> the
> >> equation by running Tomcat as standalone. This time Tomcat we
> >> get "server not found error - Page cannot be displayed" 
> message. I
> >> have
> >> also increased the maxProcessors of the connector to 300 instead
> >> of the
> >> default 75.
> >>
> >> Interesting thing is -- when Tomcat hangs the memory usage never
> >> reaches even half of the max memory (1 GB) allocated to Tomcat,
> >> and the
> >> number of threads that we see is also always less than half of
> >> maxProcessors value (300) set.
> >>
> >> If anybody encountered this kind of issue or if you have any
> >> thoughts
> >> please respond.
> >>
> >> Thanks in advance!
> >>
> >> - SPS
> >>
> >>
> >>
> >> 
> ---
> >> --
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: tomcat-user-
> [EMAIL PROTECTED]>>
> >>
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietary and/or privileged.  This e-mail is intended only for 
> the individual(s) to whom it is addressed, and may not be saved, 
> copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail 
> from your computer system and notify the sender.  Thank you.
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hangs

2004-03-26 Thread Shapira, Yoav

Hi,
You said it's hung, not crashed, but this is an internal crash.  It's a
bit beyond not responding ;)

Due cose: update your JDK if you can, as 1.4.2 is far more stable and
performant than 1.3.  And make sure you have all the Windows Update
patches installed on the machine, as this error is usually due to a
miscommunication between the JDK and the OS.

Was there a stack trace that you cut off in the message below?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 26, 2004 9:15 AM
>To: Tomcat Users List
>Subject: Re: Tomcat Hangs
>
>Just now Tomcat stopped responding. While stopping the console I've got
>the following message:
>
>---
> #
># HotSpot Virtual Machine Error, Internal Error
># Please report this error at
># http://java.sun.com/cgi-bin/bugreport.cgi
>#
># Error ID: 43492F424A454354264143544F52590E435050010E
>#
># Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
>---
>
>We're using JDK version 1.3.1_05.
>
>Any thoughts?
>
>- SPS
>
>- Original Message -
>From: "Surya Suravarapu" <[EMAIL PROTECTED]>
>Date: Thursday, March 25, 2004 7:50 pm
>Subject: Tomcat Hangs
>
>> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.
>> We're
>> using AJP13 connector. The machine that we're using has got over
>> 2GB of
>> Memory and good processor speed. Tomcat has been allocated 1 GB of
>> max
>> memory.
>>
>> The issue is: For every two hours or so Tomcat hangs. That means,
>> Tomcat don't crash but simply don't accept any more connections.
>> While
>> using Tomcat with Apache we're getting "500 Internal Server
>> Error". We
>> are constantly restarting server to make it work. There is no good
>> information in the logs that could lead us to debug this issue.
>>
>> I have tried several things. Taken out Apache and Connectors from
>> the
>> equation by running Tomcat as standalone. This time Tomcat we
>> get "server not found error - Page cannot be displayed" message. I
>> have
>> also increased the maxProcessors of the connector to 300 instead
>> of the
>> default 75.
>>
>> Interesting thing is -- when Tomcat hangs the memory usage never
>> reaches even half of the max memory (1 GB) allocated to Tomcat,
>> and the
>> number of threads that we see is also always less than half of
>> maxProcessors value (300) set.
>>
>> If anybody encountered this kind of issue or if you have any
>> thoughts
>> please respond.
>>
>> Thanks in advance!
>>
>> - SPS
>>
>>
>>
>> ---
>> --
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Just now Tomcat stopped responding. While stopping the console I've got 
the following message:

---
 #
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 43492F424A454354264143544F52590E435050010E
#
# Problematic Thread: prio=5 tid=0x8739b8 nid=0x978 runnable
---

We're using JDK version 1.3.1_05.

Any thoughts?

- SPS

- Original Message -
From: "Surya Suravarapu" <[EMAIL PROTECTED]>
Date: Thursday, March 25, 2004 7:50 pm
Subject: Tomcat Hangs

> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> using AJP13 connector. The machine that we're using has got over 
> 2GB of 
> Memory and good processor speed. Tomcat has been allocated 1 GB of 
> max 
> memory.
> 
> The issue is: For every two hours or so Tomcat hangs. That means, 
> Tomcat don't crash but simply don't accept any more connections. 
> While 
> using Tomcat with Apache we're getting "500 Internal Server 
> Error". We 
> are constantly restarting server to make it work. There is no good 
> information in the logs that could lead us to debug this issue.
> 
> I have tried several things. Taken out Apache and Connectors from 
> the 
> equation by running Tomcat as standalone. This time Tomcat we 
> get "server not found error - Page cannot be displayed" message. I 
> have 
> also increased the maxProcessors of the connector to 300 instead 
> of the 
> default 75.
> 
> Interesting thing is -- when Tomcat hangs the memory usage never 
> reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the 
> number of threads that we see is also always less than half of 
> maxProcessors value (300) set. 
> 
> If anybody encountered this kind of issue or if you have any 
> thoughts 
> please respond.
> 
> Thanks in advance!
> 
> - SPS
> 
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Pavan,

This machine is exclusively used for Apache and Tomcat. There are no 
other major services running on it. No other services are taking up 
more memory. When Tomcat hangs, there is still a lot of physical memory 
available on the machine.

There are no scheduled tasks running on the machine.

- SPS
Content-Type: multipart/alternative; boundary="=_alternative 00443A1185256E63_="


--=_alternative 00443A1185256E63_=
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="ISO-8859-1"

also pls check if u have schedukled any tasks in wndows like virus scanner =

etc etc..they
consume a lot of memory and effect the performance...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



[EMAIL PROTECTED]
03/26/2004 07:20 AM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
"Tomcat Users List" <[EMAIL PROTECTED]>
cc

Subject
Re: Tomcat Hangs







when u r saying that tomcat is not consuming even half of the total=20
memory,=20
there should be something else that is creating  the problem..may be iam=20
wrong but this is=20
what i feel..pls stop all other services on ur windows machine and see if=20
tomcat=20
is the sole culprit=20


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com=20


"Surya Suravarapu" <[EMAIL PROTECTED]>=20
03/26/2004 07:15 AM=20

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
"Tomcat Users List" <[EMAIL PROTECTED]>=20
cc

Subject
Re: Tomcat Hangs








Can you please elaborate what you meant by "kill -QUIT". Tomcat is=20
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonn=EDn <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

> kill -QUIT
> to see what the threads are doing...
>=20
> Surya Suravarapu wrote:
>=20
> >We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.=20
> We're=20
> >using AJP13 connector. The machine that we're using has got over=20
> 2GB of=20
> >Memory and good processor speed. Tomcat has been allocated 1 GB=20
> of max=20
> >memory.
> >
> >The issue is: For every two hours or so Tomcat hangs. That means,=20
> >Tomcat don't crash but simply don't accept any more connections.=20
> While=20
> >using Tomcat with Apache we're getting "500 Internal Server=20
> Error". We=20
> >are constantly restarting server to make it work. There is no=20
> good=20
> >information in the logs that could lead us to debug this issue.
> >
> >I have tried several things. Taken out Apache and Connectors from=20
> the=20
> >equation by running Tomcat as standalone. This time Tomcat we=20
> >get "server not found error - Page cannot be displayed" message.=20
> I have=20
> >also increased the maxProcessors of the connector to 300 instead=20
> of the=20
> >default 75.
> >
> >Interesting thing is -- when Tomcat hangs the memory usage never=20
> >reaches even half of the max memory (1 GB) allocated to Tomcat,=20
> and the=20
> >number of threads that we see is also always less than half of=20
> >maxProcessors value (300) set.=20
> >
> >If anybody encountered this kind of issue or if you have any=20
> thoughts=20
> >please respond.
> >
> >Thanks in advance!
> >
> >- SPS
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >=20
> >
>=20
>=20
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>=20
>=20



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NTBAB2=20
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NTBABE=20

--=_alternative 00443A1185256E63_=
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="ISO-8859-1"


also pls check if u have schedukled
any tasks in wndows like virus scanner etc etc..they
consume a lot of memory and effect t=
he
performance...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





[EMAIL PROTECTED] <=
/font>
03/26/2004 07:20 AM




Please respond to
"Tomcat Users 

Re: Tomcat Hangs

2004-03-26 Thread pavan . k

also pls check if u have schedukled
any tasks in wndows like virus scanner etc etc..they
consume a lot of memory and effect the
performance...

Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





[EMAIL PROTECTED] 
03/26/2004 07:20 AM




Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>





To
"Tomcat Users List"
<[EMAIL PROTECTED]>


cc



Subject
Re: Tomcat Hangs









when u r saying that tomcat is not consuming even half of the total memory,

there should be something else that is creating  the problem..may
be iam wrong but this is 
what i feel..pls stop all other services on ur windows machine and see
if tomcat 
is the sole culprit 


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 




"Surya Suravarapu"
<[EMAIL PROTECTED]> 
03/26/2004 07:15 AM





Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>





To
"Tomcat Users
List" <[EMAIL PROTECTED]> 


cc



Subject
Re: Tomcat Hangs










Can you please elaborate what you meant by "kill -QUIT". Tomcat
is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

> kill -QUIT
> to see what the threads are doing...
> 
> Surya Suravarapu wrote:
> 
> >We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.

> We're 
> >using AJP13 connector. The machine that we're using has got over

> 2GB of 
> >Memory and good processor speed. Tomcat has been allocated 1 GB

> of max 
> >memory.
> >
> >The issue is: For every two hours or so Tomcat hangs. That means,

> >Tomcat don't crash but simply don't accept any more connections.

> While 
> >using Tomcat with Apache we're getting "500 Internal Server

> Error". We 
> >are constantly restarting server to make it work. There is no

> good 
> >information in the logs that could lead us to debug this issue.
> >
> >I have tried several things. Taken out Apache and Connectors from

> the 
> >equation by running Tomcat as standalone. This time Tomcat we

> >get "server not found error - Page cannot be displayed"
message. 
> I have 
> >also increased the maxProcessors of the connector to 300 instead

> of the 
> >default 75.
> >
> >Interesting thing is -- when Tomcat hangs the memory usage never

> >reaches even half of the max memory (1 GB) allocated to Tomcat,

> and the 
> >number of threads that we see is also always less than half of

> >maxProcessors value (300) set. 
> >
> >If anybody encountered this kind of issue or if you have any 
> thoughts 
> >please respond.
> >
> >Thanks in advance!
> >
> >- SPS
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NTBAB2     -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ForwardSourceID:NTBABE
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions

Re: Tomcat Hangs

2004-03-26 Thread pavan . k

when u r saying that tomcat is not consuming
even half of the total memory,
there should be something else that
is creating  the problem..may be iam wrong but this is 
what i feel..pls stop all other services
on ur windows machine and see if tomcat
is the sole culprit


Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





"Surya Suravarapu"
<[EMAIL PROTECTED]> 
03/26/2004 07:15 AM




Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>





To
"Tomcat Users List"
<[EMAIL PROTECTED]>


cc



Subject
Re: Tomcat Hangs








Can you please elaborate what you meant by "kill
-QUIT". Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

> kill -QUIT
> to see what the threads are doing...
> 
> Surya Suravarapu wrote:
> 
> >We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x.

> We're 
> >using AJP13 connector. The machine that we're using has got over

> 2GB of 
> >Memory and good processor speed. Tomcat has been allocated 1 GB

> of max 
> >memory.
> >
> >The issue is: For every two hours or so Tomcat hangs. That means,

> >Tomcat don't crash but simply don't accept any more connections.

> While 
> >using Tomcat with Apache we're getting "500 Internal Server

> Error". We 
> >are constantly restarting server to make it work. There is no

> good 
> >information in the logs that could lead us to debug this issue.
> >
> >I have tried several things. Taken out Apache and Connectors from

> the 
> >equation by running Tomcat as standalone. This time Tomcat we

> >get "server not found error - Page cannot be displayed"
message. 
> I have 
> >also increased the maxProcessors of the connector to 300 instead

> of the 
> >default 75.
> >
> >Interesting thing is -- when Tomcat hangs the memory usage never

> >reaches even half of the max memory (1 GB) allocated to Tomcat,

> and the 
> >number of threads that we see is also always less than half of

> >maxProcessors value (300) set. 
> >
> >If anybody encountered this kind of issue or if you have any 
> thoughts 
> >please respond.
> >
> >Thanks in advance!
> >
> >- SPS
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NTBAB2
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat Hangs

2004-03-26 Thread Ryan Lissack
You can achieve the same thing on Windows by typing 'Ctrl-Break' at the
console window

-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 12:15
To: Tomcat Users List
Subject: Re: Tomcat Hangs


Can you please elaborate what you meant by "kill -QUIT". Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

> kill -QUIT
> to see what the threads are doing...
> 
> Surya Suravarapu wrote:
> 
> >We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> >using AJP13 connector. The machine that we're using has got over 
> 2GB of 
> >Memory and good processor speed. Tomcat has been allocated 1 GB 
> of max 
> >memory.
> >
> >The issue is: For every two hours or so Tomcat hangs. That means, 
> >Tomcat don't crash but simply don't accept any more connections. 
> While 
> >using Tomcat with Apache we're getting "500 Internal Server 
> Error". We 
> >are constantly restarting server to make it work. There is no 
> good 
> >information in the logs that could lead us to debug this issue.
> >
> >I have tried several things. Taken out Apache and Connectors from 
> the 
> >equation by running Tomcat as standalone. This time Tomcat we 
> >get "server not found error - Page cannot be displayed" message. 
> I have 
> >also increased the maxProcessors of the connector to 300 instead 
> of the 
> >default 75.
> >
> >Interesting thing is -- when Tomcat hangs the memory usage never 
> >reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the 
> >number of threads that we see is also always less than half of 
> >maxProcessors value (300) set. 
> >
> >If anybody encountered this kind of issue or if you have any 
> thoughts 
> >please respond.
> >
> >Thanks in advance!
> >
> >- SPS
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Can you please elaborate what you meant by "kill -QUIT". Tomcat is 
running on a windows 2000 machine.

- SPS

- Original Message -
From: Antonio Fiol Bonnín <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 1:55 am
Subject: Re: Tomcat Hangs

> kill -QUIT
> to see what the threads are doing...
> 
> Surya Suravarapu wrote:
> 
> >We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> >using AJP13 connector. The machine that we're using has got over 
> 2GB of 
> >Memory and good processor speed. Tomcat has been allocated 1 GB 
> of max 
> >memory.
> >
> >The issue is: For every two hours or so Tomcat hangs. That means, 
> >Tomcat don't crash but simply don't accept any more connections. 
> While 
> >using Tomcat with Apache we're getting "500 Internal Server 
> Error". We 
> >are constantly restarting server to make it work. There is no 
> good 
> >information in the logs that could lead us to debug this issue.
> >
> >I have tried several things. Taken out Apache and Connectors from 
> the 
> >equation by running Tomcat as standalone. This time Tomcat we 
> >get "server not found error - Page cannot be displayed" message. 
> I have 
> >also increased the maxProcessors of the connector to 300 instead 
> of the 
> >default 75.
> >
> >Interesting thing is -- when Tomcat hangs the memory usage never 
> >reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the 
> >number of threads that we see is also always less than half of 
> >maxProcessors value (300) set. 
> >
> >If anybody encountered this kind of issue or if you have any 
> thoughts 
> >please respond.
> >
> >Thanks in advance!
> >
> >- SPS
> >
> >
> >
> >--
> ---
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: Tomcat Hangs

2004-03-26 Thread Surya Suravarapu
Tomcat is running on Windows 2000 machine.

- SPS

- Original Message -
From: Ryan Lissack <[EMAIL PROTECTED]>
Date: Friday, March 26, 2004 3:49 am
Subject: RE: Tomcat Hangs

> What OS is Tomcat running on ?
> 
> -Original Message-
> From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
> Sent: 26 March 2004 00:51
> To: [EMAIL PROTECTED]
> Subject: Tomcat Hangs
> 
> 
> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> using AJP13 connector. The machine that we're using has got over 
> 2GB of 
> Memory and good processor speed. Tomcat has been allocated 1 GB of 
> max 
> memory.
> 
> The issue is: For every two hours or so Tomcat hangs. That means, 
> Tomcat don't crash but simply don't accept any more connections. 
> While 
> using Tomcat with Apache we're getting "500 Internal Server 
> Error". We 
> are constantly restarting server to make it work. There is no good 
> information in the logs that could lead us to debug this issue.
> 
> I have tried several things. Taken out Apache and Connectors from 
> the 
> equation by running Tomcat as standalone. This time Tomcat we 
> get "server not found error - Page cannot be displayed" message. I 
> have 
> also increased the maxProcessors of the connector to 300 instead 
> of the 
> default 75.
> 
> Interesting thing is -- when Tomcat hangs the memory usage never 
> reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the 
> number of threads that we see is also always less than half of 
> maxProcessors value (300) set. 
> 
> If anybody encountered this kind of issue or if you have any 
> thoughts 
> please respond.
> 
> Thanks in advance!
> 
> - SPS
> 
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hangs

2004-03-26 Thread Ryan Lissack
What OS is Tomcat running on ?

-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: 26 March 2004 00:51
To: [EMAIL PROTECTED]
Subject: Tomcat Hangs


We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of 
Memory and good processor speed. Tomcat has been allocated 1 GB of max 
memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While 
using Tomcat with Apache we're getting "500 Internal Server Error". We 
are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have 
also increased the maxProcessors of the connector to 300 instead of the 
default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the 
number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Hangs

2004-03-25 Thread Antonio Fiol Bonnín
kill -QUIT
to see what the threads are doing...
Surya Suravarapu wrote:

We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of 
Memory and good processor speed. Tomcat has been allocated 1 GB of max 
memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While 
using Tomcat with Apache we're getting "500 Internal Server Error". We 
are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have 
also increased the maxProcessors of the connector to 300 instead of the 
default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the 
number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Hangs

2004-03-25 Thread Surya Suravarapu
I'd say the activity is moderate. Some 6-10 users would be using our 
web application during that time. The machine is better than a 
development machine but not as good as production one.

Jeff, can you explain more about the -- JVM's "permanent generation".

Thanks.

- SPS

- Original Message -
From: "Jeff Tulley" <[EMAIL PROTECTED]>
Date: Thursday, March 25, 2004 7:59 pm
Subject: Re: Tomcat Hangs

> What kind of activity is going on with this server during those two
> hours?  Heavy, moderate, light load?  Is it a development box or
> production?
> 
> I ask the last question, since some have seen a problelm with repeated
> redeploys of a web application, where the JVM's "permanent generation"
> memory is running out even though the rest of the memory pools are
> nowhere near full.
> 
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
> 
> >>> [EMAIL PROTECTED] 3/25/04 5:50:42 PM >>>
> We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
> We're 
> using AJP13 connector. The machine that we're using has got over 
> 2GB of
> 
> Memory and good processor speed. Tomcat has been allocated 1 GB of max
> 
> memory.
> 
> The issue is: For every two hours or so Tomcat hangs. That means, 
> Tomcat don't crash but simply don't accept any more connections. While
> 
> using Tomcat with Apache we're getting "500 Internal Server 
> Error". We
> 
> are constantly restarting server to make it work. There is no good 
> information in the logs that could lead us to debug this issue.
> 
> I have tried several things. Taken out Apache and Connectors from 
> the 
> equation by running Tomcat as standalone. This time Tomcat we 
> get "server not found error - Page cannot be displayed" message. I 
> have
> also increased the maxProcessors of the connector to 300 instead 
> of the
> 
> default 75.
> 
> Interesting thing is -- when Tomcat hangs the memory usage never 
> reaches even half of the max memory (1 GB) allocated to Tomcat, 
> and the
> 
> number of threads that we see is also always less than half of 
> maxProcessors value (300) set. 
> 
> If anybody encountered this kind of issue or if you have any 
> thoughts 
> please respond.
> 
> Thanks in advance!
> 
> - SPS
> 
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: tomcat-user-
> [EMAIL PROTECTED] 
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Hangs

2004-03-25 Thread Jeff Tulley
What kind of activity is going on with this server during those two
hours?  Heavy, moderate, light load?  Is it a development box or
production?

I ask the last question, since some have seen a problelm with repeated
redeploys of a web application, where the JVM's "permanent generation"
memory is running out even though the rest of the memory pools are
nowhere near full.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 3/25/04 5:50:42 PM >>>
We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of

Memory and good processor speed. Tomcat has been allocated 1 GB of max

memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While

using Tomcat with Apache we're getting "500 Internal Server Error". We

are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have

also increased the maxProcessors of the connector to 300 instead of the

default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the

number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Hangs

2004-03-25 Thread Surya Suravarapu
We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. We're 
using AJP13 connector. The machine that we're using has got over 2GB of 
Memory and good processor speed. Tomcat has been allocated 1 GB of max 
memory.

The issue is: For every two hours or so Tomcat hangs. That means, 
Tomcat don't crash but simply don't accept any more connections. While 
using Tomcat with Apache we're getting "500 Internal Server Error". We 
are constantly restarting server to make it work. There is no good 
information in the logs that could lead us to debug this issue.

I have tried several things. Taken out Apache and Connectors from the 
equation by running Tomcat as standalone. This time Tomcat we 
get "server not found error - Page cannot be displayed" message. I have 
also increased the maxProcessors of the connector to 300 instead of the 
default 75.

Interesting thing is -- when Tomcat hangs the memory usage never 
reaches even half of the max memory (1 GB) allocated to Tomcat, and the 
number of threads that we see is also always less than half of 
maxProcessors value (300) set. 

If anybody encountered this kind of issue or if you have any thoughts 
please respond.

Thanks in advance!

- SPS



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs

2004-02-13 Thread Shapira, Yoav

Howdy,

>No. I've not been able to isolate the bug well enough to reproduce it,
so
>there's nothing to test with. I have only observed the vulnerability in
our
>current production server.  I've since disabled access for the IP range
>that was generating the problematic http requests.

Fair enough ;)  If you have spare time and/or a test a server, consider
trying a later tomcat version such as 4.1.29 or 5.0.18.  You can
probably use JMeter to simulate some/most of the HTTP request headers
from your problematic clients.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs

2004-02-12 Thread Chris Rolfe
on 2/12/04 11:17 AM, Shapira, Yoav wrote:

> Have you tried this with a more recent tomcat version?

No. I've not been able to isolate the bug well enough to reproduce it, so
there's nothing to test with. I have only observed the vulnerability in our
current production server.  I've since disabled access for the IP range that
was generating the problematic http requests.

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs

2004-02-12 Thread Shapira, Yoav

Howdy,
Have you tried this with a more recent tomcat version?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Chris Rolfe [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 12, 2004 2:01 PM
>To: Tomcat
>Subject: Re: Tomcat hangs
>
>Hello,
>
>I posted a query last week about Tomcat 4.0.6 under OS X hanging, but
>haven't seen any response (was: SocketInputStream hanging Tomcat
4.0.6).
>
>Is there anything more I can do ( more information I can provide, for
>example ) to illicit feedback from the list or the developer of the
code
>section?
>
>This appears to be a vulnerability in Tomcat 4.0.6 - 4.1.x.
>
>-
>The problem:
>
>Stage 1: According to the catalina log, SocketInputStream.readHeader is
>throwing ArrayIndexOutOfBounds exceptions at line 487.
>
>Stage 2: Successive throws eventually cause Tomcat to respond to  all
>requests with error 400: bad request.
>
>The original http requests stemmed from one IP range, whose access I've
>since disabled. I'm very concerned that a single user was able to bring
>down
>the server.
>
>Does anyone have a feel for what's happening here?
>
>Chris
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs

2004-02-12 Thread Chris Rolfe
Hello,

I posted a query last week about Tomcat 4.0.6 under OS X hanging, but
haven't seen any response (was: SocketInputStream hanging Tomcat 4.0.6).

Is there anything more I can do ( more information I can provide, for
example ) to illicit feedback from the list or the developer of the code
section? 

This appears to be a vulnerability in Tomcat 4.0.6 - 4.1.x.

-
The problem: 

Stage 1: According to the catalina log, SocketInputStream.readHeader is
throwing ArrayIndexOutOfBounds exceptions at line 487.

Stage 2: Successive throws eventually cause Tomcat to respond to  all
requests with error 400: bad request.

The original http requests stemmed from one IP range, whose access I've
since disabled. I'm very concerned that a single user was able to bring down
the server. 

Does anyone have a feel for what's happening here?

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs

2004-01-07 Thread Terry Orechia
If you are running Redhat version 9.0, then it might be a problem  with
NPTL( stands for Native POSIX Threading Library and it is a new form of
threading introduced in RedHat with version 9.0
 in RedHat 9).

 Try setting the following environment variable:
 LD_ASSUME_KERNEL=2.4.1

  There is a complete description with links to other information in a
previous thread with subject was "Tomcat jitters then hangs" - search the
list archives for further information.

--Terry

- Original Message - 
From: "Mindaugas Genutis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 07, 2004 3:49 AM
Subject: Tomcat hangs


>
> Hello,
>
> Our Tomcat hangs once in a few days. When the load is larger, sometimes it
> hangs even a few times a day.
>
> Our system configuration is:
>
> Tomcat 4.1.24
> JVM 1.4.2
> Linux Redhat 2 GB RAM
>
> We have deployed a big JSP application on our Tomcat. Mostly it does
> database (MySQL) / XML processing. When Tomcat hangs, we can't stop it
> with the stop script. We need to 'kill' or even 'kill - 9' it.
>
> Can someone please suggest where should I start the research. Look for
> bugs in the JSPs, configure memory usage etc?
>
> Thanks,
>
> -- 
> Kaunas Regional Distance Education Center
> Programmer
> Phone: +370 674 05232
> WWW: http://distance.ktu.lt
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs

2004-01-07 Thread Shapira, Yoav

Howdy,
Look at your logs for errors, including OutOfMemoryErrors.  Determine
what is the maximum expected load your application needs to handle, and
then determine the memory your application requires in order to handle
that load with acceptable response times.  Create test scripts to stress
test your application up to the maximum expected load.  Profile and tune
your application and your server until you can handle the load in a
satisfactory manner.

If this seems like a generic answer, that's because it is, as is your
question.  This has been discussed many many times on this list in the
past: you can search the archives for more details.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 07, 2004 3:49 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat hangs
>
>
>Hello,
>
>Our Tomcat hangs once in a few days. When the load is larger, sometimes
it
>hangs even a few times a day.
>
>Our system configuration is:
>
>Tomcat 4.1.24
>JVM 1.4.2
>Linux Redhat 2 GB RAM
>
>We have deployed a big JSP application on our Tomcat. Mostly it does
>database (MySQL) / XML processing. When Tomcat hangs, we can't stop it
>with the stop script. We need to 'kill' or even 'kill - 9' it.
>
>Can someone please suggest where should I start the research. Look for
>bugs in the JSPs, configure memory usage etc?
>
>Thanks,
>
>--
>Kaunas Regional Distance Education Center
>Programmer
>Phone: +370 674 05232
>WWW: http://distance.ktu.lt
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs

2004-01-07 Thread Ryan Lissack
Hi,

Which version of RedHat are you running?

Ryan

-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: 07 January 2004 08:49
To: [EMAIL PROTECTED]
Subject: Tomcat hangs



Hello,

Our Tomcat hangs once in a few days. When the load is larger, sometimes it 
hangs even a few times a day.

Our system configuration is:

Tomcat 4.1.24
JVM 1.4.2
Linux Redhat 2 GB RAM

We have deployed a big JSP application on our Tomcat. Mostly it does 
database (MySQL) / XML processing. When Tomcat hangs, we can't stop it 
with the stop script. We need to 'kill' or even 'kill - 9' it.

Can someone please suggest where should I start the research. Look for 
bugs in the JSPs, configure memory usage etc?

Thanks,

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs

2004-01-07 Thread Mindaugas Genutis

Hello,

Our Tomcat hangs once in a few days. When the load is larger, sometimes it 
hangs even a few times a day.

Our system configuration is:

Tomcat 4.1.24
JVM 1.4.2
Linux Redhat 2 GB RAM

We have deployed a big JSP application on our Tomcat. Mostly it does 
database (MySQL) / XML processing. When Tomcat hangs, we can't stop it 
with the stop script. We need to 'kill' or even 'kill - 9' it.

Can someone please suggest where should I start the research. Look for 
bugs in the JSPs, configure memory usage etc?

Thanks,

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs after a few days!

2003-10-22 Thread Shapira, Yoav

Howdy,

>> Look at the source code to see where the message comes from.  As the
>> [INFO] indicates, it's not an error, just an informational message.  You
>> can configure commons-logging for tomcat so that these messages do not
>> appear in your log.
>>
>> Yoav Shapira
>>
>
>Hi Yoav,
>
>thanks for your help!
>
>What I do not understand: -> "Look at the source code to see where the
>message comes from".
>
>I think the [INFO]-lines are produced by tomcat and not by the application.
>
>Isn´t that correct?

Yup, that's correct, and I meant the tomcat source code not your app's.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-22 Thread Volker
"Shapira, Yoav" schrieb:

> Howdy,
>
> >catalina.out grows up by adding "[INFO] ChannelSocket - -server has been
> >restarted or reset this connection"
> >
> >Maybe someone "at least" ;-) can explain under which circumstances such an
> >error message is produced?
>
> Look at the source code to see where the message comes from.  As the
> [INFO] indicates, it's not an error, just an informational message.  You
> can configure commons-logging for tomcat so that these messages do not
> appear in your log.
>
> Yoav Shapira
>

Hi Yoav,

thanks for your help!

What I do not understand: -> "Look at the source code to see where the message comes 
from".

I think the [INFO]-lines are produced by tomcat and not by the application.

Isn´t that correct?

Best regards

Volker


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs after a few days!

2003-10-14 Thread Shapira, Yoav

Howdy,

>"Shapira, Yoav" schrieb:

Cool verb ;)

>maybe following hint could be important for you: Nearly ALL persons
that
>make use of FreeBSD do NOT use the - in your words - "normal"
configuration
>or "normal" jvms because you get trouble with it under FreeBSD.

And whose problem is that? ;)  Certainly not tomcat's...

>> I suggest you ask "John from Volano" what's wrong, or alternatively
at
>least try switching to a more common JVM and
>> isolate the problem and benefit from advice such as that Senor Rees
has
>been trying to give you...
>
>Like mentioned before the -QUIT signal does not produce a dump in my
case,
>so what should I do?

Use a profiler with thread status output (such as OptimizeIt's
ThreadDebugger) to try and determine what goes wrong.  It is precisely
for these types of scenarios that the thread dump feature was added to
the Sun JVM, and similar (more advanced, actually) features are in the
J:Rockit JVM.  If you got yourself into a situation where you can't use
these JVMs or debugging features, it's more work for you unfortunately.

>catalina.out grows up by adding "[INFO] ChannelSocket - -server has
been
>restarted or reset this connection"
>
>Maybe someone "at least" ;-) can explain under which circumstances such
an
>error message is produced?

Look at the source code to see where the message comes from.  As the
[INFO] indicates, it's not an error, just an informational message.  You
can configure commons-logging for tomcat so that these messages do not
appear in your log.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-11 Thread Volker
"Shapira, Yoav" schrieb:

> Howdy,
> Threads like these are exasperating ;)
>
> It almost definitely is a JVM/threading problem.  You've already gone
> into a far less common configuration than most on this list by using
> Blackdown and "green mode."  If you do this, you risk not being able to
> get much support.  I, and I imagine many others, read your original
> question a few days ago, said in my head "Blackdown -- don't know/don't
> care" and deleted it.

Hi,

maybe following hint could be important for you: Nearly ALL persons that make use of 
FreeBSD do NOT use the - in your words - "normal" configuration or "normal" jvms 
because you get trouble with it under FreeBSD.

Green mode has a lot of advantages over threaded mode under some circumstances - 
especially when you provide a chat server with a lot of simultaneous connections!


> I suggest you ask "John from Volano" what's wrong, or alternatively at least try 
> switching to a more common JVM and
> isolate the problem and benefit from advice such as that Senor Rees has been trying 
> to give you...

Like mentioned before the -QUIT signal does not produce a dump in my case, so what 
should I do?

catalina.out grows up by adding "[INFO] ChannelSocket - -server has been restarted or 
reset this connection"

Maybe someone "at least" ;-) can explain under which circumstances such an error 
message is produced?


Thx a lot and regards

Volker


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat hangs after a few days!

2003-10-08 Thread Shapira, Yoav

Howdy,
Threads like these are exasperating ;)

It almost definitely is a JVM/threading problem.  You've already gone
into a far less common configuration than most on this list by using
Blackdown and "green mode."  If you do this, you risk not being able to
get much support.  I, and I imagine many others, read your original
question a few days ago, said in my head "Blackdown -- don't know/don't
care" and deleted it.  I suggest you ask "John from Volano" what's
wrong, or alternatively at least try switching to a more common JVM and
isolate the problem and benefit from advice such as that Senor Rees has
been trying to give you...

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Rees [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 08, 2003 3:51 AM
>To: Tomcat Users List
>Subject: Re: Tomcat hangs after a few days!
>
>On Wed, October 8, 2003 1at 2:07 am, Volker sent the following
>> David Rees schrieb:
>>> On Tue, October 7, 2003 1at 1:59 am, Volker sent the following
>>>> Following problem can be recognized even if the tomcat process is
>>>> not in sbwait mode:
>>>>
>>>> 1) Sending a -QUIT signal to the tomcat process does not stop the
>>>> process.
>>>
>>> A -QUIT will not shut down Tomcat, but cause the JVM to dump a
>>> stack trace to stdout of all threads. This will be useful when the
>>> process hangs up. If the process is not responding to the -QUIT
>>> command, the JVM has hung up or you have a lot of threads stuck in
>>> a tight loop!
>>
>> I run the jvm in green mode (recommended by John from Volano for
>> Blackdown Java under FreeBSD!). So the problem should not derive from
>> too many threads!
>
>You can suffer from scheduler starvation if you get too many threads
>running in a tight loop!  (I know, it's happenned to me with a green
JVM!)
> Symptoms will be 100% CPU, and the JVM will not respond except to the
>kill signal.
>
>> Sending the QUIT-signal does not show any result because stdout is
>> the terminal and that one does not print out anything when I send a
>> -QUIT. It is important to emphasize that the process does not show
>> any reaction related to a -QUIT even when tomcat is running
>> correctly. My original problem is that tomcat hangs up after a while
>> (in that case nothing can be done with signals etc.).
>>
>> But what I wanted to explain in my last posting: Even when tomcat is
>> running correctly (handling the servlet requests) you cannot stop it
>> with shutdown.sh or -QUIT. Shutdown.sh only makes the CPU% increase
>> over 90% and nothing does work anymore. But the tomcat process still
>> is in memory. Only a kill -9 helps.
>
>It's been a while since I've used Blackdown's JVM, but if we can't get
a
>stack trace from it when Tomcat is hung up (looks like it's easy for
you
>to reproduce by simply trying to shutdown), it will be difficult to
figure
>out what's going on.
>
>> Like mentioned above: -QUIT does NOT produce any stack dump on the
>> stdout!
>
>On all Sun JVMs (IBM, too?), sending the JVM the QUIT signal will
result
>in a stack trace like the one described here:
>
>http://developer.java.sun.com/developer/technicalArticles/Programming/S
tack
>trace/
>
>It is the easiest way for us to remote debug an issue like this.
>
>BTW, does this hang occur with a stock tomcat with only the default
>webapps running (IE, no changes to the shipped configuration?)
>
>-Dave
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-08 Thread David Rees
On Wed, October 8, 2003 1at 2:07 am, Volker sent the following
> David Rees schrieb:
>> On Tue, October 7, 2003 1at 1:59 am, Volker sent the following
>>> Following problem can be recognized even if the tomcat process is
>>> not in sbwait mode:
>>>
>>> 1) Sending a -QUIT signal to the tomcat process does not stop the
>>> process.
>>
>> A -QUIT will not shut down Tomcat, but cause the JVM to dump a
>> stack trace to stdout of all threads. This will be useful when the
>> process hangs up. If the process is not responding to the -QUIT
>> command, the JVM has hung up or you have a lot of threads stuck in
>> a tight loop!
>
> I run the jvm in green mode (recommended by John from Volano for
> Blackdown Java under FreeBSD!). So the problem should not derive from
> too many threads!

You can suffer from scheduler starvation if you get too many threads
running in a tight loop!  (I know, it's happenned to me with a green JVM!)
 Symptoms will be 100% CPU, and the JVM will not respond except to the
kill signal.

> Sending the QUIT-signal does not show any result because stdout is
> the terminal and that one does not print out anything when I send a
> -QUIT. It is important to emphasize that the process does not show
> any reaction related to a -QUIT even when tomcat is running
> correctly. My original problem is that tomcat hangs up after a while
> (in that case nothing can be done with signals etc.).
>
> But what I wanted to explain in my last posting: Even when tomcat is
> running correctly (handling the servlet requests) you cannot stop it
> with shutdown.sh or -QUIT. Shutdown.sh only makes the CPU% increase
> over 90% and nothing does work anymore. But the tomcat process still
> is in memory. Only a kill -9 helps.

It's been a while since I've used Blackdown's JVM, but if we can't get a
stack trace from it when Tomcat is hung up (looks like it's easy for you
to reproduce by simply trying to shutdown), it will be difficult to figure
out what's going on.

> Like mentioned above: -QUIT does NOT produce any stack dump on the
> stdout!

On all Sun JVMs (IBM, too?), sending the JVM the QUIT signal will result
in a stack trace like the one described here:

http://developer.java.sun.com/developer/technicalArticles/Programming/Stacktrace/

It is the easiest way for us to remote debug an issue like this.

BTW, does this hang occur with a stock tomcat with only the default
webapps running (IE, no changes to the shipped configuration?)

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-08 Thread Volker
David Rees schrieb:

> On Tue, October 7, 2003 1at 1:59 am, Volker sent the following
> > Following problem can be recognized even if the tomcat process is not in
> > sbwait mode:
> >
> > 1) Sending a -QUIT signal to the tomcat process does not stop the process.
>
> A -QUIT will not shut down Tomcat, but cause the JVM to dump a stack trace
> to stdout of all threads.  This will be useful when the process hangs up.
> If the process is not responding to the -QUIT command, the JVM has hung up or
> you have a lot of threads stuck in a tight loop!

Hi Dave,

I run the jvm in green mode (recommended by John from Volano for Blackdown Java
under FreeBSD!).
So the problem should not derive from too many threads!

Sending the QUIT-signal does not show any result because stdout is the terminal
and that one does not print out anything when I send a -QUIT.
It is important to emphasize that the process does not show any reaction related
to a -QUIT even when tomcat is running correctly.
My original problem is that tomcat hangs up after a while (in that case nothing
can be done with signals etc.).

But what I wanted to explain in my last posting: Even when tomcat is running
correctly (handling the servlet requests) you cannot stop it with shutdown.sh or
-QUIT. Shutdown.sh only makes the CPU% increase over 90% and nothing does work
anymore. But the tomcat process still is in memory. Only a kill -9 helps.

>
> > 2) Using shutdown.sh and -QUIT show up the same result: tomcat process
> > still stays in memory but suddenly the CPU value increases about over 90%.
> >
> > Only a kill -9 stops the process!
> >
> > With tomcat 3.x I did not have such a problem and I could shutdown tomcat
> > without any problems.
>
> Without knowing if and where Tomcat is hung up by reviewing the stack
> dump, we won't be able to get much further.

Like mentioned above: -QUIT does NOT produce any stack dump on the stdout!

Thanks

Volker

>
>
> -Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-07 Thread David Rees
On Tue, October 7, 2003 1at 1:59 am, Volker sent the following
> Following problem can be recognized even if the tomcat process is not in
> sbwait mode:
>
> 1) Sending a -QUIT signal to the tomcat process does not stop the process.

A -QUIT will not shut down Tomcat, but cause the JVM to dump a stack trace
to stdout of all threads.  This will be useful when the process hangs up. 
If the process is not responding to the -QUIT command, the JVM has hung up
or you have a lot of threads stuck in a tight loop!

> 2) Using shutdown.sh and -QUIT show up the same result: tomcat process
> still
> stays in memory but suddenly the CPU value increases about over 90%.
>
> Only a kill -9 stops the process!
>
> With tomcat 3.x I did not have such a problem and I could shutdown tomcat
> without any problems.

Without knowing if and where Tomcat is hung up by reviewing the stack
dump, we won't be able to get much further.

-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-07 Thread Volker
David Rees schrieb:

> Can you send the Tomcat process a -QUIT signal so we can see what the
> state of the JVM is?
>
> It sounds like a JVM bug, and Java on FreeBSD is less than heavily used...
>  Try a different JVM if you can.

Hi David,

I use the most stable jvm I know for FreeBSD: Blackdown Java under Linux
Emulation Mode.

Following problem can be recognized even if the tomcat process is not in
sbwait mode:

1) Sending a -QUIT signal to the tomcat process does not stop the process.
2) Using shutdown.sh and -QUIT show up the same result: tomcat process still
stays in memory but suddenly the CPU value increases about over 90%.

Only a kill -9 stops the process!

With tomcat 3.x I did not have such a problem and I could shutdown tomcat
without any problems.

Any idea?


Thanks and regards

Volker


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after a few days!

2003-10-06 Thread David Rees
Can you send the Tomcat process a -QUIT signal so we can see what the
state of the JVM is?

It sounds like a JVM bug, and Java on FreeBSD is less than heavily used...
 Try a different JVM if you can.

-Dave

On Mon, October 6, 2003 at 6:37 am, Volker sent the following
> Hi,
>
> I already posted following question on 26th Sep but the replies did not
> refer to my problem but another one.
>
> Maybe someone has a helpful hint for me!?
>
> Thx
> Volker
> -
>
> I have a problem running Jakarta Tomcat 4.1 port under FreeBSD 4.4 with
> Blackdown Java 1.3.1 with mod_jk 1.2:


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs after a few days!

2003-10-06 Thread Volker
Hi,

I already posted following question on 26th Sep but the replies did not
refer to my problem but another one.

Maybe someone has a helpful hint for me!?

Thx
Volker
-

I have a problem running Jakarta Tomcat 4.1 port under FreeBSD 4.4 with
Blackdown Java 1.3.1 with mod_jk 1.2:

After startup.sh /logs/catalina.out shows up following lines:

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
HTTP Tunnel connected to the DigiChat server localhost
HttpTunnelingServlet connected to the groopz server
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=7/21
config=/usr/local/jakarta-tomcat4.1/conf/jk2.properties
[INFO] ChannelSocket - -server has been restarted or reset this
connection
[INFO] ChannelSocket - -server has been restarted or reset this
connection
[INFO] ChannelSocket - -server has been restarted or reset this
connection
[INFO] ChannelSocket - -server has been restarted or reset this
connection

The first days everythings runs correctly. The example servlets can be
executed via port 80 by help of mod_jk.

After a few days suddenly the servlets cannot be executed anymore.
Having a look on the Tomcat process with "top" prints out state
"sbwait".
That state does not change anymore AND I cannot shutdown the tomcat
process by help of shutdown.sh - so I have to kill the process with kill

-9.

"catalina.out" meanwhile has grown up to nearly 1MB because a lot of
lines (content: [INFO] ChannelSocket - -server has been restarted or
reset this connection ) have been inserted.

Killing and restarting Tomcat manually and restarting apache afterwards
for activating mod_jk again results in making all work again.

Does anyone have an idea of what is happening here?


Thanks and regards

Volker







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs after some time

2003-09-01 Thread Eric J. Pinnell
> We are running on the following platform:
> Windows NT 4.0 SP6a
> Tomcat 3.3.1a (The problem originally occurred on 3.2.4, we upgraded to
> 3.3.1a hoping to solve the problem)
> Sun Java SDK 1.3.1_08


Hi,

I have heard of Tomcat hanging in some situations up to 4.1.24.  However
looking at the above list you are running very old stuff.  You might want
to upgrade to a new JDK and to Tomcat 4.1.27.  I'm pretty sure people are
going to tell you to upgrade those before you do anything else.  (since
they are old...  it would be one thing if you are on 4.1.24 but 3.x is
very old)

-e

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs after some time

2003-09-01 Thread Van Der Veken Jan
Hello all,

Since a month or two we are experiencing the following problem with our
Tomcat  setup:

On average every 2 or 3 days (sometimes it's longer, sometimes it's
twice a day) Tomcat seems to hang. Clients can't connect to our
application anymore through port 8080. It's also impossible to load the
Tomcat homepage itself (eg. http://localhost:8080).

We are running tomcat as a service through jk_ntservice. As soon as we
stop and start the tomcat service, the application works again.

I tried scheduling a daily restart of the service every night at 10pm,
but this doesn't seem to have any influence.

The strange thing is that Tomcat has been running stable for many months
before we started seeing these problems. The only thing that has changed
over time is that the application is used more intensively, by more and
more users and that the backend database (running on SQL Server 2000)
has grown a lot.

We are running on the following platform:
Windows NT 4.0 SP6a
Tomcat 3.3.1a (The problem originally occurred on 3.2.4, we upgraded to
3.3.1a hoping to solve the problem)
Sun Java SDK 1.3.1_08

Any help or suggestions would be appreciated.

Jan Van der Veken


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Hangs at Startup

2003-08-29 Thread Mike Duffy
I am running Tomcat 4.1.27 on Windows XP.

I am experiencing serious hang times at startup.

Has anyone seen this before?  It hangs right after the following block:



Aug 29, 2003 5:36:30 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Aug 29, 2003 5:36:30 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Aug 29, 2003 5:36:38 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Aug 29, 2003 5:36:39 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27


It hangs again after the following block:


Aug 29, 2003 5:38:29 PM org.apache.struts.tiles.TilesPlugin init
INFO: Tiles definition factory loaded for module ''.
Aug 29, 2003 5:38:29 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Aug 29, 2003 5:38:30 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'


Thanks!

Mike




__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Tomcat hangs without any error-message

2003-03-17 Thread Björn Clemens
Hi, 

i tried it on serveral plattforms ... it occurs on Windows 2000, RedHat 7.3, Redhat 8.0
always with jdk 1.4

thanks for the hint ... I'll try using jdk1.3

Regards, 

Björn


> -Ursprüngliche Nachricht-
> Von: xyber [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 17. März 2003 09:46
> An: Tomcat Users List
> Betreff: Re: Tomcat hangs without any error-message
> 
> 
> what platform?
> because we have the same problem under hp-ux with java1.4
> then we switch to java1.3, and the problem is gone...
> 
> xyb
> 
> Björn Clemens wrote:
> 
> >Hi, 
> >
> >we have a production-system which uses Tomcat 4.1.18 LE 
> which hangs after around a day. The problem is, that no 
> error-message or behavior can be seen around tomcat. It don't 
> uses more memory or writes any message to log-file. The 
> incoming requests time-out without errormessage or any response.
> >The error seems to occure only using JSP-pages, 
> servlet-context only work fine. Using http-listener instead 
> of ajp1x extends the up-time but after 20 to 24 hours it 
> hangs so or so.
> >
> >Any ideas?
> >
> >Thanks
> >
> >Björn 
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Tomcat hangs without any error-message

2003-03-17 Thread Björn Clemens
Hi Pratt, 

the server hangs that you have to restart it, than everything works fine. Before it 
looks really normal ... no more memory, no processor-usage and nothing else.

Regards, 

Björn

> -Ursprüngliche Nachricht-
> Von: Tomcat-RND [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 17. März 2003 09:35
> An: Tomcat Users List
> Betreff: Re: Tomcat hangs without any error-message
> 
> 
> Hi,
> Can you please let me know,
> whether it hangs so that the server need to be killed, or 
> server crashes and
> closes it self???
> 
> Regards,
> Pratt.
> 
> - Original Message -
> From: "Björn Clemens" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 17, 2003 1:24 PM
> Subject: Tomcat hangs without any error-message
> 
> 
> Hi,
> 
> we have a production-system which uses Tomcat 4.1.18 LE which 
> hangs after
> around a day. The problem is, that no error-message or 
> behavior can be seen
> around tomcat. It don't uses more memory or writes any 
> message to log-file.
> The incoming requests time-out without errormessage or any response.
> The error seems to occure only using JSP-pages, 
> servlet-context only work
> fine. Using http-listener instead of ajp1x extends the 
> up-time but after 20
> to 24 hours it hangs so or so.
> 
> Any ideas?
> 
> Thanks
> 
> Björn
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs without any error-message

2003-03-17 Thread Tomcat-RND
Hi,
Can you please let me know,
whether it hangs so that the server need to be killed, or server crashes and
closes it self???

Regards,
Pratt.

- Original Message -
From: "Björn Clemens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 1:24 PM
Subject: Tomcat hangs without any error-message


Hi,

we have a production-system which uses Tomcat 4.1.18 LE which hangs after
around a day. The problem is, that no error-message or behavior can be seen
around tomcat. It don't uses more memory or writes any message to log-file.
The incoming requests time-out without errormessage or any response.
The error seems to occure only using JSP-pages, servlet-context only work
fine. Using http-listener instead of ajp1x extends the up-time but after 20
to 24 hours it hangs so or so.

Any ideas?

Thanks

Björn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat hangs without any error-message

2003-03-17 Thread xyber
what platform?
because we have the same problem under hp-ux with java1.4
then we switch to java1.3, and the problem is gone...
xyb

Björn Clemens wrote:

Hi, 

we have a production-system which uses Tomcat 4.1.18 LE which hangs after around a 
day. The problem is, that no error-message or behavior can be seen around tomcat. It 
don't uses more memory or writes any message to log-file. The incoming requests 
time-out without errormessage or any response.
The error seems to occure only using JSP-pages, servlet-context only work fine. Using 
http-listener instead of ajp1x extends the up-time but after 20 to 24 hours it hangs 
so or so.
Any ideas?

Thanks

Björn 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat hangs without any error-message

2003-03-16 Thread Björn Clemens
Hi, 

we have a production-system which uses Tomcat 4.1.18 LE which hangs after around a 
day. The problem is, that no error-message or behavior can be seen around tomcat. It 
don't uses more memory or writes any message to log-file. The incoming requests 
time-out without errormessage or any response.
The error seems to occure only using JSP-pages, servlet-context only work fine. Using 
http-listener instead of ajp1x extends the up-time but after 20 to 24 hours it hangs 
so or so.

Any ideas?

Thanks

Björn 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat hangs under SSL connection, Clarification of Problem I have been experiencing, really need help

2003-01-15 Thread Steve Vanspall
Hi there

I am having a reall problem with Tomcat.

These are my specs

Tomcat 4.1.18LE for JDK 1.4 (Also have a problem with 4.1.18 standard)
Struts 1.1-b2
and naturally JDK 1.4.1

My application seems to work, without a hitch, until I implement the SSLext
for Struts 1.1-b2

Then things go bad.

You canbe using the webapp for any length of time, and then, all of a sudden
it will hangs.

The problem it hits is in the commons.logging area

org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement

Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log

Caused by: org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log


I have tried commenting out the  tags in server.xml, so that all the
logging goes directly to the console.

THinking htis may be a Log4j problem, I switched to JDK 1.4 logging.

None of this has helps, the only thing that stops the container from
hanging, is if I remove all SSL connection from the app.

I have posted with a few messages, but now have worked out under what
circumstances it happens.

Can anyone help me

This is really frustrating

Thanks in advance

Steve Vanspall


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Embedded Tomcat hangs

2003-01-14 Thread Sylvain Beaumont
Hi,

We developped a GIS server, in which a embedded Tomcat serves JSP /
Servlet requests. 
Since we upgraded Tomcat 3.x with 4.1.x (currently 4.1.12), Tomcat hangs
without any error.

Our demo server (Linux, 1.4.1), which in not under heavy loads (< 100
requests / day), hangs about every week.
It also happened on 3 development PC (Win XP, 1.4.1) after a couple of
hours of tests.

- It is not related to SSL problems reported early
- It doesn't seem to be related to database access:
- it happened on simple JSP pages displaying live memory data
(no DB access)
- the same setup was working using Tomcat 3.x (not sure about
4.0.x)

Any ideas / suggestions would be appreciated,

thank you,

Sylvain

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Tomcat Hangs and cannot be shut down

2002-10-31 Thread Lior Shliechkorn

Thanks Yoav,
I don't think it's a problem with the code in  my application because the pages work 
fine and the code in the pages gets executed without problems before hand. From time 
to time, when I press on a link to access a page the browser starts 
thinking...thinking...it never really breaks for a while either. 
Then a little while later, after letting everything sit untouched for a while I 
shutdown the sever and Tomcat goes down clean without exceptions and starts up ok. 
Then after that, back to way it was before.
Thanks,
Lior



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: Tomcat Hangs and cannot be shut down

2002-10-31 Thread Shapira, Yoav
Hi,
It's very likely your app has an infinite loop or a thread lock
somewhere.  Check that very carefully.

>Tomcat, from time to time, starts processing and locks into some loop
or

Can you reproduce this reliably?

>This happens for a while and then when the session is terminated, I
>believe, then everything goes back to the way it was before and works
fine.

If you configure session timeout to something very short, e.g. 3 minutes
instead of the default 30, does everything "go back to the way it was
before" after 3 minutes?

>force the shutdown of Tomcat?

Yes, kill the process.  But you probably want to solve what's causing
the error and fix that, instead of forcing a tomcat restart.

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Tomcat Hangs and cannot be shut down

2002-10-30 Thread Lior Shliechkorn

Tomcat, from time to time, starts processing and locks into some loop or something. I 
don't know what is happening, and that is the best way I can explain it. After 
noticing that the JSP do not get served and IE just waits and waits, I try to Shutdown 
Tomcat and I get an exception.

java.net.ConnectException: Connection refused: connect ...

This happens for a while and then when the session is terminated, I believe, then 
everything goes back to the way it was before and works fine.

Can someone explain what is exactly might happening here? Is there a way to force the 
shutdown of Tomcat? 

Thank you for your time,

Lior

 



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: Tomcat hangs with Apache2

2002-07-19 Thread Turner, John


FYIwith mod_webapp, all requests are served by tomcat for that resource,
apache doesn't serve the static content.

Basically, if you're trying to use mod_webapp, there's no purpose, unless
you have other sites (virtual hosts) that don't use tomcat and you want
apache to serve the content for those sites.  Otherwise, using mod_webapp is
identical to running tomcat stand-alone on port 80.

As it stands now, the only true working connector, in the spirit of a
connector (apache serves static content, tomcat serves servlets and JSPs),
is mod_jk and mod_jk2.

WARP seems to be a better protocol, but it is anyone's guess if mod_webapp
will support a division between static content and "dynamic" content anytime
soon.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Chris McCabe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 5:13 PM
To: Tomcat Users List
Subject: Re: Tomcat hangs with Apache2


Yes, getting them installed and working together was actually fairly 
easy.  I can't get the mod_jk connectors to work yet, but the mod_webapp 
works except for the problem I described, which happens on every 
request, so it is useless.
  I have it working on RedHat 7.0 and RedHat 7.2 systems.  The only part 
that took a little time was building the connector modules.  It took a 
couple of tries.  Also, you need to make sure that you are specifying 
the 'ServerName' directive in httpd.conf and that it has a port 
specification even if it is the default port 80.  Otherwise mod_webapp 
will choke.  Should look something like:

ServerName www.domain.com:80

or you can put your IP address instead of the name.
What else do you need to know?

Chris


Billingham, Walter 475 wrote:

>Chris,
>
>   I'm a newbie, so excuse lack of knowledge, however, you actually got
>these 2 to install and work together can you share your experience?  Are
you
>using mod_jk or the AJP connectors?  What's the specs of the system?
>Thanks. Trask 
>
>
>Unix has its weak points but its file system is not one of them.
>
>- Chris Torek
>
>
>  
>
>>-Original Message-
>>From: Chris McCabe [SMTP:[EMAIL PROTECTED]]
>>Sent: Thursday, July 18, 2002 4:36 PM
>>To:   [EMAIL PROTECTED]
>>Subject:  Tomcat hangs with Apache2
>>
>>I have Tomcat 4.0.4 running with Apache 2.0.39 web server using the 
>>webapp connector on Linux, and all requests hang after returning just 
>>over 1200 bytes of data.  After some searching around on the web, I 
>>found a couple of places that complained about the same problem, but no 
>>workaround.  In those cases they were using the Jk connector, and in at 
>>least one case Apache 1.3 instead of version 2.
>>
>>Is anyone else having this problem, or does anyone else have the same 
>>configuration that is NOT having this problem?  This is a total show 
>>stopper at this point.  Any ideas about a possible workaround would be 
>>great.
>>
>>Thanks,
>>Chris
>>
>>-- 
>>Chris P. McCabe  - Senior Software Systems Architect
>>Choice Hotels International - Information Technology
>>[EMAIL PROTECTED]602-953-4416
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>
>
>---
---
>CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown.  This e-mail
transmission may contain confidential information.  This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly.  Please delete it from your files if
you are not the intended recipient.  Thank you for your compliance.
Copyright (c) 2002 CIGNA
>
>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>


-- 
Chris P. McCabe  - Senior Software Systems Architect
Choice Hotels International - Information Technology
[EMAIL PROTECTED]602-953-4416




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat hangs with Apache2

2002-07-18 Thread Chris McCabe

Yes, getting them installed and working together was actually fairly 
easy.  I can't get the mod_jk connectors to work yet, but the mod_webapp 
works except for the problem I described, which happens on every 
request, so it is useless.
  I have it working on RedHat 7.0 and RedHat 7.2 systems.  The only part 
that took a little time was building the connector modules.  It took a 
couple of tries.  Also, you need to make sure that you are specifying 
the 'ServerName' directive in httpd.conf and that it has a port 
specification even if it is the default port 80.  Otherwise mod_webapp 
will choke.  Should look something like:

ServerName www.domain.com:80

or you can put your IP address instead of the name.
What else do you need to know?

Chris


Billingham, Walter 475 wrote:

>Chris,
>
>   I'm a newbie, so excuse lack of knowledge, however, you actually got
>these 2 to install and work together can you share your experience?  Are you
>using mod_jk or the AJP connectors?  What's the specs of the system?
>Thanks. Trask 
>
>
>Unix has its weak points but its file system is not one of them.
>
>- Chris Torek
>
>
>  
>
>>-Original Message-
>>From: Chris McCabe [SMTP:[EMAIL PROTECTED]]
>>Sent: Thursday, July 18, 2002 4:36 PM
>>To:   [EMAIL PROTECTED]
>>Subject:  Tomcat hangs with Apache2
>>
>>I have Tomcat 4.0.4 running with Apache 2.0.39 web server using the 
>>webapp connector on Linux, and all requests hang after returning just 
>>over 1200 bytes of data.  After some searching around on the web, I 
>>found a couple of places that complained about the same problem, but no 
>>workaround.  In those cases they were using the Jk connector, and in at 
>>least one case Apache 1.3 instead of version 2.
>>
>>Is anyone else having this problem, or does anyone else have the same 
>>configuration that is NOT having this problem?  This is a total show 
>>stopper at this point.  Any ideas about a possible workaround would be 
>>great.
>>
>>Thanks,
>>Chris
>>
>>-- 
>>Chris P. McCabe  - Senior Software Systems Architect
>>Choice Hotels International - Information Technology
>>[EMAIL PROTECTED]602-953-4416
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>
>
>--
>CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
>notify the sender by e-mail at the address shown.  This e-mail transmission may 
>contain confidential information.  This information is intended only for the use of 
>the individual(s) or entity to whom it is intended even if addressed incorrectly.  
>Please delete it from your files if you are not the intended recipient.  Thank you 
>for your compliance. Copyright (c) 2002 CIGNA
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>


-- 
Chris P. McCabe  - Senior Software Systems Architect
Choice Hotels International - Information Technology
[EMAIL PROTECTED]602-953-4416




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Tomcat hangs with Apache2

2002-07-18 Thread Billingham, Walter 475

Chris,

I'm a newbie, so excuse lack of knowledge, however, you actually got
these 2 to install and work together can you share your experience?  Are you
using mod_jk or the AJP connectors?  What's the specs of the system?
Thanks. Trask 


Unix has its weak points but its file system is not one of them.

- Chris Torek


> -Original Message-
> From: Chris McCabe [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, July 18, 2002 4:36 PM
> To:   [EMAIL PROTECTED]
> Subject:  Tomcat hangs with Apache2
> 
> I have Tomcat 4.0.4 running with Apache 2.0.39 web server using the 
> webapp connector on Linux, and all requests hang after returning just 
> over 1200 bytes of data.  After some searching around on the web, I 
> found a couple of places that complained about the same problem, but no 
> workaround.  In those cases they were using the Jk connector, and in at 
> least one case Apache 1.3 instead of version 2.
> 
> Is anyone else having this problem, or does anyone else have the same 
> configuration that is NOT having this problem?  This is a total show 
> stopper at this point.  Any ideas about a possible workaround would be 
> great.
> 
> Thanks,
> Chris
> 
> -- 
> Chris P. McCabe  - Senior Software Systems Architect
> Choice Hotels International - Information Technology
> [EMAIL PROTECTED]602-953-4416
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

--
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
notify the sender by e-mail at the address shown.  This e-mail transmission may 
contain confidential information.  This information is intended only for the use of 
the individual(s) or entity to whom it is intended even if addressed incorrectly.  
Please delete it from your files if you are not the intended recipient.  Thank you for 
your compliance. Copyright (c) 2002 CIGNA




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Tomcat hangs with Apache2

2002-07-18 Thread Chris McCabe

I have Tomcat 4.0.4 running with Apache 2.0.39 web server using the 
webapp connector on Linux, and all requests hang after returning just 
over 1200 bytes of data.  After some searching around on the web, I 
found a couple of places that complained about the same problem, but no 
workaround.  In those cases they were using the Jk connector, and in at 
least one case Apache 1.3 instead of version 2.

Is anyone else having this problem, or does anyone else have the same 
configuration that is NOT having this problem?  This is a total show 
stopper at this point.  Any ideas about a possible workaround would be 
great.

Thanks,
Chris

-- 
Chris P. McCabe  - Senior Software Systems Architect
Choice Hotels International - Information Technology
[EMAIL PROTECTED]602-953-4416



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Hangs-UP...

2002-05-29 Thread Phillip Morelock

Two comments below.

fillup

>> Are you closing your Oracle connections? Are there too many open connections?
> I am using an Oracle implementation of connection pool. Every user that log on
> system get an connection from that pool. The connection will not br released
> until this user close the browser window, or
> the tomcat session gets timeout (30 minutes).
> Tomcat is hanging with 130 (more or less) connections out of the pool (about
> 110 users).

This is the wrong way to use a connection pool, unless you have a very
narrow set of specific theoretical requirements, which I still have never
seen in practice.  Each REQUEST should be grabbing a connection and
returning it to the pool, not each SESSION.  Using it for sessions in fact
makes your pool worse and slower than just opening a new connection for each
request with zero pooling.  You're using the pool in the wrong way.

> 
>> 
>> I have had this problem before where my db connected application had not
>> committed it's transaction and ended up hanging tomcat. Always check to see
>> that your resources are being released and
> not halting other requests.
> Our methods that use/need transaction (doing updates or deletes) always do
> commit or rollback, BUT, for connections that only do "select" querys, commit
> or rollback are never called. MAY THIS BE
> A PROBLEM Remember that an connection is associated with the user
> (browser) session...

see Connection.setAutoCommit( )


> 
> 
> 
>> 
>> Since you're using Oracle, check the V$SESSION view  to make sure you don't
>> have more active connections than you believe you should have. Check the
>> v$session_wait to make sure nothing is
> blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those
> views, ask your friendly dba to help.
> I am already doing this for a long time, and we are not having this problem.
> 
> 
> 
> Well, just to inform about our situation:
> our application is already in production, and there is about 300 users TRYING
> to use-it... Another thing, our company depends 100% of this software.
> 
> More about our structure:
> we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions
> below). And fortunetly, wen tomcat hangs in one machine, the users can go the
> another tomcat. BUT, at every tomcat stop,
> all users of that machine have to re-login into the another tomcat (because
> the user loose his session).
> 
> 
> Any other help? Any idea??
> 
> Please, we are almost givin up of tomcat and changing to another payed
> solution (like Websphere, JRun, ...)
> 
> PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried
> A LOT of alternatives solutions... We neen and serius help.
> 
> 
> 
> thank you all in advance,
> 
> 
> Wagner Danda
> [EMAIL PROTECTED]
> Sun Java Certified Programmer for the Java 2 [tm]
> 
>> 
>>>>> [EMAIL PROTECTED] 05/28/02 07:24PM >>>
>> Here, we have the same problem!!! What can it be?
>> 
>> Our configuration:
>> 
>> - SunOS 5.8;
>> - Solaris 8;
>> - Dual UltraSparc 400Mhz;
>> - J2SE SUN 1.4;
>> - Tomcat 4.0.3;
>> - We are using -Xmx1024 -Xms512;
>> - MaxProcessors=250, MinProcessors=10, acceptCount=250;
>> - Oracle Thin JDBC;
>> 
>> PS 1: we are not having the "classic" OutOfMemory error. Tomcat just
>> hangs-up with no reason.
>> PS 2: We already used OptimizeIt to tune the application.
>> PS 3: Tomcat stops even with a low rate of usage.
>> 
>> Wagner Danda
>> 
>>> -- Mensagem original ---
>>> 
>>> De  : "Rui Oliveira" <[EMAIL PROTECTED]>
>>> Para: <[EMAIL PROTECTED]>
>>> Cc  :
>>> Data: Tue, 28 May 2002 18:54:36 +0100
>>> Assunto : Tomcat Hangs-UP...
>>> 
>>> Hello,
>>> 
>>> 
>>> 
>>> I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
>> er
>>> executing for a while, the Tomcat just Hangs-UP and the only way of
>>> restarting it is to kill the Tomcat process.
>>> 
>>> 
>>> 
>>> My configuration is the following:
>>> 
>>> 
>>> 
>>> - SunOS 5.8
>>> 
>>> - Solaris 8
>>> 
>>> - JRE 1.3.1_03
>>> 
>>> - Tomcat 4.0.3
>>> 
>>> 
>>> 
>>> Does anyone have a clue on what is the problem?
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Regards
>>> 
>>> Rui Oliveira
>>> 
>>> 
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>> 
>> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat Hangs-UP...

2002-05-29 Thread Wagner Danda

Hello,
Hi,

my comments are below.

-
>Okay, a simple answer from a simple mind:
>Check that you are closing resources in your java code appropriately. Don't rely on 
>garbage collection!
>
>Are you closing any files opened by your Java code?
Yes, I am.


>Are you always closing your jdbc SQL statements/result sets, etc...?
Yes, I am. If I don´t close-it, I will get TooMayOpenCursors errors. I´ve already 
fixed this problem.


>Are you closing your Oracle connections? Are there too many open connections?
I am using an Oracle implementation of connection pool. Every user that log on system 
get an connection from that pool. The connection will not br released until this user 
close the browser window, or
the tomcat session gets timeout (30 minutes).
Tomcat is hanging with 130 (more or less) connections out of the pool (about 110 
users).


>Are there any blocking db locks?
No, there are not.


>
>I have had this problem before where my db connected application had not committed 
>it's transaction and ended up hanging tomcat. Always check to see that your resources 
>are being released and
not halting other requests.
Our methods that use/need transaction (doing updates or deletes) always do commit or 
rollback, BUT, for connections that only do "select" querys, commit or rollback are 
never called. MAY THIS BE
A PROBLEM Remember that an connection is associated with the user (browser) 
session...



>
>Since you're using Oracle, check the V$SESSION view  to make sure you don't have more 
>active connections than you believe you should have. Check the v$session_wait to make 
>sure nothing is
blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those views, 
ask your friendly dba to help.
I am already doing this for a long time, and we are not having this problem.



Well, just to inform about our situation:
our application is already in production, and there is about 300 users TRYING to 
use-it... Another thing, our company depends 100% of this software.

More about our structure:
we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions below). And 
fortunetly, wen tomcat hangs in one machine, the users can go the another tomcat. BUT, 
at every tomcat stop,
all users of that machine have to re-login into the another tomcat (because the user 
loose his session).


Any other help? Any idea??

Please, we are almost givin up of tomcat and changing to another payed solution (like 
Websphere, JRun, ...)

PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried A LOT 
of alternatives solutions... We neen and serius help.



thank you all in advance,


Wagner Danda
[EMAIL PROTECTED]
Sun Java Certified Programmer for the Java 2 [tm]

>
>>>> [EMAIL PROTECTED] 05/28/02 07:24PM >>>
>Here, we have the same problem!!! What can it be?
>
>Our configuration:
>
> - SunOS 5.8;
> - Solaris 8;
> - Dual UltraSparc 400Mhz;
> - J2SE SUN 1.4;
> - Tomcat 4.0.3;
> - We are using -Xmx1024 -Xms512;
> - MaxProcessors=250, MinProcessors=10, acceptCount=250;
> - Oracle Thin JDBC;
>
>PS 1: we are not having the "classic" OutOfMemory error. Tomcat just
>hangs-up with no reason.
>PS 2: We already used OptimizeIt to tune the application.
>PS 3: Tomcat stops even with a low rate of usage.
>
>Wagner Danda
>
>> ------ Mensagem original ---
>>
>> De  : "Rui Oliveira" <[EMAIL PROTECTED]>
>> Para: <[EMAIL PROTECTED]>
>> Cc  :
>> Data: Tue, 28 May 2002 18:54:36 +0100
>> Assunto : Tomcat Hangs-UP...
>>
>> Hello,
>>
>>
>>
>> I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
>er
>> executing for a while, the Tomcat just Hangs-UP and the only way of
>> restarting it is to kill the Tomcat process.
>>
>>
>>
>> My configuration is the following:
>>
>>
>>
>> - SunOS 5.8
>>
>> - Solaris 8
>>
>> - JRE 1.3.1_03
>>
>> - Tomcat 4.0.3
>>
>>
>>
>> Does anyone have a clue on what is the problem?
>>
>>
>>
>>
>>
>> Regards
>>
>> Rui Oliveira
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat Hangs-UP...

2002-05-29 Thread Mark Teegarden

Okay, a simple answer from a simple mind:
Check that you are closing resources in your java code appropriately. Don't rely on 
garbage collection!

Are you closing any files opened by your Java code?
Are you always closing your jdbc SQL statements/result sets, etc...?
Are you closing your Oracle connections? Are there too many open connections?
Are there any blocking db locks?

I have had this problem before where my db connected application had not committed 
it's transaction and ended up hanging tomcat. Always check to see that your resources 
are being released and not halting other requests.

Since you're using Oracle, check the V$SESSION view  to make sure you don't have more 
active connections than you believe you should have. Check the v$session_wait to make 
sure nothing is blocked. I'll bet a t-shirt that it's a db problem. If you can't get 
to those views, ask your friendly dba to help.

>>> [EMAIL PROTECTED] 05/28/02 07:24PM >>>
Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the "classic" OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

> -- Mensagem original ---
>
> De  : "Rui Oliveira" <[EMAIL PROTECTED]>
> Para    : <[EMAIL PROTECTED]>
> Cc  :
> Data: Tue, 28 May 2002 18:54:36 +0100
> Assunto : Tomcat Hangs-UP...
>
> Hello,
>
>
>
> I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
> executing for a while, the Tomcat just Hangs-UP and the only way of
> restarting it is to kill the Tomcat process.
>
>
>
> My configuration is the following:
>
>
>
> - SunOS 5.8
>
> - Solaris 8
>
> - JRE 1.3.1_03
>
> - Tomcat 4.0.3
>
>
>
> Does anyone have a clue on what is the problem?
>
>
>
>
>
> Regards
>
> Rui Oliveira
>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat Hangs-UP...

2002-05-28 Thread Phillip Morelock

search the archives"solaris out of memory" issues have been discussed
here ad infinitum.

fillup


On 5/28/02 4:24 PM, "Wagner Danda S. Filho" <[EMAIL PROTECTED]> wrote:

> Here, we have the same problem!!! What can it be?
> 
> Our configuration:
> 
> - SunOS 5.8;
> - Solaris 8;
> - Dual UltraSparc 400Mhz;
> - J2SE SUN 1.4;
> - Tomcat 4.0.3;
> - We are using -Xmx1024 -Xms512;
> - MaxProcessors=250, MinProcessors=10, acceptCount=250;
> - Oracle Thin JDBC;
> 
> PS 1: we are not having the "classic" OutOfMemory error. Tomcat just
> hangs-up with no reason.
> PS 2: We already used OptimizeIt to tune the application.
> PS 3: Tomcat stops even with a low rate of usage.
> 
> Wagner Danda
> 
>> -- Mensagem original ---
>> 
>> De  : "Rui Oliveira" <[EMAIL PROTECTED]>
>> Para: <[EMAIL PROTECTED]>
>> Cc  : 
>> Data: Tue, 28 May 2002 18:54:36 +0100
>> Assunto : Tomcat Hangs-UP...
>> 
>> Hello,
>> 
>>  
>> 
>> I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
> er
>> executing for a while, the Tomcat just Hangs-UP and the only way of
>> restarting it is to kill the Tomcat process.
>> 
>>  
>> 
>> My configuration is the following:
>> 
>>  
>> 
>> - SunOS 5.8 
>> 
>> - Solaris 8
>> 
>> - JRE 1.3.1_03
>> 
>> - Tomcat 4.0.3
>> 
>>  
>> 
>> Does anyone have a clue on what is the problem?
>> 
>>  
>> 
>>  
>> 
>> Regards
>> 
>> Rui Oliveira
>> 
>> 
>> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat Hangs-UP...

2002-05-28 Thread Wagner Danda S. Filho

Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the "classic" OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

> -- Mensagem original ---
>
> De  : "Rui Oliveira" <[EMAIL PROTECTED]>
> Para: <[EMAIL PROTECTED]>
> Cc  :
> Data: Tue, 28 May 2002 18:54:36 +0100
> Assunto : Tomcat Hangs-UP...
>
> Hello,
>
>
>
> I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
> executing for a while, the Tomcat just Hangs-UP and the only way of
> restarting it is to kill the Tomcat process.
>
>
>
> My configuration is the following:
>
>
>
> - SunOS 5.8
>
> - Solaris 8
>
> - JRE 1.3.1_03
>
> - Tomcat 4.0.3
>
>
>
> Does anyone have a clue on what is the problem?
>
>
>
>
>
> Regards
>
> Rui Oliveira
>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Tomcat Hangs-UP...

2002-05-28 Thread Rui Oliveira

Hello,

 

I have a Tomcat Server running on Solaris as JSP and WEB server. After
executing for a while, the Tomcat just Hangs-UP and the only way of
restarting it is to kill the Tomcat process.

 

My configuration is the following:

 

- SunOS 5.8 

- Solaris 8

- JRE 1.3.1_03

- Tomcat 4.0.3

 

Does anyone have a clue on what is the problem?

 

 

Regards

Rui Oliveira




Tomcat hangs.

2002-05-27 Thread Rajesh Mishra

Hi guys,
I'm facing a strange problem with Tomcat and Apache.I'm using mod_jk
and Ajp12 protocol with Tomcat3.2 and Apache1.3.12.
After stress testing for 2 hours , website becomes inaccessible(it hanngs).I
even couldn't access the Apache's home page . But I could still access the
website with tomcat port.

Has anyone experienced this problem.
Regards
Rajesh

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat hangs

2002-03-24 Thread Carsten Burstedde


Hi,

I looked through the archives a bit, but I think I have to post this:

I am running Tomcat 3.3 on SuSE Linux 7.3, apache 1.3.20/mod_jk and IBM's JDK 1.3. And 
velocity 1.1.

1. Occasionally, tomcat freezes: no pages are being served any more. Usually, then 
there are over 100 apache 
processes and about the same amount of network connections apache<->tomcat. Restarting 
tomcat brings everything 
back up, and the apache processes slowly reduce to normal level.

2. After restarting tomcat, the logging works fine until midnight (!). Then, the 
servlet logger stops logging to its file, but 
everything goes to tomcat stdout, with the additional message 'No writer'.

I am having these problems for quite a while now and would be really glad if someone 
has some clues. Or should I just 
upgrade to tomcat 4.0 and some other jdk (sun 1.4 is no option because of its fascict 
license).

Cheers,

Carsten



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat hangs when multiple users making calls

2002-02-06 Thread amohammad

Hi,
  Iam using tomcat4.0.1 and apache 1.3.I configure mod_webapp.I was able to make a 
call to examples webapplication.but then moment more than one user makes call server 
hangs and what i found is number processes created by tomcat got doubled (i checked it 
using ps -f).I just want to know whether tomcat4.0.1 supports multi user requests.If 
any body has a soultion for this .Any help is appreciated.

Thanks
Ahmed
-



Re: Tomcat hangs due to mistyped Oracle login until that servelt completes !!!??

2001-12-20 Thread Vesna Milosavljevic


   Seems that this could be a buffering problem !

   Here is the output of a simple serlvet named DBping
 that accepts the oracle name/pass, connects to
database and execute a simple query. When started
DBping gets its ID (Random) so I can identify the
output in the log file. In the following example there
is the output of two instances of DBping servlet, both
started at about the same time  11:37:15  :

  DBping(14484884)  - wrong oracle login data
  DBping(12176391)  - correct oracle login data

I interpret this as :

  DBping(12176391) completes with no waiting, but its
response seem to be somehow prevented of being sent
back to the user until DBping(14484884) completes.
  

Tomcat.log

Thu Dec 20 11:37:15 CET 2001: DBping(14484884):
oracle.jdbc.driver.OracleDriver registered
Thu Dec 20 11:37:15 CET 2001: DBping(12176391):
oracle.jdbc.driver.OracleDriver registered
Thu Dec 20 11:37:23 CET 2001: DBping(14484884): SQL
Error: java.sql.SQLException: ORA-01017: invalid
username/password; logon denied

Thu Dec 20 11:37:15 CET 2001: DBping(12176391):
connected to Oracle
Thu Dec 20 11:37:15 CET 2001: DBping(12176391): query
executed
Thu Dec 20 11:37:15 CET 2001: DBping(12176391): ok
---

Is there a way to force Tomcat-3.3 to flush the
output???

Regards

Aleksandar Kostic


DBping.java source:
---
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.io.*;
import java.util.Date;
import java.util.Random;

public class DBping extends HttpServlet {

public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, java.io.IOException {
doGet(req,res);
}

public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, java.io.IOException {
res.setContentType("text/html");
ServletOutputStream out = res.getOutputStream();

// Define Variables
// Initialise everything required for database
connection
String address = new String();
String db_id   = null;
String db_pw   = null;
String db_host = null;
String db_port = null;
String db_sid  = null;

String m_drivername = "oracle";
String m_address= "jdbc:oracle:thin:";
String sql  = "SELECT SYSDATE FROM dual";

Driver db_driver = null;
Connection con   = null;
Statement stmt   = null;
ResultSet rs = null;

Random randGen=new Random(); // Random generator to
get unique ID
Date   today  =new Date();   // Get current date

int id = randGen.nextInt();

out.println("");
out.println("ORA-ping
program");
out.println("");

try {
// register the oracle driver driver
db_driver = new
oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);
// Get parameters
db_id   = req.getParameterValues("db_id")[0];
db_pw   = req.getParameterValues("db_pw")[0];
db_host = req.getParameterValues("db_host")[0];
db_port = req.getParameterValues("db_port")[0];
db_sid  = req.getParameterValues("db_sid")[0];
// make driver init string
m_address += "@"+db_host+":"+db_port+":"+db_sid;

db_driver = new
oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);
System.out.println(today.toString() + ":
DBping("+id+"): oracle.jdbc.driver.OracleDriver
registered" );

// Open Connection
con =
DriverManager.getConnection(m_address,db_id,db_pw);
System.out.println(today.toString() +":
DBping("+id+"): connected to Oracle");
// Create and Execute stmt
stmt = con.createStatement();
rs = stmt.executeQuery(sql);
System.out.println(today.toString() +":
DBping("+id+"): query executed");
int i=0;
while (rs.next()) { // Print result
out.println("SYSDATE : '"+rs.getObject(1).toString()
+ "' ");
i = i + 1;
}
System.out.println(today.toString() +":
DBping("+id+"): ok");
}

catch (SQLException ex) {
// Print error
today = new Date();
System.out.println(today.toString() +":
DBping("+id+"): SQL Error: "+ex.toString());
out.println("An Error Occurred");
out.println("DB ping - SQL Exception :
"+ex.toString() +"");
}
catch (Exception ex) {
// Print error
today = new Date();
System.out.println(today.toString() +":
DBping("+id+"): Error: "+ex.toString());
out.println("An Error Occurred");
 

Tomcat hangs due to mistyped Oracle login until that servelt completes !!!??

2001-12-20 Thread Vesna Milosavljevic

   Hello to the list

   Problem :
  
Whenever a  servlet/jsp that connects  to oracle
is  executed with
mistyped  login/passwd,  no  other/same
servlet/jsp  dealing  with
Oracle  on  that  Tomcat   instance  can  be 
executed,  till  the
processing of that request completes.

That  is to  say :  something is  preventing
db-servlets  to start
running (or  to send their output  ?), while
tomcat  is handling a
servlet that tries to connect to Oracle with
mistyped name/pass. I
say   "handling",   for   this   processing  can  
last   even   5
min. (particularly  after Tomcat hasn't been
restarted  for a long
time).

After  restarting  tomcat  it  takes  relatively 
reasonable  time
(1-5sec) but as  the time passes by, processing 
time increases to
minutes and that is very  annoying and
inconvenient for all users.
At  the same time  static contents  and
servlets/jsps  not dealing
with oracle are handled properly.


   Environment:

 www: Apache-1.3.14+mod_jk,  
 jsp: Tomcat-3.3 (two  instances) with oracle's 
jdbcclasses12.jar,  
 server : HP-UX B11.0  U  9000/800,  DB
 server : Oracle 8.0.6
   
   Im  running  two Tomcat  instances 
(max_thread=200).  First has  7
   web-apps and second only one.  Almost all web-apps
are dealing with
   oracle 8.0.6 over jdbc, and there  are a bunch of
servlets and jsps
   written  by  various authors  (including  me), 
creating oracle  DB
   connections.


   So far, I have tested this  behavior on two HP
servers each running
   two tomcat-3.3 instances and unfortunately this
nasty behavior seem
   to  be a  rule. Whether  one connects  directly to 
tomcat  or over
   apache makes no  difference (the problem is in 
Tomcat). The number
   of concurrent  users shouldn't be  more than 50.  I
 haven't tested
   tomcat on any other platform or with another
database.


Typical peace of code from one of my servlets
connecting to oracle:

---
try {

db_driver = new oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(db_driver);

con =
DriverManager.getConnection("jdbc:oracle:thin:@l2000:1521:WFI_T8",db_id,db_pw);


//... do something

}
catch (SQLException ex) {
...
}
finaly {
   if(stmt != null)
  stmt.close();
   if(con != null)
  con.close();
}   

--

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat hangs if i click on refresh button

2001-12-01 Thread yilmaz

Hi guys,

Did any one expereince the following problem?
first let me tell my environment
i use tomcat4-b7, on win2000, my jvm is jdk1.3
i have a simple jsp file which simply dynamically displays images
the name of the images are dynamically created.
when first time i acess my jsp file, it compiles and displays the
images correctly without any problem, but for the second time it can't
display
whether i refresh the page or come back from another web address
it jsut displays a white blank page without any error.
Any idea about what is happening here, any logical expalantion?
or is it a kinda metaphysical phenomena :) (joking)
thanks for helping me
have a trouble -free weekend :)
yilmaz

- Original Message -
From: "Matt Egyhazy" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, December 02, 2001 1:56 AM
Subject: Re: Known Memory clean-up issues?


> have you tuned the jvm settings?  i had out of memory errors with 3.2.3
> version of tomcat after periods of heavy load until i tuned the jvm.
>
> matt
> - Original Message -
> From: "Randy Layman" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 29, 2001 3:25 PM
> Subject: RE: Known Memory clean-up issues?
>
>
> >
> > The best thing you can do is to find out where YOU are leaking
> > memory.  Tools like OptimizeIt are very useful for this type of issue.
> Here
> > are a few hints that might help you:
> > * Sessions stick around for some time after the user leaves.  If you
> > have large amounts of data in the session, you might want to make your
> > timeout smaller
> > * Servlet instances stay around for very long amounts of time.
> > Storing anything in static and/or instance variables of the servlet can
> > consume memory for very long amounts of time
> > * Static fields stay around for very long amounts of time, even if
> > there are no more references to the classes
> >
> > Another tip, if you reduce the Heap size of your JVM then you can
> > get the problem to happen quicker (since there's less memory available
to
> > leak).
> >
> >
> > >From the JavaDoc on java.lang.OutOfMemoryError:
> > "Thrown when the Java Virtual Machine cannot allocate an object because
it
> > is out of memory, and no more memory could be made available by the
> garbage
> > collector."
> >
> > Something is holding onto lots of memory.  If your servlet is
> > holding memory and a request comes it, its possible that the servlet is
> > holding enough memory that Tomcat can't get the memory that it needs to
> > service the request.
> >
> > Randy
> >
> >
> > > -Original Message-
> > > From: Denis Balazuc [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, November 29, 2001 3:42 PM
> > > To: Tomcat Users List
> > > Subject: Re: Known Memory clean-up issues?
> > >
> > >
> > > Hi all
> > >
> > > Where would you recommend to use System.gc() in the context
> > > of JSP pages ?
> > > I guess it would be useless to intercept every single request
> > > and hint the
> > > system for garbage collection on each request ?
> > >
> > > (Now I quote)
> > > "Also, before an OutOfMemory is thrown, the Garbage collector is
> > > guarenteed to run, meaning that you really are using all of
> > > your memory.  I
> > > would look at what you are doing in your code - I have
> > > servlets that run for
> > > weeks without eating up any significant portion of memory"
> > >
> > > I do have many times OutOfMemory exceptions thrown, although
> > > we're not doing
> > > *that* much
> > > It happens quite randomly so it's very difficult to isolate
> > > the problem.
> > > Moreover, it even happens when fetching HTML pages from
> > > Tomcat, without
> > > using much JSP...
> > > I'd like to find a place to catch that error to take action
> > > (like restarting
> > > Tomcat) but the only way we have found is to monitor the server and
> > > automatically restart it when it fails to respond.
> > >
> > > Any guidance to solve the problem would be appreciated ;-)
> > >
> > > Thanks
> > > Denis Balazuc
> > >
> > >
> > > - Original Message -
> > > From: "Yoav Shapira" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Thursday, November 29, 2001 03:07 PM
> > > Subject: Re: Known Memory clean-up issues?
> > >
> > >
> > > > Howdy,
> > > >
> > > > > Any harm in forcing garbage collection to run?
> > > >
> > > > You cannot force garbage collection to run, only suggest it to the
> > > > JVM via methods like System.gc().  If you're having difficulty
> > > > tracking down memory usage, try a profiler like OptimizeIt that has
> > > > entire memory trees.
> > > >
> > > > In addition, you can use parameters like hprof and verbosegc on
> > > > the java command line to assist you in monitoring garbage
> > > collection.
> > > >
> > > > Yoav Shapira
> > > >
> > > > --
> > > > To unsubscribe:
> > > 
> > > > For additional commands:
> > > 
> > > > Troubles wi

Tomcat Hangs?

2001-11-30 Thread Scott Weaver

Has anyone had any problems with Tomcat hanging?
I have included parts of the log files when the error occurred below.
Currently there is no reason that I would get more than 75 concurrent hits
(default max threads) and also the creation of the threads shown in
catalina_log.2001-11-29.txt don't coincide with any events in
localhost_access_log.2001-11-29.txt.

This is the only time it has happened since I installed Tomcat 4.0.
Any ideas on what might have caused this?

Thanks!

Running Tomcat 4.0.1 on W2K Server
Started Tomcat at 17:27
Hung after 18:00.
Restarted at 19:47

>>>catalina_log.2001-11-29.txt shows:

2001-11-29 17:27:38 Ajp13Connector[8009] Opening server socket on all host
IP addresses
2001-11-29 17:27:41 HttpConnector Opening server socket on all host IP
addresses
2001-11-29 17:27:51 HttpConnector[8080] Starting background thread
2001-11-29 17:27:51 HttpProcessor[8080][1] Starting background thread
2001-11-29 17:27:51 HttpProcessor[8080][0] Starting background thread
2001-11-29 17:27:51 HttpProcessor[8080][2] Starting background thread
2001-11-29 17:27:51 HttpProcessor[8080][3] Starting background thread
2001-11-29 17:27:51 HttpProcessor[8080][4] Starting background thread
2001-11-29 17:27:51 Ajp13Connector[8009] Opening server socket on all host
IP addresses
2001-11-29 17:27:51 Ajp13Connector[8009] Starting background thread
2001-11-29 17:27:51 Ajp13Processor[8009][0] Starting background thread
2001-11-29 17:27:51 Ajp13Processor[8009][1] Starting background thread
2001-11-29 17:27:51 Ajp13Processor[8009][2] Starting background thread
2001-11-29 17:27:51 Ajp13Processor[8009][3] Starting background thread
2001-11-29 17:27:51 Ajp13Processor[8009][4] Starting background thread
2001-11-29 18:02:11 HttpProcessor[8080][5] Starting background thread
2001-11-29 18:02:11 HttpProcessor[8080][6] Starting background thread
2001-11-29 18:04:14 HttpProcessor[8080][7] Starting background thread
2001-11-29 18:04:24 HttpProcessor[8080][8] Starting background thread
2001-11-29 18:05:03 HttpProcessor[8080][9] Starting background thread
2001-11-29 18:05:04 HttpProcessor[8080][10] Starting background thread
2001-11-29 18:05:04 HttpProcessor[8080][11] Starting background thread

...etc until it maxes out at 74 and then I get the following until I restart
Tomcat at 19:47
2001-11-29 18:28:34 HttpConnector[8080] No processor available, rejecting
this connection

>>>localhost_log.2001-11-29.txt

2001-11-29 17:28:25 MyTestServlet: init
2001-11-29 18:28:48 StandardManager[/develweb] processsExpire:  Exception
during session expiration
java.lang.IllegalStateException: getAttribute: Session already invalidated
at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav
a:900)
at MyTestServlet.getName(MyTestServlet.java:192)
at MyTestServlet.valueUnbound(MyTestServlet.java:203)
at
org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.
java:1073)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:596)
at
org.apache.catalina.session.StandardManager.processExpires(StandardManager.j
ava:755)
at
org.apache.catalina.session.StandardManager.run(StandardManager.java:831)
at java.lang.Thread.run(Unknown Source)

>>>localhost_access_log.2001-11-29.txt

xxx.xx.xx.xxx - - [29/Nov/2001:18:00:06 -0500] "POST /servlet/myservlet
HTTP/1.0" 200 258
xxx.xx.xx.xxx - - [29/Nov/2001:18:00:06 -0500] "POST
/custservlet/mycustservlet HTTP/1.1" 200 116
xxx.xx.xx.xxx - - [29/Nov/2001:18:00:07 -0500] "POST /servlet/myservlet
HTTP/1.0" 200 258
xxx.xx.xx.xxx - - [29/Nov/2001:18:00:07 -0500] "POST /servlet/myservlet
HTTP/1.0" 200 258
xxx.xx.xx.xxx - - [29/Nov/2001:19:47:39 -0500] "POST /servlet/myservlet
HTTP/1.0" 200 258


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Win2K IIS/Tomcat hangs

2001-10-25 Thread Dan Rasmussen

I got this privately from Larry but I would like to
publicly thank him for nailing it on the head and solving
this problem for me.  Using the 3.2.3 redirector with 3.3
is what caused my problem.  Simply dripping in the 3.3
version instantly solved the problem. 

Thanks very much.

Dan Rasmussen


--- Larry Isaacs <[EMAIL PROTECTED]> wrote:
> The mail server is unbelievably slow at the moment.
> Here was my response.
> 
> Larry
> 
> -Original Message-
> From: Larry Isaacs 
> Sent: Wednesday, October 24, 2001 8:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Win2K IIS/Tomcat hangs 
> 
> 
> Hi Dan,
> 
> I can't tell from the log, but I believe this is the
> symptom you would get if you accidentally used the
> isapi_redirect.dll from Tomcat 3.2.3 with Tomcat 3.3.
> To be safe, I would double check this.
> 
> To shoot in the dark a little bit, what happens if
> Tomcat isn't running when you try this.  Does it behave
> the same way or provide an error like it should?  Maybe
> something else is on the receiving end.  For fun,
> you could try switching to Ajp12 and see if something
> different occurs.
> 
> In your current setup, does the Tomcat 3.3 log show any
> sign that it received anything from the Ajp13 worker?
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Dan Rasmussen [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 23, 2001 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: Win2K IIS/Tomcat hangs 
> > 
> > 
> > 
> > Hello,
> > 
> > I just joined the list (no confirmation yet so I'm not
> sure
> > this is going to take).  I did check the archives and
> have
> > seen similar postings but no info that fixes my
> problem...
> > 
> > I have been attempting to get IIS on Win2K/SP2 to play
> with
> > tomcat 3.3.  I have tomcat 3.3 installed and serving up
> the
> > Tomcat examples using this url:
> > http://localhost:8080/examples/jsp/index.html.  
> > 
> > I then used the "Tomcat IIS HowTo" to get IIS setup.  I
> got
> > to the point where I get a green up arrow on the filter
> but
> > when I try to get at 
> > 
> > http://localhost/examples/jsp/index.html
> > 
> > The browser (exploder 5 or netscape 6.1) just hangs
> (see
> > below for the tail of the iis_redirect.log which has a
> > happy look about it to my untrained eye).  I did the
> whole
> > bit with making the jakarta virtual directory and
> adding
> > the ISAPI filter.  I don't think I would get this far
> > otherwise.  
> > 
> > The redirector is a downloaded binary.  I checked the
> > registry entries.  What else could be wrong?  Is there
> > something I missed in IIS: Security?, other virtual
> > directories besides jakarta?.  Suggestions?
> > 
> > I had no problems integrating with Apache on NT and few
> > with Apache on Solaris.  IIS is a different story :( 
> > 
> > Any help greatly appreciated.
> > 
> > Thanks.
> > 
> > Dan Rasmussen
> > 
> > 
> > [jk_isapi_plugin.c (439)]: HttpFilterProc
> > [/examples/jsp/index.html] is a servlet url - should
> > redirect to ajp13
> > [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> > [/examples/jsp/index.html] is points to the web-inf
> > directory
> > [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> > [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> > [jk_worker.c (127)]: wc_get_worker_for_name, done 
> found a
> > worker
> > [jk_isapi_plugin.c (539)]: HttpExtensionProc got a
> worker
> > for name ajp13
> > [jk_ajp13_worker.c (654)]: Into
> jk_worker_t::get_endpoint
> > [jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
> > [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> > [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> > [jk_connect.c (108)]: Into jk_open_socket
> > [jk_connect.c (115)]: jk_open_socket, try to connect
> socket
> > = 2692
> > [jk_connect.c (124)]: jk_open_socket, after connect ret
> = 0
> > [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY
> to on
> > [jk_connect.c (140)]: jk_open_socket, return, sd = 2692
> > [jk_ajp13_worker.c (167)]: In
> > jk_endpoint_t::connect_to_tomcat, connected sd = 2692
> > 
> > Thats the end of the log as the world spins... waiting
> for
> > its reply.
> > 
> > 
> > 
> > =
> > -- replies to [EMAIL PROTECTED] --
> > 
> > Anything that appears after this sentence is inserted
> by 
> > Yahoo (or others) and may not be a good idea.
> > 
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> > 


=
-- replies to [EMAIL PROTECTED] --

Anything that appears after this sentence is inserted by 
Yahoo (or others) and may not be a good idea.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Win2K IIS/Tomcat hangs

2001-10-25 Thread Dan Rasmussen

Hello,

if (true == repeate message)  
{
Sorry this is a repeat... I just joined the list yesterday
and sent this to the list at the same time but didn't get
confirmation that I joined until this afternoon.  I just
started seeing traffic on the list and I'm afraid that I
might have missed any replies if it did make it to the
list. 
}

I did check the archives and have seen similar postings but
no info that fixes my problem...

I have been attempting to get IIS on Win2K/SP2 to play with
tomcat 3.3.  I have tomcat 3.3 installed and serving up the
Tomcat examples using this url:
http://localhost:8080/examples/jsp/index.html.  

I then used the "Tomcat IIS HowTo" to get IIS setup.  I got
to the point where I get a green up arrow on the filter but
when I try to get at 

http://localhost/examples/jsp/index.html

The browser (exploder 5 or netscape 6.1) just hangs (see
below for the tail of the iis_redirect.log which has a
happy look about it to my untrained eye).  I did the whole
bit with making the jakarta virtual directory and adding
the ISAPI filter.  I don't think I would get this far
otherwise.  

The redirector is a downloaded binary.  I checked the
registry entries.  What else could be wrong?  Is there
something I missed in IIS: Security?, other virtual
directories besides jakarta?.  Suggestions?

I had no problems integrating with Apache on NT and few
with Apache on Solaris.  IIS is a different story :( 

Any help greatly appreciated.

Thanks.

Dan Rasmussen


[jk_isapi_plugin.c (439)]: HttpFilterProc
[/examples/jsp/index.html] is a servlet url - should
redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf
directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a
worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker
for name ajp13
[jk_ajp13_worker.c (654)]: Into jk_worker_t::get_endpoint
[jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket
= 2692
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 2692
[jk_ajp13_worker.c (167)]: In
jk_endpoint_t::connect_to_tomcat, connected sd = 2692

Thats the end of the log as the world spins... waiting for
its reply.



=
-- replies to [EMAIL PROTECTED] --

Anything that appears after this sentence is inserted by 
Yahoo (or others) and may not be a good idea.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



RE: Win2K IIS/Tomcat hangs

2001-10-24 Thread Larry Isaacs

Hi Dan,

I can't tell from the log, but I believe this is the
symptom you would get if you accidentally used the
isapi_redirect.dll from Tomcat 3.2.3 with Tomcat 3.3.
To be safe, I would double check this.

To shoot in the dark a little bit, what happens if
Tomcat isn't running when you try this.  Does it behave
the same way or provide an error like it should?  Maybe
something else is on the receiving end.  For fun,
you could try switching to Ajp12 and see if something
different occurs.

In your current setup, does the Tomcat 3.3 log show any
sign that it received anything from the Ajp13 worker?

Cheers,
Larry

> -Original Message-
> From: Dan Rasmussen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 4:47 PM
> To: [EMAIL PROTECTED]
> Subject: Win2K IIS/Tomcat hangs 
> 
> 
> 
> Hello,
> 
> I just joined the list (no confirmation yet so I'm not sure
> this is going to take).  I did check the archives and have
> seen similar postings but no info that fixes my problem...
> 
> I have been attempting to get IIS on Win2K/SP2 to play with
> tomcat 3.3.  I have tomcat 3.3 installed and serving up the
> Tomcat examples using this url:
> http://localhost:8080/examples/jsp/index.html.  
> 
> I then used the "Tomcat IIS HowTo" to get IIS setup.  I got
> to the point where I get a green up arrow on the filter but
> when I try to get at 
> 
> http://localhost/examples/jsp/index.html
> 
> The browser (exploder 5 or netscape 6.1) just hangs (see
> below for the tail of the iis_redirect.log which has a
> happy look about it to my untrained eye).  I did the whole
> bit with making the jakarta virtual directory and adding
> the ISAPI filter.  I don't think I would get this far
> otherwise.  
> 
> The redirector is a downloaded binary.  I checked the
> registry entries.  What else could be wrong?  Is there
> something I missed in IIS: Security?, other virtual
> directories besides jakarta?.  Suggestions?
> 
> I had no problems integrating with Apache on NT and few
> with Apache on Solaris.  IIS is a different story :( 
> 
> Any help greatly appreciated.
> 
> Thanks.
> 
> Dan Rasmussen
> 
> 
> [jk_isapi_plugin.c (439)]: HttpFilterProc
> [/examples/jsp/index.html] is a servlet url - should
> redirect to ajp13
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/examples/jsp/index.html] is points to the web-inf
> directory
> [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a
> worker
> [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker
> for name ajp13
> [jk_ajp13_worker.c (654)]: Into jk_worker_t::get_endpoint
> [jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
> [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
> [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket
> = 2692
> [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
> [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
> [jk_connect.c (140)]: jk_open_socket, return, sd = 2692
> [jk_ajp13_worker.c (167)]: In
> jk_endpoint_t::connect_to_tomcat, connected sd = 2692
> 
> Thats the end of the log as the world spins... waiting for
> its reply.
> 
> 
> 
> =
> -- replies to [EMAIL PROTECTED] --
> 
> Anything that appears after this sentence is inserted by 
> Yahoo (or others) and may not be a good idea.
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 



Win2K IIS/Tomcat hangs

2001-10-23 Thread Dan Rasmussen


Hello,

I just joined the list (no confirmation yet so I'm not sure
this is going to take).  I did check the archives and have
seen similar postings but no info that fixes my problem...

I have been attempting to get IIS on Win2K/SP2 to play with
tomcat 3.3.  I have tomcat 3.3 installed and serving up the
Tomcat examples using this url:
http://localhost:8080/examples/jsp/index.html.  

I then used the "Tomcat IIS HowTo" to get IIS setup.  I got
to the point where I get a green up arrow on the filter but
when I try to get at 

http://localhost/examples/jsp/index.html

The browser (exploder 5 or netscape 6.1) just hangs (see
below for the tail of the iis_redirect.log which has a
happy look about it to my untrained eye).  I did the whole
bit with making the jakarta virtual directory and adding
the ISAPI filter.  I don't think I would get this far
otherwise.  

The redirector is a downloaded binary.  I checked the
registry entries.  What else could be wrong?  Is there
something I missed in IIS: Security?, other virtual
directories besides jakarta?.  Suggestions?

I had no problems integrating with Apache on NT and few
with Apache on Solaris.  IIS is a different story :( 

Any help greatly appreciated.

Thanks.

Dan Rasmussen


[jk_isapi_plugin.c (439)]: HttpFilterProc
[/examples/jsp/index.html] is a servlet url - should
redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf
directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a
worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker
for name ajp13
[jk_ajp13_worker.c (654)]: Into jk_worker_t::get_endpoint
[jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket
= 2692
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 2692
[jk_ajp13_worker.c (167)]: In
jk_endpoint_t::connect_to_tomcat, connected sd = 2692

Thats the end of the log as the world spins... waiting for
its reply.



=
-- replies to [EMAIL PROTECTED] --

Anything that appears after this sentence is inserted by 
Yahoo (or others) and may not be a good idea.

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



Re: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Jeff Kilbride

Actually, yes -- read the release notes for 3.2.1 that come with the
distribution.

--jeff

- Original Message -
From: "Jeff Trent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 5:30 AM
Subject: Re: Tomcat hangs if I refer to a context that doesn't exist


Actually, no - otherwise, I wouldn't have asked.  I did, however, find my
answer in the bugzilla database.  For those of you who are wondering, this
problem occurs under 3.2.1 if you remove the ROOT context / webapp.

-jeff
  - Original Message -
  From: Thomas Bezdicek
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 13, 2001 4:03 AM
  Subject: AW: Tomcat hangs if I refer to a context that doesn't exist


  Hi,

  you find it in the tomcat-documentation very easy.

  regards, tom
-Ursprüngliche Nachricht-
Von: Jeff Trent [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Juni 2001 06:40
    An: [EMAIL PROTECTED]
Betreff: Tomcat hangs if I refer to a context that doesn't exist


If I refer to a nonexistant webapp, I find that Tomcat pins my CPU
(doesn't really hang).  I need to stop tomcat and restart for the CPU to
return to normal.  I couldn't find any information on this problem in the
archives.  Anybody else see this or know what the problem might be?  I'm
using 3.2.1 on NT2000.

thanks,
jeff






RE: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Randy Layman


I'm going to have to support Thomas on this.  Not only is it covered
in the mailing list archives, but its also in the README file in
%TOMCAT_HOME%/docs, section 6.11, approximately line 292.

Randy

-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 8:30 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Tomcat hangs if I refer to a context that doesn't exist


Actually, no - otherwise, I wouldn't have asked.  I did, however, find my
answer in the bugzilla database.  For those of you who are wondering, this
problem occurs under 3.2.1 if you remove the ROOT context / webapp.

-jeff
- Original Message - 
From: Thomas Bezdicek 
To: [EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2001 4:03 AM
Subject: AW: Tomcat hangs if I refer to a context that doesn't exist


Hi,
 
you find it in the tomcat-documentation very easy.
 
regards, tom
-Ursprüngliche Nachricht-
Von: Jeff Trent [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Juni 2001 06:40
An: [EMAIL PROTECTED]
Betreff: Tomcat hangs if I refer to a context that doesn't exist


If I refer to a nonexistant webapp, I find that Tomcat pins my CPU (doesn't
really hang).  I need to stop tomcat and restart for the CPU to return to
normal.  I couldn't find any information on this problem in the archives.
Anybody else see this or know what the problem might be?  I'm using 3.2.1 on
NT2000.

thanks,
jeff



Re: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Luba Powell



Bump up the LogLevel to DEBUG in httpd.conf file 
and 
look in the log for detail messages

  - Original Message - 
  From: 
  Amos Shapira 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, June 13, 2001 4:58 
  AM
  Subject: RE: Tomcat hangs if I refer to a 
  context that doesn't exist
  
  It's 
  a known problem with 3.2.1, upgrade to 3.2.2. Worked for me so 
  far...
   
  Cheers,
   
  --Amos
  
-Original Message-From: Jeff Trent 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 2001 7:40 
AMTo: [EMAIL PROTECTED]Subject: 
Tomcat hangs if I refer to a context that doesn't exist
If I refer to a nonexistant webapp, I find that 
Tomcat pins my CPU (doesn't really hang).  I need to stop tomcat and 
restart for the CPU to return to normal.  I couldn't find any 
information on this problem in the archives.  Anybody else see this or 
know what the problem might be?  I'm using 3.2.1 on 
NT2000.
 
thanks,
jeff
 


Re: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Jeff Trent



Actually, no - otherwise, I wouldn't have 
asked.  I did, however, find my answer in the bugzilla database.  For 
those of you who are wondering, this problem occurs under 3.2.1 if you remove 
the ROOT context / webapp.
 
-jeff

  - Original Message - 
  From: 
  Thomas Bezdicek 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 13, 2001 4:03 
  AM
  Subject: AW: Tomcat hangs if I refer to a 
  context that doesn't exist
  
  Hi,
   
  you 
  find it in the tomcat-documentation very easy.
   
  regards, tom
  
-Ursprüngliche Nachricht-Von: Jeff Trent [mailto:[EMAIL PROTECTED]]Gesendet: 
Mittwoch, 13. Juni 2001 06:40An: [EMAIL PROTECTED]Betreff: 
    Tomcat hangs if I refer to a context that doesn't exist
If I refer to a nonexistant webapp, I find that 
Tomcat pins my CPU (doesn't really hang).  I need to stop tomcat and 
restart for the CPU to return to normal.  I couldn't find any 
information on this problem in the archives.  Anybody else see this or 
know what the problem might be?  I'm using 3.2.1 on 
NT2000.
 
thanks,
jeff
 


RE: Tomcat hangs if I refer to a context that doesn't exist

2001-06-13 Thread Amos Shapira



It's a 
known problem with 3.2.1, upgrade to 3.2.2. Worked for me so 
far...
 
Cheers,
 
--Amos

  -Original Message-From: Jeff Trent 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 13, 2001 7:40 
  AMTo: [EMAIL PROTECTED]Subject: Tomcat 
  hangs if I refer to a context that doesn't exist
  If I refer to a nonexistant webapp, I find that 
  Tomcat pins my CPU (doesn't really hang).  I need to stop tomcat and 
  restart for the CPU to return to normal.  I couldn't find any information 
  on this problem in the archives.  Anybody else see this or know what the 
  problem might be?  I'm using 3.2.1 on NT2000.
   
  thanks,
  jeff
   


  1   2   >