Re: URL Import Question

2008-04-28 Thread Mark Thomas
Stephen Caine wrote: We are using a c:import url tag. Under most circumstances this works just fine, but when it is iterated hundreds of times within the same page, it causes the java process to quickly exhaust threads. This is on a 64 bit machine with a 2 gig heap size. The number of thread

Partial context reload

2008-04-28 Thread Nilesh Bansal
Hi all, I have a question regarding context reloading in tomcat. Our app consists of two type of Java class files (1) core modules consisting of many singletons which are initialized once by reading large files from filesystem at the start of application (2) helper classes mostly for formatting, e

Re: TOMCAT CLUSTERING HOWTO

2008-04-28 Thread karthikn
Hi The Following was done for the Clustering (2 tomcats ) Values TOMCAT5523_ITOMCAT5523_II Startup 80818082 ShutDown80078008 APJ 80098010 TCP Listener40014002 tcpListenAddressautoauto jvmRoute

Tomcat takes 2 hours to start

2008-04-28 Thread jitesh sharma
Hi all, I have successfully installed Tomcat 5.5.27 over my Solaris system with x86 architecture. but when i tried to start tomcat it takes almost 2 hours to start. when i start the server in normal mode with command " /opt/tomcat/in/catalina.sh run" it starts in almost 2 hours. but with debu

Re: how redirect urls

2008-04-28 Thread Ken Bowen
Use http://tuckey.org/urlrewrite/ It will let you easily map http://www.bla.com to http://bla1.com. On Apr 28, 2008, at 7:52 PM, Pavel Pragin wrote: Hello, Can I add a configuration to redirect from one URL to another. So if the user goes to http://www.bla.com it will redirect to htt

URL Import Question

2008-04-28 Thread Stephen Caine
All, This question may not belong here, so let me apologize in advance if this is posted inappropriately. We are using a c:import url tag. Under most circumstances this works just fine, but when it is iterated hundreds of times within the same page, it causes the java process to quickly

how redirect urls

2008-04-28 Thread Pavel Pragin
Hello, Can I add a configuration to redirect from one URL to another. So if the user goes to http://www.bla.com it will redirect to http://www.bla1.com . Is it something I need to add to server.xml in Tomcat. Tomcat is using the Coyote http connector. Thanks

Re: URL Import Question

2008-04-28 Thread Ken Bowen
Don't let it go. Just use the top mail link at the bottom of every message. On Apr 28, 2008, at 7:09 PM, Stephen Caine wrote: Mark, The correct procedure is to create a new message with a new subject. This will start a new thread. Actually, this is what I thought I did. My sincere apolo

RE: Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

