RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> We have many servers that have been running 100-200 instances > of tomcat each for years without any performance problems. > Most of our servers are Linux 8-core machines with 32GB RAM, > with the tomcat instances configured with -Xms16M -Xmx192M. > We also have some Windows servers with 100-

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> >> I can see the lure of "only taking what you need" and allowing the > >> JVM to automatically re-size the memory space: > >> that way, you only take up a huge chunk of memory during peak load > >> and not all the time. > >> > >> But why? > >> > >> If you are going to need, say, 512MiB at peak

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread André Warnier
Rainer Jung wrote: ... No no no: as I said multiple times now, the string "...host3.mydomain.com:/mywebapp/flex_wizard_project..." in the "missing uri map" mod_jk log message means: the VirtualHost that handles "host3.mydomain.com" has not JkMount defined, so it can't map the URI "/mywebapp

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread André Warnier
Rainer Jung wrote: On 17.02.2012 17:43, David N. Smith wrote: On Feb 17, 2012, at 10:27 AM, "André Warnier" wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: I took all JkMounts inside the

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: If your application needs 64MB of Heap space and you allocate only -Xms16M, then right at the start the JVM will have to increase the Heap to 64MB (minimum); so why would you do that ? 64MB was just a number I threw out. The app actually uses about 20MB at startup, s

Re: DBCP Connections build up on one server

2012-02-17 Thread Shanti Suresh
The threaddump look the same across both servers. The heapdump shows increasing heap on the suspect server in the Finalizer class. The Finalizer class is holding references to another class which is a wrapper class for ConectionPool objects. Thanks for all tips/suggestions!

DBCP Connections build up on one server

2012-02-17 Thread Shanti Suresh
All, The Mbean for a JDBC datasource that uses the commons-dbcp-1.2.1.jar library builds up on one server. The other server is okay. They run the same code. We are using Tomcat-7.0.23. They are both RedHat Linux servers What could be causing this anomaly? -Shanti -- Sh

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: Note that you are talking of "memory pool", which is a bit vague. The -Xms and -Xmx parameters relate to how big the Heap is, which is only one part of the memory space needed by the JVM. I am just using the terms that I see on the screen when I pull up tomcat6w.exe.

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Rainer Jung
On 17.02.2012 17:43, David N. Smith wrote: On Feb 17, 2012, at 10:27 AM, "André Warnier" wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: I took all JkMounts inside the VirtualHost tags a

RE: Tomcat as Application Server

