Re: 11 recommendations for posters to this list

2008-12-02 Thread Brantley Hobbs
12) Be sure to top post. I LOL'd. André Warnier wrote: Dear Posters, if you want to get fast, terse, to-the-point answers on this list : 1) start with a subject like Tomcat does not work That always gets immediate attention. It does not really matter if the problem is really in

Re: How to watch active sessions size

2008-10-28 Thread Brantley Hobbs
btw, how does lambdaprobe does it? I mean the size? Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) I once tried to create a sizeof util, and it works

Re: Tomcat not using multiple cores

2008-10-16 Thread Brantley Hobbs
I think that this is a garbage collection issue. Enable the garbage collection output to see if that's the case (the -verbose:gc flag) . I struggled with this myself just a month ago and ended up learning more about Java GC than I ever wanted to know. The gist of it is that when the JVM

Re: Tomcat not using multiple cores

2008-10-16 Thread Brantley Hobbs
This will be a helpful document: http://java.sun.com/docs/hotspot/gc5.0/ergo5.html Brantley Matthew Laird wrote: We're pulling our hair out with a Tomcat issue. We have an in-house application running on Tomcat 5.5 with Sun JDK 1.6. The machine is an x86 dual-CPU, quad core (8 cores total)

Re: Tomcat not using multiple cores

2008-10-16 Thread Brantley Hobbs
: From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat not using multiple cores I think that this is a garbage collection issue. Extremely unlikely, since the OP has already stated: The only time I began to see the other cores actually start being used is when I enabled

Re: Tomcat not using multiple cores

2008-10-16 Thread Brantley Hobbs
Matt, Chuck is right. You want to get real information. Try the verbose GC output flag on the JVM and see what that says. If you /don't/ see a bunch of major collections in the output while that task is running, then GC is not your problem. B. Caldarale, Charles R wrote: From: Matthew

Lambda probe

2008-10-14 Thread Brantley Hobbs
Does anyone know what's up with Lambda probe? The site's been down for a while... Thanks, Brantley - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Communicating between webapps

2008-10-08 Thread Brantley Hobbs
Darryl Pentz wrote: I have an issue where webapp A needs to let webapp B know about an event, and then return a response to webapp B's processing of that event to the browser. So basically I need to communicate between webapps in the same container. I have not found a no-brainer solution to

Re: Stop Hack attack

2008-10-03 Thread Brantley Hobbs
Mark Thomas wrote: Karthik Nanjangude wrote: Hi SPEC ( Single box) O/s : Unix 11 J2sdk : 1.6 DB : Oracle10g TOMCAT 6.0.18.0 RAM 16 GB A normal WEB application [ User id / Passwd for AAA ] on the following spec is successfully running LIVE [ non clustered mode ] Question : Some

Re: hello world

2008-09-18 Thread Brantley Hobbs
Caldarale, Charles R wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of thufir Subject: hello world I'm running Ubuntu: [EMAIL PROTECTED]:~$ I thought mentats weren't supposed to use computers... No matter what, the spice must flow. If it takes a computer, it takes a

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-16 Thread Brantley Hobbs
return statements do not prevent the finally block from executing: http://java.sun.com/docs/books/tutorial/essential/exceptions/finally.html B. Johnny Kewl wrote: - Original Message - From: sinoea kaabi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday,

Re: Balancing solution which allows graceful partial node migrations

2008-08-29 Thread Brantley Hobbs
to secure it. Does anyone have a suggestion as to how to secure this thing using IIS? Thanks, Brantley Hobbs - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: database application