2008-04-28 Thread Caldarale, Charles R
> From: Ben Stover [mailto:[EMAIL PROTECTED] > Subject: Into which dir do I have to deploy web service *.war > files ? "Hot" deployment or restart required? > > Into which dir in Tomcat installation do I have to > deploy/copy web service *.war files ? For a default Tomcat configuration, the no

Re: Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

2008-04-28 Thread Mark Thomas
Ben Stover wrote: Into which dir in Tomcat installation do I have to deploy/copy web service *.war files ? For a default installation, any war files (web service or not) placed in $CATALINA_HOME/webapps will be auto-deployed. There should be no need for a restart. Are you expecting Tomcat

Re: URL Import Question

2008-04-28 Thread Mark Thomas
Stephen Caine wrote: Mark, The correct procedure is to create a new message with a new subject. This will start a new thread. Actually, this is what I thought I did. My sincere apologies. Would it be better for me to start a new thread or should I just let this go? The headers never lie

Into which dir do I have to deploy web service *.war files ? "Hot" deployment or restart required?

2008-04-28 Thread Ben Stover
Sorry for these newbie questions: I know the answers only for JBoss. So I need assistance to do the same with Tomcat: Into which dir in Tomcat installation do I have to deploy/copy web service *.war files ? Is there a "hot" deployment in Tomcat? Read: Do I have to restart Tomcat in order to let

Re: URL Import Question

2008-04-28 Thread Stephen Caine
Mark, The correct procedure is to create a new message with a new subject. This will start a new thread. Actually, this is what I thought I did. My sincere apologies. Would it be better for me to start a new thread or should I just let this go? Stephen --

Re: URL Import Question

2008-04-28 Thread Mark Thomas
Stephen Caine wrote: All, This question may not belong here, so let me apologize in advance if this is posted inappropriately. When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. This is known

URL Import Question

2008-04-28 Thread Stephen Caine
All, This question may not belong here, so let me apologize in advance if this is posted inappropriately. We are using a c:import url tag. Under most circumstances this works just fine, but when it is iterated hundreds of times within the same page, it causes the java process to quickly

Re: Choosing the "right" session id

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Christopher Schultz wrote: | This means that, for users who are using both applications at once, | all requests to '/foo' have TWO values sent for the JSESSIONID | cookie. It appears that Tomcat will try both cookie ids and use the | one that ac

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, Other than Mark's comments... Larry Prikockis wrote: | 1) Any thoughts on why the Apache SSL -> Tomcat combination should be so | much slower? If your transactions are short, it's certainly possible that most of t

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, Larry Prikockis wrote: | Mark H. Wood wrote: |> That's certainly worth thinking about. What exactly do you mean by |> "performance"? | | good point... shoulda been more specific-- we were mainly looking at raw | connections per second and thr

Choosing the "right" session id

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm having a weird problem in production that I completely understand but I'm not sure if there's a good way to fix it without re-locating one of my applications. I have 3 webapps running in separate VMs. One of them is running as ROOT (context

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis
Mark H. Wood wrote: On Mon, Apr 28, 2008 at 11:27:09AM -0400, Larry Prikockis wrote: Specifically, we have a webapp on a Windows 2003 server that utilizes Apache 2.2 SSL as a frontend and mod_proxy_ajp to send requests to Tomcat 5.5.17 (on the same server). By eliminating the Apache frontend

Re: removeAbandonedTime in DBCP DataSource

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jin, Jin Kim wrote: | In Tomcat documentations, the removeAbandonedTime¡¯ | attribute is the number of seconds a dB connection has | been idle before it is considered abandoned. | | Is the idle time calculated since the connection was | borrowed from

removeAbandonedTime in DBCP DataSource

2008-04-28 Thread Jin Kim
Hello, In Tomcat documentations, the removeAbandonedTime¡¯ attribute is the number of seconds a dB connection has been idle before it is considered abandoned. Is the idle time calculated since the connection was borrowed from the pool? Or, is it calculated from the last time the connection has b

Re: R: How to close idle connections

2008-04-28 Thread Alan Chaney
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | I'll bet money the added, idle postgres connections are just sleeping | while they wait for work. Given idle connections contribute virtually | no additional load, don't see his argument that

Re: R: How to close idle connections

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: | I'll bet money the added, idle postgres connections are just sleeping | while they wait for work. Given idle connections contribute virtually | no additional load, don't see his argument that idle connections | contribute

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Yuval Perlov
Out tomcat servers are handling around 30K SSL hits every 5 minutes with very little effort (10% cpu average on a dual core machine, good response time). We tried to put in httpd in front thinking we can squeeze out better performance and memory consumption. The system just couldn't handle th

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry, Other than Mark's comments... Larry Prikockis wrote: | 1) Any thoughts on why the Apache SSL -> Tomcat combination should be so | much slower? If your transactions are short, it's certainly possible that most of the time is taken up by movin

Re: Large HTML file not getting compressed despite compressionenabled

2008-04-28 Thread DIGLLOYD INC
Well, I'm not using APR, just the default connector. And I cannot get Tomcat to ever compress an HTML or text file of any size. It's as if it completely ignores the setting. I've tried small medium and large html and text files, and it doesn't matte whether I set compression to "on",

Re: httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Mark H. Wood
On Mon, Apr 28, 2008 at 11:27:09AM -0400, Larry Prikockis wrote: > I know the latest edition of the O'Reilly Tomcat book by Brittain and > Darwin strongly advocates the use of standalone Tomcat as opposed to the > traditional httpd->Tomcat approach, but this seems to be somewhat of a > paradigm

Re: Fw: Processing of multipart/form-data request failed. Socket read failed

2008-04-28 Thread Alex Jacoby
Similar problem here - only seeing it with Safari, only going through apache, only on the first try (canceling upload and trying again always works). Any solutions yet? tomcat 5.5.26, apache 2.2.6 Thanks, Alex ps- I did a tomcat thread dump when it hung. Here's where it appears to be stuck:

Re: Tomcat HTTTP Connectior Hangs

2008-04-28 Thread Filip Hanik - Dev Lists
you keep with holding information, post the entire thread dump, in its native format Filip Barak Yaish wrote: My mistake, you right. There is one thread waiting for a db connection from the pool: where 0x184e [1] java.lang.Object.wait (native method) [2] com.mchange.v2.resourcep

httpd SSL -> Tomcat VS. Tomcat SSL standalone?

2008-04-28 Thread Larry Prikockis
I know the latest edition of the O'Reilly Tomcat book by Brittain and Darwin strongly advocates the use of standalone Tomcat as opposed to the traditional httpd->Tomcat approach, but this seems to be somewhat of a paradigm shift for most people. I'm interested in hearing what the wider commun

Re: TOMCAT CLUSTERING HOWTO

2008-04-28 Thread Mark Thomas
karthikn wrote: Hi Somebody Please Help me with this form http://wiki.apache.org/tomcat/FAQ/Tomcat_User#Q2 Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: R: How to close idle connections

2008-04-28 Thread David Fisher
On Apr 28, 2008, at 9:59 AM, Alan Chaney wrote: David Smith wrote: No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process

R: R: How to close idle connections

2008-04-28 Thread Enrico Sasdelli
David Smith wrote: >I'll bet money the added, idle postgres connections are just sleeping >while they wait for work. Given idle connections contribute virtually >no additional load, don't see his argument that idle connections >contribute to a database overload. If the minor increase in overhe

Re: R: How to close idle connections

2008-04-28 Thread Andrew Miehs
On 28/04/2008, at 4:59 PM, Alan Chaney wrote: David Smith wrote: No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process? If

Re: R: How to close idle connections

2008-04-28 Thread Alan Chaney
David Smith wrote: No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process? If so, I will set maxIdle="2" and everyone will be ha

RE: Deploying discovered web applications

2008-04-28 Thread Caldarale, Charles R
> From: Jonathan O'Donovan [mailto:[EMAIL PROTECTED] > Subject: Re: Deploying discovered web applications > > Or do you mean that some of the files have a timestamp set > to a time in the future? Yes - transferring files from some system to another with a different time base can cause "interest

Re: Deploying discovered web applications

2008-04-28 Thread Jonathan O'Donovan
Hi Chuck - many thanks for your help. I'm not sure what you mean by set in the future. Do you mean that the timestamp of some files get reset at some point after deployment and this makes tomcat redeploy. Or do you mean that some of the files have a timestamp set to a time in the future? I sea

Re: TOMCAT CLUSTERING HOWTO

2008-04-28 Thread karthikn
Hi Somebody Please Help me with this form with regards Karthik karthikn wrote: Hi I have few Questions which i was not able to get TOMCAT CLUSTERING HOWTO and form. a) Clustering 1) Do we need to deploy the war files on each individual Tomcat when joined the clustering.