2012-02-17 Thread Sanjeev Sharma
The term "Application Server" predates JEE and EJB. I would call Tomcat an App server since it "processes server-side business logic" (i.e. you don't need EJBs to process business logic and it's sometimes a bad idea anyway.) Sanjeev -Original Message- From: Pid [mailto:p...@pidster.com

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> Note that you are talking of "memory pool", which is a bit > vague. The -Xms and -Xmx parameters relate to how big the > Heap is, which is only one part of the memory space needed by the JVM. > I am just using the terms that I see on the screen when I pull up tomcat6w.exe. --Eric Discl

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> > If your application > needs 64MB of > > Heap space and you allocate only -Xms16M, then right at the > start the > > JVM will have to increase the Heap to 64MB (minimum); so > why would you > > do that ? > 64MB was just a number I threw out. The app actually uses about 20MB at startup, s

Re: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Michela, Andrew J (LABOR)
> I am sorry this code was in the web.xml NOT server.xml >> From: Michela, Andrew J (LABOR) [mailto:andrew.mich...@labor.ny.gov] >> Subject: RE: Basic Authentication Valve not hitting on Tomcat7.0.20 > >> I have that in the server.xml(see below) still no luck. >> > > ??? Please read the servle

Re: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Pid
On 17/02/2012 17:56, Michela, Andrew J (LABOR) wrote: > I am sorry this code was in the web.xml NOT server.xml Please don't top post. Are you actually replying to someone else's thread with your own problem? Or are you also known as "Sachin Mehrotra"? p > -Original Message- > From: Ca

Re: Tomcat as Application Server

2012-02-17 Thread Pid
On 17/02/2012 16:43, Caldarale, Charles R wrote: >> From: Anjib Mulepati [mailto:anji...@hotmail.com] >> Subject: Re: Tomcat as Application Server > >> So can I say Tomcat is Web Server but doesn't not support as full >> application Server? > > That rather depends on to whom you want to say it.

RE: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Michela, Andrew J (LABOR)
I am sorry this code was in the web.xml NOT server.xml -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, February 17, 2012 11:07 AM To: Tomcat Users List Subject: RE: Basic Authentication Valve not hitting on Tomcat7.0.20 > From: Michela, And

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread David N. Smith
On Feb 17, 2012, at 12:05 PM, "modjkl...@comcast.net" wrote: > Hi David, Well I used Adobe Flashbuilder now to write files to the server > (verified by looking at their time stamps) and then looked into the > /etc/httpd/logs/access_log file, and there's no activity reported there for > this e

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread modjklist
Hi David, Well I used Adobe Flashbuilder now to write files to the server (verified by looking at their time stamps) and then looked into the /etc/httpd/logs/access_log file, and there's no activity reported there for this event. The last few entries were as follows (again, not related to Adobe)

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Rainer Jung
On 17.02.2012 16:26, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: I took all JkMounts inside the VirtualHost tags and placed them outside these tags, and above them added

Re: Tomcat as Application Server

2012-02-17 Thread David kerber
On 2/17/2012 11:32 AM, Anjib Mulepati wrote: So can I say Tomcat is Web Server but doesn't not support as full application Server? It's a LOT more than just a web server, but it doesn't have full EJB support. It may well be enough of an application server (in the more general definition of a

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Rainer Jung
On 17.02.2012 16:19, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/16/12 3:24 PM, André Warnier wrote: A correct request should have at least 2 lines such as line 1 : GET /mywebapp/... HTTP/1.1(could also be POST instead of GET) then: .. (any number

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Rainer Jung
On 17.02.2012 16:15, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- On 2/17/12 3:41 AM, Purvis Robert (NHS CONNECTING FOR HEALTH) wrote: 1.2.14.1 is not a valid version number for Apache mod_jk. All historic versions of mod_jk can be downloaded directly from the Apache web site: th

RE: Tomcat as Application Server

2012-02-17 Thread Caldarale, Charles R
> From: Anjib Mulepati [mailto:anji...@hotmail.com] > Subject: Re: Tomcat as Application Server > So can I say Tomcat is Web Server but doesn't not support as full > application Server? That rather depends on to whom you want to say it. Again, Tomcat is a servlet container (as defined in the

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread David N. Smith
On Feb 17, 2012, at 10:27 AM, "André Warnier" wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> To whom it may concern, >> On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: >>> I took all JkMounts inside the VirtualHost tags and placed them outside >>> th

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread modjklist
Thanks Andre, for taking time to type up the comments below (very helpful to me, a new user). Rainer and Christopher, thanks as well for your recent comments regarding this post. I did a quick Google search that shows Adobe Flashbuilder uses HTTP/1.1, so that shouldn't be an issue. Some mo

Re: Tomcat as Application Server

2012-02-17 Thread Daniel Mikusa
On Fri, 2012-02-17 at 08:10 -0800, Anjib Mulepati wrote: > > Where as lack for following: > > ·Distributed transactions You can use a third-party transaction manager like Bitronix or Atomikos if you need distributed transaction support. > > ·EJBs and > > ·JMS Again, you can use a third-part

Re: Tomcat as Application Server

2012-02-17 Thread Anjib Mulepati
So can I say Tomcat is Web Server but doesn't not support as full application Server? On 2/17/2012 11:20 AM, David kerber wrote: On 2/17/2012 11:10 AM, Anjib Mulepati wrote: Hi All, I was reading an old article (http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=1) about

Re: Tomcat as Application Server

2012-02-17 Thread David kerber
On 2/17/2012 11:10 AM, Anjib Mulepati wrote: Hi All, I was reading an old article (http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=1) about Tomcat to find out whether Tomcat can be used as application serve or not. This article list that Tomcat 6.x support following feature

Tomcat as Application Server

2012-02-17 Thread Anjib Mulepati
Hi All, I was reading an old article (http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=1) about Tomcat to find out whether Tomcat can be used as application serve or not. This article list that Tomcat 6.x support following features: ·WAR file deployment ·JNDI resources

RE: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Caldarale, Charles R
> From: Michela, Andrew J (LABOR) [mailto:andrew.mich...@labor.ny.gov] > Subject: RE: Basic Authentication Valve not hitting on Tomcat7.0.20 > I have that in the server.xml(see below) still no luck. > ??? Please read the servlet spec and the Tomcat doc, and show us where there's even a hin

RE: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Michela, Andrew J (LABOR)
I have that in the server.xml(see below) still no luck. Security Constraint secure Restricted Access - Get Only /* role1 BASIC Management Reports

Re: generic deployment question

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 2/17/12 10:45 AM, Jeffrey Janner wrote: > Thanks. I was under the impression that Tomcat normally explodes > the war files when you drop them into the webapps folder, though I > know you can disable that feature. I was suggesting that yo

RE: generic deployment question

2012-02-17 Thread Jeffrey Janner
> -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Friday, February 17, 2012 2:49 AM > To: Tomcat Users List > Subject: Re: generic deployment question > > On 16/02/2012 21:12, Jeffrey Janner wrote: > > Assume latest Tomcat 6.x for current deployment, and 7.x for future > d

RE: generic deployment question

2012-02-17 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Friday, February 17, 2012 9:36 AM > To: Tomcat Users List > Subject: Re: generic deployment question > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jeffrey, > > On 2/16/12 4:12 PM, Jef

RE: generic deployment question

2012-02-17 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Friday, February 17, 2012 9:42 AM > To: Tomcat Users List > Subject: Re: generic deployment question > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jeffrey, > > On 2/17/12 10:36 AM,

Re: Basic Authentication Valve not hitting on Tomcat7.0.20

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 2/16/12 2:28 PM, Michela, Andrew J (LABOR) wrote: > I have that in the server.xml still no luck You have *what* in server.xml, and what does "no luck" mean? Did you reply to the wrong thread? - -chris -BEGIN PGP SIGNATURE- Versi

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/17/12 10:26 AM, André Warnier wrote: > Is it just a variation due to how the mod_jk logging works, or is > it really that the request URI is arriving differently to Apache in > one case or the other ? I think it's confusion over which Vir

Re: generic deployment question

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 2/17/12 10:39 AM, Jeffrey Janner wrote: > That's actually the current deployment mechanism that I'm wanting > to get changed. Unfortunately right now, there are some > application related config files buried under the WEB-INF directory >

Re: generic deployment question

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 2/17/12 10:36 AM, Christopher Schultz wrote: > Jeffrey, > > On 2/16/12 4:12 PM, Jeffrey Janner wrote: >> I host an app for a couple of dozen customers. Naturally, >> upgrade time can be a bit of a pain, and I'd like to simplify >> things

RE: generic deployment question

2012-02-17 Thread Jeffrey Janner
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Friday, February 17, 2012 9:22 AM > To: Tomcat Users List > Subject: RE: generic deployment question > > > From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > > Subject: RE: generic depl

Re: generic deployment question

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 2/16/12 4:12 PM, Jeffrey Janner wrote: > I host an app for a couple of dozen customers. Naturally, upgrade > time can be a bit of a pain, and I'd like to simplify things. > Assuming that all the customer-specific information (DB connect

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/16/12 3:24 PM, André Warnier wrote: A correct request should have at least 2 lines such as line 1 : GET /mywebapp/... HTTP/1.1(could also be POST instead of GET) then: .. (any number of header lines, 0-n)

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: I took all JkMounts inside the VirtualHost tags and placed them outside these tags, and above them added JkMountCopy All, restarted Apache, and now

RE: generic deployment question

2012-02-17 Thread Caldarale, Charles R
> From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Subject: RE: generic deployment question > But, really, I just wanted to know if my original suggestion > would cause issues with Tomcat. As Pid stated, it might work, but it's not a guaranteed deployment mechanism. > Essentially, I

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 2/16/12 3:24 PM, André Warnier wrote: > A correct request should have at least 2 lines such as > > line 1 : GET /mywebapp/... HTTP/1.1(could also be POST instead > of GET) then: .. (any number of header lines, 0-n) then: Host: > the.cor

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 2/17/12 3:41 AM, Purvis Robert (NHS CONNECTING FOR HEALTH) wrote: > I have found that some versions of mod_jk 1.2 don’t work. Then you should report a bug and get them fixed. Or, fir your configuration to make them work. > I use 1.2.14.1

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 2/16/12 1:29 PM, modjkl...@comcast.net wrote: > I took all JkMounts inside the VirtualHost tags and placed them > outside these tags, and above them added JkMountCopy All, > restarted Apache, and now Adobe successfully can

RE: generic deployment question

2012-02-17 Thread Jeffrey Janner
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Thursday, February 16, 2012 3:32 PM > To: Tomcat Users List > Subject: Re: generic deployment question > > Jeffrey Janner wrote: > > Assume latest Tomcat 6.x for current deployment, and 7.x for future > deploymen

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 2/17/12 3:28 AM, André Warnier wrote: > Robinson, Eric wrote: >> What are the possible downsides of setting a low initial memory >> pool and a high max pool? If a tomcat app usually needs >> approximately 64MB of heap space, but sometimes as

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Rainer Jung
On 17.02.2012 09:41, Purvis Robert (NHS CONNECTING FOR HEALTH) wrote: I have found that some versions of mod_jk 1.2 don’t work. I use 1.2.14.1 with Apache 2.0.52, and Tomcat 5.5.23. When I tried going up to a higher version of mod_jk then the connection to Tomcat was ignore, as if there was not

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Pid
On 17/02/2012 08:41, Purvis Robert (NHS CONNECTING FOR HEALTH) wrote: > I have found that some versions of mod_jk 1.2 don’t work. I use 1.2.14.1 with > Apache 2.0.52, and Tomcat 5.5.23. When I tried going up to a higher version > of mod_jk then the connection to Tomcat was ignore, as if there was

Re: generic deployment question

2012-02-17 Thread Pid
On 16/02/2012 21:12, Jeffrey Janner wrote: > Assume latest Tomcat 6.x for current deployment, and 7.x for future > deployments. > > I host an app for a couple of dozen customers. Naturally, upgrade time can > be a bit of a pain, and I'd like to simplify things. > Assuming that all the customer-

RE: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread Purvis Robert (NHS CONNECTING FOR HEALTH)
I have found that some versions of mod_jk 1.2 don’t work. I use 1.2.14.1 with Apache 2.0.52, and Tomcat 5.5.23. When I tried going up to a higher version of mod_jk then the connection to Tomcat was ignore, as if there was nothing there at all. If you can, get hold of 1.2.14.1 and see if that wo

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: What are the possible downsides of setting a low initial memory pool and a high max pool? If a tomcat app usually needs approximately 64MB of heap space, but sometimes as much as 300-400MB, would it cause any problems to set the initial pool to 16M and the max pool to 512M?

Re: mod_jk doesn't map to software-generated web address, but maps to this address when I enter it into browser

2012-02-17 Thread André Warnier
modjkl...@comcast.net wrote: Thanks so much Andre for taking the time to help me understand this. It's VERY helpful! I've attached the section of httpd.conf below related to virtual hosts. I think I'm starting to get the picture now. Whatever I input into Adobe's software, I ALWAYS see in the mo