RE: fail to download large static files in tomcat

2011-07-28 Thread Michal Singer
Regarding the question I asked on downloading large static files a while ago, I got a reply now: hi, i got the same issue today, environment: windows xp, tomcat 7 with nio connector; it works after i try to add useSendfile=false in server.xml Connector section; you could have a try I

Re: Wrong Response returned for a Request

2011-07-28 Thread Robert Elliot
On 28 Jul 2011, at 00:24, David Rees dree...@gmail.com wrote: On Wed, Jul 27, 2011 at 10:39 AM, Mark Thomas ma...@apache.org wrote: On 27/07/2011 17:23, Robert Elliot wrote: We are using Tomcat 6.0.29, and occasionally experiencing concurrency issues which look very much like the wrong

Re: Updating JAR META-INF/resources at runtime

2011-07-28 Thread Pid
On 27/07/2011 17:06, David Wolverton wrote: Thanks Ognjen, Using 'reloadable' does cause the resources to update. However, this is not the solution I am looking for because it does this by reloading the webapp. The classloader initialises at loadtime, in order to release resources and load

Re: Custom URL configuration in Tomcat

2011-07-28 Thread Markus Schönhaber
28.07.2011 05:57, Dhana kumar: instead of http://localhost:8080/meobizWeb/index.html, could we make url accessible across the intranet, something like this,. http://www.mydomain.com/meobizWeb/index.html Yes. Configure Tomcat to listen on port 80 and configure your internal DNS to resolve the

Re: Updating JAR META-INF/resources at runtime

2011-07-28 Thread Pid
On 28/07/2011 08:31, Pid wrote: On 27/07/2011 17:06, David Wolverton wrote: Thanks Ognjen, Using 'reloadable' does cause the resources to update. However, this is not the solution I am looking for because it does this by reloading the webapp. The classloader initialises at loadtime, in

Re: Wrong Response returned for a Request

2011-07-28 Thread Pid
On 28/07/2011 07:34, Robert Elliot wrote: On 28 Jul 2011, at 00:24, David Rees dree...@gmail.com wrote: On Wed, Jul 27, 2011 at 10:39 AM, Mark Thomas ma...@apache.org wrote: On 27/07/2011 17:23, Robert Elliot wrote: We are using Tomcat 6.0.29, and occasionally experiencing

Re: fail to download large static files in tomcat

2011-07-28 Thread Pid
On 28/07/2011 07:31, Michal Singer wrote: Regarding the question I asked on downloading large static files a while ago, I got a reply now: hi, i got the same issue today, environment: windows xp, tomcat 7 with nio connector; it works after i try to add useSendfile=false in server.xml

RE: fail to download large static files in tomcat

2011-07-28 Thread Michal Singer
What works? When using nio connector with this parameter useSendFile=false, the load of large static files works fine. Before I set it to false it failed. As for the other questions: I don't know why it is slow, maybe the client's web server has some kind of a caching and the first time

Re: Wrong Response returned for a Request

2011-07-28 Thread Robert Elliot
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, 28 July, 2011 9:07:13 AM Subject: Re: Wrong Response returned for a Request On 27/07/2011 17:23, Robert Elliot wrote: We are using Tomcat 6.0.29, and occasionally

Re: Wrong Response returned for a Request

2011-07-28 Thread Pid
On 28/07/2011 09:26, Robert Elliot wrote: - Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, 28 July, 2011 9:07:13 AM Subject: Re: Wrong Response returned for a Request On 27/07/2011 17:23, Robert Elliot wrote: We are using

Re: fail to download large static files in tomcat

2011-07-28 Thread Pid
On 28/07/2011 09:19, Michal Singer wrote: What works? When using nio connector with this parameter useSendFile=false, the load of large static files works fine. Before I set it to false it failed. Are you still attempting to resolve this, or just commenting? p

RE: fail to download large static files in tomcat

2011-07-28 Thread Michal Singer
First, I wanted to add my comment so anyone who has this problem, can know how to solve this. And also I asked why compression does not seem to improve? And why first upload for client seems to be slowe? -Original Message- From: Pid [mailto:p...@pidster.com] Sent: ה 28 יולי 2011 11:40

Re: Updating JAR META-INF/resources at runtime

2011-07-28 Thread Mark Thomas
On 27/07/2011 17:06, David Wolverton wrote: Thanks Ognjen, Using 'reloadable' does cause the resources to update. However, this is not the solution I am looking for because it does this by reloading the webapp. It can take a lot of time for the webapp to restart and cause other side