Re: R: How to close idle connections

2008-04-28 Thread David Smith
No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative process? If so, I will set maxIdle="2" and everyone will be happy (expecially me :)

R: R: How to close idle connections

2008-04-28 Thread Enrico Sasdelli
Christopher Schultz wrote: >| Enrico Sadelli wrote: >| If so, I will set maxIdle="2" and everyone will be happy (especially me :) > >That's it! But I suspect that this setting will reduce your performance, >especially if you have an application with lots of db access and >sporadic traffic patterns.

Re: CPong error

2008-04-28 Thread darinpope
I cannot reproduce this error on demand. It happens sporadically throughout all the logs. I did remove socket_timeout and set maxThreads to 380 and I'm still seeing the exact same errors: [1660:3036] [info] jk_ajp_common.c (840): awaited reply cpong, received 3 instead [1660:3036] [info] jk_ajp_

RE: Tomcat HTTTP Connectior Hangs

2008-04-28 Thread Barak Yaish
My mistake, you right. There is one thread waiting for a db connection from the pool: > where 0x184e [1] java.lang.Object.wait (native method) [2] com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable (BasicResourcePool.java:1,315) [3] com.mchange.v2.resourcepool.BasicResourcePool.pr

Re: R: How to close idle connections

2008-04-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Enrico, Enrico Sasdelli wrote: | No, I have at most 20 idle connections, that's goes right, but my boss want | [fewer] idle connections to avoid to overload the database server. So there | isn't way to close an idle connection to remove the relative