2008-08-14 Thread Brantley Hobbs
LOL Absolutely no problem. Someone has to do it! B. Caldarale, Charles R wrote: From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Subject: Re: database application Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... (Sorry I'm late, our marvelous

Re: database application

2008-08-13 Thread Brantley Hobbs
Cue Charles Caldarale hammering someone for not providing a Tomcat version in 3...2...1... Seriously, Eleonora...You should read here: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Note particularly: *Please note that JNDI resource configuration has changed

Configure JNDI resources in a separate file from server.xml

2008-07-17 Thread Brantley Hobbs
in the app's context.xml.) My question is this: Is it possible to pull in an include file in server.xml? I'd like to place all the database connection information in a separate file. Thanks, Brantley Hobbs - To start a new topic

ISAPI/JK redirector question

2008-06-25 Thread Brantley Hobbs
, but then deployment and application management becomes somewhat painful. I'd like to be able to manage all my apps with a single lambda probe or Tomcat manager installation. Thanks! Brantley Hobbs - To start a new topic, e-mail: users

Servlet or filter (or valve) that acts like mod_jk

2008-01-23 Thread Brantley Hobbs
All, I have rather an odd situation that I'm hoping someone can give me some advice on. Short version: I need to know if there's a servlet, filter or valve that can be used to provide the same functionality as mod_jk does for Apache. In other words, I want to map certain requests to a JK

Re: Servlet or filter (or valve) that acts like mod_jk

2008-01-23 Thread Brantley Hobbs
JMeter includes an AJP13 client. I would expect that to be overkill though. I also do not know of any fully featured Java based reverse proxy servlet. In your case, you might be able to write something reasonable on top of httpclient for the HTTP protocol (using http to the backend and not

Re: Tomcat 6 Admin Application

2007-09-18 Thread Brantley Hobbs
JMX? I'm intrigued by your idea and would like to subscribe to your newsletter. Is there a canned application that can use JMX to provide similar information as the old admin app? Thanks, Brantley Mark Thomas wrote: Fredy Provoste wrote: Hi there, i want to know if there's any admin

Re: Serving ActiveX from Tomcat ?

2007-07-28 Thread Brantley Hobbs
With stuff like this, I've had good success simply using telnet and a manual GET to see what the correct headers are supposed to look like. A sniffer would work just as well. Good luck! Brantley Dick Eastin wrote: Hi - Sorry to be asking a dumb question; but, maybe the answer is simple and

Re: Keeping busy site responsive

2007-06-28 Thread Brantley Hobbs
have any experience/recommendations setting something like this up? Len hinted at F5 - not sure we can afford that... Len: which F5 and how much?? -Original Message- From: Brantley Hobbs [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:37 PM To: Tomcat Users List Subject: Re

Re: Keeping busy site responsive

2007-06-27 Thread Brantley Hobbs
] userLimit}/td * td50/td * tdthe maximum number of active sessions that may exist at one time/td * tdYes/td * tdemN/A/em/td * /tr * /tbody * /table * * @author Brantley Hobbs (UGA ASG) * @since APOJEE Core 1.0.1 */ public class UserLimitFilter implements Filter

Re: Keeping busy site responsive

2007-06-27 Thread Brantley Hobbs
. wrote: | From: Brantley Hobbs [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 27 June, 2007 12:37 | | This approach seems to work well (at least until the box staggers to a | halt simply issuing redirects). Just out of curiosity, do you think it would help in those situations to issue a 503 instead

Re: Keeping busy site responsive

2007-06-27 Thread Brantley Hobbs
I should say an actual redirect response code could confuse a browser. B. Brantley Hobbs wrote: You know, I hadn't given it a lot of thought to be honest. I think that for accuracy's sake it should probably be a 500 error (I assume that 503 is a server busy error or something; don't know

Re: Null

2007-06-21 Thread Brantley Hobbs
Mohammed, While it may not work in all browsers, you can try the empty-cells CSS property in the table's style. Render the table tag thusly: table style=empty-cells: show;.../table An alternative is what the other guy said; simply check for nulls before rendering, and render a non-breaking

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Brantley Hobbs
Prashant, Unless I'm load-testing, the only time I've seen thread counts that high is when something is wrong with the app, and it's usually a database connection that hasn't been closed. Check the number of database connections in use out of the pool (this is typically something that you'd do

JK Connector errors under heavy load

2007-05-14 Thread Brantley Hobbs
to start looking for bottlenecks now. I'm not CPU, I/O or database bound, but there's no other log entries. For the record, it's Apache 2.0.52/mod_jk 1.2.22/Tomcat 5.5.23. Thanks, Brantley Hobbs - To start a new topic, e

Re: httpd/JK/Tomcat hung connections

2007-05-10 Thread Brantley Hobbs
properties and Apache directives. You might want to add some more timeouts. BTW: Maximum Apache parallelity of 150 does not really fit to a maximum tomcat parallelity of 1500 unless your tomcat does serious extra work . Regards, Rainer Brantley Hobbs wrote: All, I have a web application

Re: httpd/JK/Tomcat hung connections

2007-05-10 Thread Brantley Hobbs
Rainer, Thanks for all the info. Hopefully we can get this thing whipped into shape. Brantley Rainer Jung wrote: Brantley Hobbs wrote: Rainer, Thanks for the reply! You're certainly right on the JK version. Can you be more specific on the add some more timeouts comment? Do you mean

Re: Global Footer Accross All Webapps

2007-05-02 Thread Brantley Hobbs
http://struts.apache.org/1.x/struts-tiles/ A more structured replacement for plain-old JSP include statements. B. Simon Stone wrote: Sorry to be dim, what are tiles ? Brantley Hobbs-3 wrote: You could easily do it with tiles. An alternative would be to use a filter and append your footer

Re: Log files always locked

2007-05-02 Thread Brantley Hobbs
Ultraedit also works. If I could threadjack here, I'd like to point out my own gripe with windows tomcat logging. Can we please make it out of the box log all stdout stuff to a *single* catalina.out file that doesn't roll over? That's a pain. I like to set up an icon to my log file, but I

Re: Global Footer Accross All Webapps

2007-04-19 Thread Brantley Hobbs
You could easily do it with tiles. An alternative would be to use a filter and append your footer to the output stream. B. Simon Stone wrote: I am trying to find a way to put some html text on the bottom of all pages across all webapps. So what i would like to acheive is when any page is

Re: Global Footer Accross All Webapps

2007-04-19 Thread Brantley Hobbs
Doh. My coffee hasn't kicked in yet: I just noticed that you want one for every webapp, not just a single one. I wonder if you can do it with a valve. That's a tomcat specific thing, IIRC, so you might not be able to port that to some other container in the future. B. Simon Stone

Re: Tech support

2007-04-10 Thread Brantley Hobbs
David, Unless you really want to part with some money, perhaps you could take another swing at it. First, make sure you're configuring the ISAPI redirector correctly. I have attached the following example files for you: 1. A sample workers.properties file (this maps workers to tomcat

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
from the output stream ? Yair. Brantley Hobbs wrote: Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
a non zero status code, but it's not zero only when there is an error (status code s: 404, 304). Yair. Brantley Hobbs wrote: Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Martin, I'm afraid I don't understand. Would the request length be the same as the response? I'm totally not following. Brantley Martin Gainty wrote: Brantley- as the ServletResponse.getOutputStream() returning a javax.servlet.ServletOutputStream is not RLE (RunLengthEncoded) unless of

Re: send access log to remote server

2007-03-28 Thread Brantley Hobbs
Martin, I have a filter that logs to a database table. It could easily be modified to make log4j entries, which can then be tied to any valid log4j appender. B. Martin Strand wrote: Hi all. :) I want to make Tomcat send it's access log to a remote server (log4j or syslog). Configuring

RE: Tomcat IIS-redirector help

2006-01-11 Thread Brantley Hobbs
Can you please send me the txt of the registry file? I will check it out and make sure there is nothing that I have not already done. Tom I sent this in private, but I decided to post it back to the list just in case it is useful to someone else: Tom, I'm pasting the contents of the

[OT] RE: Tomcat IIS-redirector help

2006-01-11 Thread Brantley Hobbs
-Original Message- From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 3:37 PM To: Tomcat Users List Subject: Re: Tomcat IIS-redirector help It certainly would be nice if ASP and ASP.NET had a binary to which you could pass the file to and receive the

RE: question

2006-01-03 Thread Brantley Hobbs
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 11:10 AM To: Tomcat Users List Subject: Re: question hello a.) Top Post? http://catb.org/~esr/jargon/html/T/top-post.html Personally, I never had a problem with it (and will

RE: Can you intercept the default Servlet ? stack servlets ? forward to specific class ?

2005-10-20 Thread Brantley Hobbs
It sounds like a filter might be what you're looking for. http://java.sun.com/products/servlet/Filters.html B. -Original Message- From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 10:51 AM To: Tomcat Users List Subject: Can you intercept the default