Pb with thread and http-connector

2005-04-21 Thread Xavier AMBROSIONI
Hi,


I'm running tomcat 4.1.31 on HP-UX 11i with the HotSpot JVM 1.4.2_02.
I'm using a Coyote HTTP/1.1 Connector.
I'm investigating the following memory issue : the heap size grows until
the -Xmx value and then the I have a java.lan.OutOfMemory exception.
Using HPjmeter to profile my appliation, I discovered that tomcat
creates new http thread and destroys the older. The number of thread is
stable (betwenn 5 and 10).
I don't understand that behavior and I suspect that it's related with my
memory issue.

Someone has an idea on that behavior ? Is it a normal one ?
How can I configure tomcat (or the coyote connector) to log why it
creates and kills thread ?


Thank you for your help

Xavier

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



Why tomcat start and stop threads ?

2005-04-19 Thread Xavier AMBROSIONI
Hi,

I'm running a home made application on tomcat 4.1.31 on a HP-UX 11i box
with the HotSpot JVM 1.4.2_02. I'm using a Coyote HTTP/1.1 Connector.
The heap size of the tomcat process grows until it reachs the value I
set with the -Xmx parameter. At this point I have some
java.lang.OutOfMemory exception in my application.
Investigating that problem, I discovered that tomcat creates new http
thread and kill the older one continually. The number of http threads is
always between 5 and 10.
I think that my memory problem is related with that thread behavior.

On the same box I'm running another web application in a second tomcat
instance without that memory problem and tomcat does not create new http
thread. The number of simultaneous connections is equivalent on both
applications.

Is it possible to start tomcat in a debug mode to understand why it
create/kill http thread ?
Is is possible that my application crashes the http thread without
releasing the memory used by thesethread ?


Thank you for your help

Xavier

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



Re: How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-06 Thread Xavier Ambrosioni
You can use the mod_rewrite module in apache to rewrite and redirect URL
from port 80 to port 8080.
With this module, apache can be used as a proxy that only redirect urls
to the right port.


Xavier



[EMAIL PROTECTED] wrote:
> 
> I'd like to run Tomcat on port 80 but I don't want to run it as root.  Is it
> possible to run it on 8080 yet have the users access it via port 80?  My
> admin has set it up this way but the problem is all relative links in my app
> show up as :8080.  So once the user clicks on a link they see 8080 from then
> on.
> 
> Thanks,
> Michael Mattox
> 
> --
> This E-mail is confidential.  It may also be legally privileged.  If you are
> not the addressee you may not copy, forward, disclose or use any part of it.
> If you have received this message in error, please delete it and all copies
> from your system and notify the sender immediately by return E-mail.
> Internet communications cannot be guaranteed to be timely, secure, error or
> virus-free.  The sender does not accept liability for any errors or omissions.
> 
> -
> 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: upgrade from tomcat4.1.12 to 4.1.24

2003-06-06 Thread Xavier Ambrosioni
thanks, it's ok.

Now I have another problem! 
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Log4jFactory

I found this class in commons-logging.jar file in
$TOMCAT_HOME/server/lib.
So, why I have this error ?

In my previous installation of tomcat, they put this jar file in
$TOMCAT_HOME/common/lib  Why ?
I can make a symbolic link between
$TOMCAT_HOME/common/lib/commons-logging.jar and
$TOMCAT_HOME/server/lib/commons-logging.jar but I don't think that's the
better solution.


Thank you for your help

Xavier



[EMAIL PROTECTED] wrote:
> 
> Rename $TOMCAT_HOME/server/lib/servlets-cgi.renametojar
> to $TOMCAT_HOME/server/lib/servlets-cgi.jar
> and
> 
> edit $TOMCAT_HOME/conf/web.xml to enable the cgi servlets
> 
> -Tim
> 
> Xavier Ambrosioni wrote:
> > Hi all,
> >
> > I upgraded my tomcat installation from 4.1.12 to 4.1.24.
> > Now I have the following problem when I run my webapp:
> >
> >java.lang.ClassNotFoundException:
> > org.apache.catalina.servlets.CGIServlet
> >
> >
> > Someone know why I have this error ?
> > Which jar files contains this class ?
> >
> >
> > thank you for your help
> >
> > Xavier
> >
> > -
> > 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]



upgrade from tomcat4.1.12 to 4.1.24

2003-06-06 Thread Xavier Ambrosioni
Hi all,

I upgraded my tomcat installation from 4.1.12 to 4.1.24.
Now I have the following problem when I run my webapp: 

   java.lang.ClassNotFoundException:
org.apache.catalina.servlets.CGIServlet


Someone know why I have this error ?
Which jar files contains this class ?


thank you for your help

Xavier

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