R: How to close idle connections

2008-04-28 Thread Enrico Sasdelli
Thanks for reply, >I see you have maxIdle="20". Do you have more that 20 connections >sitting idle? Is this really that much of a concern? As long as the >connections are released (closed) and returned to the pool, I don't see >the problem. No, I have at most 20 idle connections, that's go

Re: How to close idle connections

2008-04-28 Thread David Smith
I see you have maxIdle="20". Do you have more that 20 connections sitting idle? Is this really that much of a concern? As long as the connections are released (closed) and returned to the pool, I don't see the problem. The entire idea of a connection pool is the system keeps around a set of

RE: Tomcat HTTTP Connectior Hangs

2008-04-28 Thread Caldarale, Charles R
> From: Barak Yaish [mailto:[EMAIL PROTECTED] > Subject: Tomcat HTTTP Connectior Hangs > > thread dump of the JVM running the tomcat does not show > any stuck thread The above is rather hard to believe - you might want to post the thread dump, or at least non-duplicate parts of it. Are your da

Tomcat HTTTP Connectior Hangs

2008-04-28 Thread Barak Yaish
Hello all, I'm running tomcat 5.5.23 on CentOS5 machine, JAVA1.6.2. Once every few days, Tomcat hangs. The Servlet deployed into it seems to be still running (keep writing to log), but telnet to 8080 hangs, browsing to tomcat' homepage hangs. Catalina.out doesn't show any exceptions, thread dum

RE: Deploying discovered web applications

2008-04-28 Thread Caldarale, Charles R
> From: Jonathan O'Donovan [mailto:[EMAIL PROTECTED] > Subject: Deploying discovered web applications > > I was wondering if anybody has encountered a situation where > Tomcat keeps deploying a given webapp? > > I noticed that it has cropped up on this forum before but > there doesn't seem to

How to close idle connections

2008-04-28 Thread Enrico Sasdelli
Hi all, I use tomcat-6.0.14 and postgresql-8.1 with JNDI connection pool, after a while, my web application (written in Java/JSP), creates many database connections and postgres processes. But all of these connections are signed as "Idle", I want to close this idle connections to avoid getting to g

Deploying discovered web applications

2008-04-28 Thread Jonathan O'Donovan
Hi, I was wondering if anybody has encountered a situation where Tomcat keeps deploying a given webapp? I noticed that it has cropped up on this forum before but there doesn't seem to have been any solution found. . The following is continually logged every 15 seconds to the context logger of

Re: Help Needed with Tomcat Stack Traces

2008-04-28 Thread Jonathan O'Donovan
Thanks a lot for that help Christopher - I am trying to debug someones else's app here so it can get tricky! Best Wishes, Jonathan

TOMCAT CLUSTERING HOWTO

2008-04-28 Thread karthikn
Hi I have few Questions which i was not able to get TOMCAT CLUSTERING HOWTO and form. a) Clustering 1) Do we need to deploy the war files on each individual Tomcat when joined the clustering. >> "deploy your apps only to one server, and the cluster will distribute the deplo