Re: Apache Tomcat hangs

2009-06-01 Thread Raquel Hernández Martinez
Hi Christopher, my jsp invoke to the servlet and it writes a pdf into a file ant send it by email. I need this functionality  because it´s the user who decides to generate or not this report. My version of jasper report it´s 2.0, I don´t know if it´s can be a bug for this version, because my

Re: retrive Arabic data

2009-06-01 Thread André Warnier
Hi Abdul. Can you write exactly what you changed to make it work ? It would help for future similar cases, if there were some tips available in the mailing list. (Particularly what was /not/ the problem). Thanks. abdul razack wrote: Hi, Please accept my appreciation for responding my

Renew SSL with Keytool for Tomcat 6.0.16

2009-06-01 Thread Alexander Diedler
Hello, I have done everything as a do for the initial creating of certificate but it doesn´t works. First If i try to import the new X.509 cert into the Keystore (with the existing SSL cert for tomcat) there is an error like the public key doesn´t match the keystore. If i remove all certs from

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Tim Funk
Worrying is good. Making sure you have metrics is better. You can cache lots of different items such as - stuff from the database - parts of a rendered page - the entire page - any combination of above But it really depends on where the bottlenecks are as you scale. Even if the DB has a few

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Robert Koberg
On Jun 1, 2009, at 7:12 AM, Tim Funk wrote: Worrying is good. Making sure you have metrics is better. You can cache lots of different items such as - stuff from the database - parts of a rendered page - the entire page - any combination of above But it really depends on where the

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Leon Rosenberg
On Mon, Jun 1, 2009 at 1:37 PM, Robert Koberg r...@koberg.com wrote: On Jun 1, 2009, at 7:12 AM, Tim Funk wrote: The key is making sure you have the ability to log how long differnt things take. (And the ability to turn them on or off)  Otherwise you are flying blind. I think you can

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Robert Koberg
On Jun 1, 2009, at 8:08 AM, Leon Rosenberg wrote: On Mon, Jun 1, 2009 at 1:37 PM, Robert Koberg r...@koberg.com wrote: On Jun 1, 2009, at 7:12 AM, Tim Funk wrote: The key is making sure you have the ability to log how long differnt things take. (And the ability to turn them on or off)

RE: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Martin Gainty
MGhopefully brief comments From: r...@koberg.com To: users@tomcat.apache.org Subject: Re: Caching rendered page - reducing hits to the backend? Date: Mon, 1 Jun 2009 07:37:56 -0400 On Jun 1, 2009, at 7:12 AM, Tim Funk wrote: Worrying is good. Making sure you have metrics is better.

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Leon Rosenberg
On Mon, Jun 1, 2009 at 2:12 PM, Robert Koberg r...@koberg.com wrote: No. It is not in the chain, well, not in the runtime chain/pipeline. It is generated before you even put it on the live server. -Rob I am not judging your solution, just saying that there are not general rules except for

RE: Windows x64 Installer

2009-06-01 Thread Jeffrey Janner
Oops, on 3) I should have said I was using the APR, but for HTTP only, not HTTPS. I was thinking AJP for some reason. -Original Message- From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Sent: Friday, May 29, 2009 5:53 PM To: Tomcat Users List Subject: RE: Windows x64 Installer

Tomcat Concurrent Requests

2009-06-01 Thread CrystalCracker
Given that each request takes 2 seconds on average. Among them, some of them take less than 500ms, and some take as long as 5 seconds or even a little more sometimes. How many such concurrent request would a tomcat server running on a double quad-core server handle? I am trying to understand

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: CrystalCracker [mailto:sudarshan.acha...@gmail.com] Given that each request takes 2 seconds on average. Among them, some of them take less than 500ms, and some take as long as 5 seconds or even a little more sometimes. How many such concurrent request would a tomcat server running

RE: Tomcat Concurrent Requests

2009-06-01 Thread CrystalCracker
The 5 seconds calls are all database or webservice calls. So they all go to waiting state. I did some load tests using JMeter, but I had problems coming to a conclusion with the data. What should I look for exactly? Because as I increase the no of concurrent requests, the app starts responding

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: CrystalCracker [mailto:sudarshan.acha...@gmail.com] The 5 seconds calls are all database or webservice calls. So they all go to waiting state. OK. So the bottleneck almost certainly isn't Tomcat. I did some load tests using JMeter, but I had problems coming to a conclusion with the