Re: Wrong Response returned for a Request

2011-07-28 Thread Mark Thomas
On 28/07/2011 07:34, Robert Elliot wrote: On 28 Jul 2011, at 00:24, David Rees dree...@gmail.com wrote: On Wed, Jul 27, 2011 at 10:39 AM, Mark Thomas ma...@apache.org wrote: On 27/07/2011 17:23, Robert Elliot wrote: We are using Tomcat 6.0.29, and occasionally experiencing

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-28 Thread Ian Marsh
Right, I have taken a memory snapshot using YourKit of the system running Tomcat-7.0.10 after about 1 hour, when the Old Gen memory was beginning to reach its maximum. I am not completely sure what information is useful for you to know as I have not used YourKit before so I am working from the

Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
Good day. I have the following problem with my tomcat. Sometimes, some threads are keep in service stage for a long time (really never exit from this stage), this causes that tomcat uses a hight percentage of the CPU (100 % of 2 or 3 cores) thus the webapp executes very slow. I have a

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Pid
On 28/07/2011 16:09, Alejandro Henao González wrote: Good day. I have the following problem with my tomcat. Sometimes, some threads are keep in service stage for a long time (really never exit from this stage), this causes that tomcat uses a hight percentage of the CPU (100 % of 2 or 3

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
Ok. i have the Thread Dump. Analyzing, the problem is with the class HashMap. here is the thread thump. I've highlighted in red the Threads with the problem. Any solution? could be a programation error of the webapp? Thanks. 2011-07-28 11:26:30 Full thread dump Java HotSpot(TM) 64-Bit

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-28 Thread Mark Thomas
On 28/07/2011 12:29, Ian Marsh wrote: Right, I have taken a memory snapshot using YourKit of the system running Tomcat-7.0.10 after about 1 hour, when the Old Gen memory was beginning to reach its maximum. OK. I think a little more digging is required but this might be heading somewhere

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
most likely you have GC running all the time http-bio-80-exec-107 daemon prio=10 tid=0x2aaab31ea000 nid=0x47b2 runnable [0x436ab000] java.lang.Thread.State: RUNNABLE at java.util.HashMap.get(HashMap.java:303) at sae.HTMLEncoder.encode(HTMLEncoder.java:46) this should not be a stage

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
I dont believe that have GC running all the time, but the GC is called in the above line to HTMLEncoder.encode. as follows. System.gc(); resultado = htmlEncoder.encode(resultado); response.reset(); may be this the problem? why? Thanks. - Mensaje original - De: Filip Hanik - Dev

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
that's an academic exercise for you, in the meantime, add in this option to your startup options -XX:-DisableExplicitGC Filip On 7/28/2011 1:07 PM, Alejandro Henao González wrote: I dont believe that have GC running all the time, but the GC is called in the above line to HTMLEncoder.encode.

Trouble with List Application function of Tomcat Manager

2011-07-28 Thread Beohm, Thomas
Hello! I'm running Tomcat 7.0.11 on Windows Server 2008 Enterprise, and recently installed Windows Updates (to the tune of like 80 of them) on the server. After doing so, when attempting to view the list of web apps running in Tomcat, I get the following:

Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-28 Thread Sudeep Pradhan
Hi, I have a CometProcessor Servlet which is used for streaming system events to a http client. I have SSL enabled on the server. I use *curl* as the http client. I get streaming events on the console. But when I do a Ctrl-C on the console there no End event is raised and hence the connection

Re: Tomcat 6 not working with JDBC driver for MySQL

2011-07-28 Thread A Df
Hello Everyone: [SOLVED] I finally got it to work. Thanks to everyone that helped!! BTW, should I put the word solved in the subject? I had to create a Base class to setup the connection and then have another class extend it. The subclass only dealt with methods for executing statements.

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Alejandro Henao González
Ok. i will trie with this option. - Mensaje original - De: Filip Hanik - Dev Lists devli...@hanik.com Para: Tomcat Users List users@tomcat.apache.org Enviados: Jueves, 28 de Julio 2011 14:20:26 Asunto: Re: Problem with threads in stage Service (Tomcat 7.0.14) that's an academic exercise

Question on mod_jk and tomcat

2011-07-28 Thread chris derham
All, We have apache running on Windows Web Server 2008 R2, fronting tomcat. We use mod_jk to connect. We see these kind of log messages in mod_jk logs. What do they mean? [Thu Jul 28 12:30:56 2011] [14264:10144] [info] jk_ajp_common.c (1882): Writing to client aborted or client network problems