Re: Effect of MaxThreads

2008-01-16 Thread Berglas, Anthony
have any link between the number of threads (which are > only > for active requests) and number of Socket connections. > > "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > EXCH2.na.uis.unisys.com... > > From: Ber

Effect of MaxThreads

2008-01-13 Thread Berglas, Anthony
Tomcat connectors provide maxThreads parameter to throttle the number of concurrent transactions. But what actually happens when this number is exceeded? Are additional requests queued, or are they simply bounced? We have Apache in front of Tomcat (for dubious reasons). Where is the best place

DBCP user/password specified in getConnection

2008-01-13 Thread Berglas, Anthony
We have an app that uses connection pooling, but tries to specify the username/password in the code. In particular, it does not want the password to be in plain text in an xml file. There is only one username involved, so no issues with heterogeneous connection pools. Pretty basic requirement.

Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Berglas, Anthony
Hello, I am trying to set up 0racle connection pooling. Some of the parameters are reflected normally, but some are specified via a property lists. How do I set the property list properties using Tomcat/JNDI? I can set up the basic DataSource, but I cannot set the maxLimit parameter on the max

RE: Fix to Tomcat Jasper slow .tag compilation problem.

2007-10-29 Thread Berglas, Anthony
piling your jsp files help you instead? AFAIK that works on > the > tags so you probably don't need to touch jspc. > > On 10/29/07, Berglas, Anthony <[EMAIL PROTECTED]> wrote: > > > > As described in a previous post, Jasper is *extremely* slow at compiling > >

Fix to Tomcat Jasper slow .tag compilation problem.

2007-10-29 Thread Berglas, Anthony
As described in a previous post, Jasper is *extremely* slow at compiling .tag files packaged in a .jar. Tens of seconds every time you touch a new .jsp for the first time. Almost unusable if you use .tags extensively, as I do. The following few lines is a hack to fix this. The added code is mar

Jasper/Tomcat custom .tag processing extremely slow if in .jars -- profiling results

2007-09-20 Thread Berglas, Anthony
PROBLEM JSPs that make use of custom .tag files can be very slow to compile -- several tens of seconds for each .jsp. It takes longer to compile a single .jsp than the entire Tomcat 6 & Jasper source. Our application uses .tag files fairly heavily to provide boiler plate text for headings, men

Tomcat SSL/HTTPS Performance vs Apache

2007-08-20 Thread Berglas, Anthony
Has anyone done any performance analysis of Tomcat's SSL performance, especially compared to Apache. It is rumored that Tomcat is unusable without Apache in front for SSL, but I wonder if that is true. Our application will have lots of clients making short connections, so it is the RSA processi

Jasper Gobbling exceptions

2007-07-10 Thread Berglas, Anthony
When I call a JSP directly via web.xml exceptions provide a number of "root cause" stack traces the second or third of which indicates what the exception actually was and, with some deciphering, which .tag file generated it. The trace is shown on both the form and Tomcat standard output, which is

RE: Jasper compiler crashes

2007-05-29 Thread Berglas, Anthony
time, so that I can keep the ability to recompile my JSP files. > > http://people.apache.org/~fhanik/precompile.html > http://people.apache.org/~fhanik/tomcat-6-precompile.xml > > I just whipped up the v6 script, but I believe it to work properly. > > Filip > > Berglas

Jasper compiler crashes

2007-05-28 Thread Berglas, Anthony
When I try to precompile I get a null pointer exception deep in .servlet.JasperLoader.loadClass. Happens for almost all of my .jsps. They work fine with incremental compile. They do use tags defined with JSTL .tag files. Tags call tags. tomcat-6.0.10-src If anyone knows of decent docs on p

RE: Jasper compiler very slow

2007-04-19 Thread Berglas, Anthony
I misunderstood your > post, the reply I posted is irrelevant. > > Here's my new reply : > > On 4/18/07, Berglas, Anthony <[EMAIL PROTECTED]> wrote: > > Hello All, > > > > The compile time for my .jsp pages is extremely slow -- like 10 second

Jasper compiler very slow

2007-04-18 Thread Berglas, Anthony
Hello All, The compile time for my .jsp pages is extremely slow -- like 10 seconds on a modern PC to the first time any page is run. Painful during development. I can compile a vast amount of Java code in 2 seconds. It is difficult to imagine what could be happening within Jasper to be that slo

RE: Basic Auth without web.xml not working

2007-03-29 Thread Berglas, Anthony
Thanks for your replies, I think that the matter is settled. > > The underlying issue is that when Role R is required for Page P then > > *TWO* things need to happen depending on whether the user is in role R. > > These are > > > > 1. Allow or block access to page P. > > 2. Grey out or not grey ou

RE: Basic Auth without web.xml not working

2007-03-27 Thread Berglas, Anthony
Thanks for your reply. > Getting the user name and password > > String authorization = request.getHeader("Authorization"); > if (authorization == null) return 0; > > // Authorization headers looks like "Basic blahblah", > // where blahblah is the b

RE: Basic Auth without web.xml not working

2007-03-27 Thread Berglas, Anthony
n an optimization. isUserInRole etc. needs to have an extra test: if (! authenticationHeaderProcessed() ) processAuthenticationHeader(); I'll hack around it if there is no magic option. Anthony > Berglas, Anthony wrote: > > Tomcat seems to only check the Authorization: he

Basic Auth without web.xml not working

2007-03-26 Thread Berglas, Anthony
Tomcat seems to only check the Authorization: headers if there is some explicitly declared in web.xml. However, it appears that the optimization has been incorrectly implemented because it does not then recheck the header if request.isUserInRole(...) etc. are called. So users cannot log into a