security-constraint in web.xml - order/priority

2010-03-10 Thread Mats Eklund
Hi,

If I have more than one security-constraint tags in my web.xml (some with, some 
without auth-constraints), which one takes precedence for a specific request?

Thanks,
Mats



  

RE: Memory settings

2010-03-10 Thread Mats Eklund
Thanks, I'm trying the JConsole, but I'm not sure I'm connecting to the 
relevant process? There are two local processes that I can connect to, one 
seems to be the JConsole itself, then other has no name. If I stop the Tomcat 
service, there are still the same to processes that I can connect to!?

--- On Tue, 3/9/10, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Memory settings
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, March 9, 2010, 10:34 PM

 From: Mats Eklund [mailto:mats.ekl...@yahoo.com]
 Subject: Re: Memory settings
 
 In the Java tab I have the Java Options field with parameters such as
 -Dcatalina.home So I just add another few lines to it with the -
 Xms... parameters?

The -Xmx and -Xms settings should be specified in the extra memory pool boxes 
provided; the others go in the regular options box.  Keep the initial and 
maximum memory pool sizes the same to avoid heap thrashing.

 And finally, when nothing is specified here, what are the defaults?

Depends on the JVM version, the mode of the JVM, and the platform you're 
running on.  Easiest just to crank up JConsole and take a look.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Memory settings

2010-03-09 Thread Mats Eklund
Hi,

I'm using Tomcat 5.5 on Windows and am sometimes experiencing exceptions thrown 
in my web application:
java.lang.OutOfMemoryError: Java heap space. I will profile my
application to see if this can be avoided by changing the code,
however, I'm also interested to know whether and how memory available
to the application can be configured.

Thanks in advance,
Mats


  

Re: Memory settings

2010-03-09 Thread Mats Eklund
Thanks a lot!

In the Java tab I have the Java Options field with parameters such as 
-Dcatalina.home So I just add another few lines to it with the -Xms... 
parameters?

There are a few fields below that field called: initial memory pool, maximum 
memory pool, thread stack size. Should I maybe use these fields instead?

And finally, when nothing is specified here, what are the defaults? I have 
tried to find out by looking into some log files but havent found anything.

--- On Tue, 3/9/10, André Warnier a...@ice-sa.com wrote:

From: André Warnier a...@ice-sa.com
Subject: Re: Memory settings
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, March 9, 2010, 9:59 PM

Mats Eklund wrote:
 Hi,
 
 I'm using Tomcat 5.5 on Windows and am sometimes experiencing exceptions 
 thrown in my web application:
 java.lang.OutOfMemoryError: Java heap space. I will profile my
 application to see if this can be avoided by changing the code,
 however, I'm also interested to know whether and how memory available
 to the application can be configured.
 
Short version :
(Presuming you installed Tomcat using the service installer,)

go to the Tomcat/bin directory and double-click the tomcat5w.exe program. This 
is a GUI allowing you, in one of the tabs, to set the JVM options used to run 
Java, which runs Tomcat.
Use the options -Xms256m -Xmx256m for example to set the size of the Heap at 
start to 256 MB (-Xms) and maximum size 256 MB (-Xmx).
Setting both to the same value is a bit more efficient, because it avoids the 
JVM having to keep track and resize this dynamically.

Long version :
http://java.sun.com/javase/technologies/hotspot/gc/index.jsp
http://java.sun.com/javase/technologies/hotspot/gc/memorymanagement_whitepaper.pdf


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Native mode...

2010-03-09 Thread Mats Eklund
Hi,

I'm running a webapp on Tomcat 5.5 on Windows Server 2003 and find statements 
in the log saying that the server could run faster if native libraries were 
installed. How can I install these libraries? If I rerun the installer, will I 
get a repair option where I can opt in this library? Note: the server does not 
allow outbound internet connections.

Thanks,
Mats



  

RE: Native mode...

2010-03-09 Thread Mats Eklund
Thanks! I'm not running SSL, so I guess I shouldn't bother.

--- On Tue, 3/9/10, Caldarale, Charles R chuck.caldar...@unisys.com wrote:

From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Native mode...
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, March 9, 2010, 10:39 PM

 From: Mats Eklund [mailto:mats.ekl...@yahoo.com]
 Subject: Native mode...
 
 I'm running a webapp on Tomcat 5.5 on Windows Server 2003 and find
 statements in the log saying that the server could run faster if native
 libraries were installed.

The performance difference between using APR and the pure Java connectors 
depends largely on what you're doing.  If you have a lot of SSL traffic, APR 
will help; if you're not using SSL, you likely won't be able to tell the 
difference, and can stick with the pure Java mode.

 How can I install these libraries?

Just put the tcnative-1.dll into Tomcat's bin directory.  The DLL is available 
here:
http://apache.mirrors.timporter.net/tomcat/tomcat-connectors/native/1.1.20/binaries/win32
http://apache.mirrors.timporter.net/tomcat/tomcat-connectors/native/1.1.20/binaries/win64/x64

Choose the appropriate one for your platform.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org