RE: Blank page when native DLL used

2009-06-01 Thread Caldarale, Charles R
From: Frank W. Zammetti [mailto:fzli...@omnytex.com] Subject: Re: Blank page when native DLL used 32-bit, and I re-confirmed I have the right download (which seems obvious anyway given that Tomcat picks it up and starts running with it, but you never know). You didn't happen to disable the

Re: Tomcat Concurrent Requests

2009-06-01 Thread David kerber
CrystalCracker wrote: Given that each request takes 2 seconds on average. Among them, some of them take less than 500ms, and some take as long as 5 seconds or even a little more sometimes. How many such concurrent request would a tomcat server running on a double quad-core server handle? At

RE: Tomcat Concurrent Requests

2009-06-01 Thread Peter Crowther
From: David kerber [mailto:dcker...@verizon.net] CrystalCracker wrote: How many such concurrent request would a tomcat server running on a double quad-core server handle? At least 8 (1 per core), but that's about all you can tell without finding where the bottlenecks are. If I wanted

Re: User tracking/monitoring

2009-06-01 Thread Chetan Chheda
Thanks Tim and Chuck. Tim,  Is this something a novice programmer like me can add to our Footer.jsp file? Can you add your recommendation to a code snippet , I would really appreciate it. Chuck, Can you tell me more about 2? How would the sessionId be displayed in the page with that

Re: User tracking/monitoring

2009-06-01 Thread Tim Funk
The snippet I post was the snippet. (if you are using jsp) But it can have security side effects. A safer snippet might be this: %@ taglib uri=http://java.sun.com/jsp/jstl/functions; prefix=fn % ${(fn:split(pageContext.session.id, '.')[fn:length(fn:split(pageContext.session.id, '.'))-1])}

Re: Apache, Tomcat, Mod_JK Configurations

2009-06-01 Thread CrystalCracker
Ok.. adding some info to mod jk logs and doing some thread and heap dumps, I figured that, during peak traffic hours, the garbage collection gets more frequest and takes longer. This slows down the overall system and the threads start piling up. Requests that used to take 2 seconds now take a

Re: Apache, Tomcat, Mod_JK Configurations

2009-06-01 Thread Rainer Jung
On 01.06.2009 18:30, CrystalCracker wrote: Ok.. adding some info to mod jk logs and doing some thread and heap dumps, I figured that, during peak traffic hours, the garbage collection gets more frequest and takes longer. This slows down the overall system and the threads start piling up.

Re: Which listeners required in server.xml?

2009-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 5/30/2009 12:43 AM, Bill Barker wrote: Christopher Schultz ch...@christopherschultz.net wrote in message Adding the APR library will give you a significant performance improvement even with the plain-old HTTP connector. It might be

Re: retrive Arabic data

2009-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 5/30/2009 10:55 AM, George Sexton wrote: Christopher Schultz wrote: On 5/28/2009 3:59 PM, George Sexton wrote: The issue is the default character set for Java. I've noticed that at least at one point in time, the default character

Re: retrive Arabic data

2009-06-01 Thread George Sexton
Christopher Schultz wrote: If you use something like one of the ISO encodings then you're tied to English Don't tell that to anyone who speaks Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak, Slovenian, Upper Sorbian, Lower Sorbian, Finnish, Danish, German,

RE: Debian Tomcat Fail

2009-06-01 Thread trojansnake12
Basically, what I am sending to the server is a byte array that is a picture taken from a cell-phone camera. My client-side code looks like this: url = new URL(urlString); connection = (HttpURLConnection) url.openConnection();

Query timeout in dbcp

2009-06-01 Thread S Arvind
Is there any possibility to mention max time a query can execute from DBCP side? our DB is Postgres and Container is tomcat 6. i dont want to give the timeout in postgres but need to set in application side based on differnet needs? Is it possible? -Arvind S Many of lifes failure are people

Re: User tracking/monitoring

2009-06-01 Thread Chetan Chheda
I had to add    %= request.getSession().getId()% for it to display the sessionId. Tim,    Can you elaborate on what the side effects would be to display the full sessionId as compared to just the session route?   Chetan From: Tim Funk funk...@apache.org To:

Re: Query timeout in dbcp

2009-06-01 Thread S Arvind
Is there anyother way to specify the query execution time out while establishing connection with the help of DBCP in tomcat? -Arvind S On Tue, Jun 2, 2009 at 12:56 AM, S Arvind arvindw...@gmail.com wrote: Is there any possibility to mention max time a query can execute from DBCP side? our DB

RE: retrive Arabic data

2009-06-01 Thread Martin Gainty
agree..languages are much easier on the western side of the oder-niesse rivers http://www.nytimes.com/2007/12/20/world/europe/20border.html (still looking for a polish translator) Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und

RE: Query timeout in dbcp

2009-06-01 Thread Martin Gainty
Resource removeAbandoned=60 ... / DBCP specifies 60 secs before recycling the connection http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html hth! Martin Everything comes to him who hustles while he waits - edison __ Verzicht

Re: retrive Arabic data

2009-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 6/1/2009 2:11 PM, George Sexton wrote: Christopher Schultz wrote: If you use something like one of the ISO encodings then you're tied to English Don't tell that to anyone who speaks Bosnian, Croatian, Czech, Hungarian,

Re: Query timeout in dbcp

2009-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 6/1/2009 3:26 PM, S Arvind wrote: Is there any possibility to mention max time a query can execute from DBCP side? What do you want to happen after the timeout? The connection execute* method throws an exception? That is going to be

Re: Debian Tomcat Fail

2009-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 TS, On 6/1/2009 3:15 PM, trojansnake12 wrote: Basically, what I am sending to the server is a byte array that is a picture taken from a cell-phone camera. My client-side code looks like this: url = new URL(urlString);

Re: Debian Tomcat Fail

2009-06-01 Thread trojansnake12
Thanks Chris. I don't doubt this is sloppy, but I was able to change around some things and get this working properly. I appreciate the help. -- View this message in context: http://www.nabble.com/Debian-Tomcat-Fail-tp23734947p23823034.html Sent from the Tomcat - User mailing list archive at

Tomcat 6.0.18 custom JAASRealm configuration problem.

2009-06-01 Thread Andy Basu
Hi all, I have been trying to use a custom JAASRealm loginmodule in my code and running into exception or 403 access denied error message. I have searched for an answer in the Tomcat FAQ, on the net using general google search, searched the bugs list. But did not get an exact answer to the

RE: Debian Tomcat Fail

2009-06-01 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Debian Tomcat Fail i = 0; len = 0; while((i = is.read(raw)) != -1) { } That's an interesting idiom. I had to read it

Re: User tracking/monitoring

2009-06-01 Thread Tim Funk
Already answered in this thread here: http://www.nabble.com/Re%3A-User-tracking-monitoring-p23792941.html -Tim Chetan Chheda wrote: I had to add %= request.getSession().getId()% for it to display the sessionId. Tim, Can you elaborate on what the side effects would be to display the

Replacing the default ROOT application

2009-06-01 Thread R Ravichandran
Hello, I would like to deploy a Spring MVC application that I developed as the ROOT application on Tomcat. I also configured the Tomcat server to run on port 80. My Spring application has JNDI references to Java mail sessions. I am unable to figure out how to get this configured. Here is what I

RE: Replacing the default ROOT application

2009-06-01 Thread Caldarale, Charles R
From: R Ravichandran [mailto:ravirajami...@gmail.com] Subject: Replacing the default ROOT application _ In the server.xml file, I created a special Context element under the Host element. Assuming you're using a current version of Tomcat (you didn't bother to tell us), you should not be

Re: Caching rendered page - reducing hits to the backend?

2009-06-01 Thread Markus Stauffer
like this: http://www.opensymphony.com/oscache/ ? Am 30.05.2009 um 21:51 schrieb Andre-John Mas: Hi, Much of the content on the site which I am in the process will be semi-static, and I want to be able to cache the rendered pages to reduce database hits. To explain: A given page will