Re: Problems Increassing -Xmx

2012-10-01 Thread Ben Stringer
Hi Joel, Is it a 64-bit Debian install? If only 32-bit, you will be bumping up against the addressing limitations. Cheers, Ben On 02/10/2012, at 9:07 AM, joel badia escolà wrote: > Hi all, > > I'm trying to set up my max heap size in 2Gb but my tomcat > installation ignores me :( . I'm worki

RE: Problems Increassing -Xmx

2012-10-01 Thread Caldarale, Charles R
> From: joel badia escolà [mailto:basto...@gmail.com] > Subject: Problems Increassing -Xmx > if [ -z "$JAVA_OPTS" ]; then > JAVA_OPTS="-Djava.awt.headless=true -Xmx2000m" < RELEVANT > fi And what happens if you don't put quotation marks around the values? > And i tried to modify /usr/

Tomcat as a service question

2012-10-01 Thread J.V.
I am attempting to create a windows service using apache commons-daemon to create a service from a Java program I have written (a server). I know that tomcat uses this lib and successfully, but I am having a number of problem completing the task. I have posted on commons-daemon but no respons

Re: server.xml hostname from ServletContext

2012-10-01 Thread Mark Eggers
On 10/1/2012 4:11 PM, Konstantin Kolinko wrote: 2012/10/1 Mark Eggers : On 10/1/2012 8:38 AM, Aggarwal, Ajay wrote: Is the configured hostname available in ServletContext? I see it in debugger, but I don't see any method to access it from ServletContext class. I am using virtual hosts and need

Re: server.xml hostname from ServletContext

2012-10-01 Thread Konstantin Kolinko
2012/10/1 Mark Eggers : > On 10/1/2012 8:38 AM, Aggarwal, Ajay wrote: >> >> Is the configured hostname available in ServletContext? I see it in >> debugger, but I don't see any method to access it from ServletContext >> class. I am using virtual hosts and need this value inside my >> ServletContext

Problems Increassing -Xmx

2012-10-01 Thread joel badia escolà
Hi all, I'm trying to set up my max heap size in 2Gb but my tomcat installation ignores me :( . I'm working with GNU/Linux Debian "Squeeze" (Current Stable), and my tomcat version it's 6. I tried to modify my /etc/init.d/tomcat6 file adding this (I add some context for non Debian users): # Defaul

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
On Mon, Oct 1, 2012 at 11:41 AM, Konstantin Kolinko wrote: > 2. If the protocol between HTTPD and Tomcat is AJP, > then the protocol itself has its own limitation, which is ~15 times > lesser than that amount. Thanks for anticipating my next question. Right now we're using mod_proxy with the HTTP

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
It is working. This is odd... I changed from * *to ** Notice I removed the leading slashes. It is now working with Tomcat Maven plugin. What caused the different behavior between standard Tomcat and maven plugin Tomcat, I can't explain... Regards, J. 2012/10/1 Julien Martin > I am still trying

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
I am still trying to work out how to fix this problem. Can someone please explain to me what the difference is between standard Tomcat and embedded Tomcat (maven plugin)? Especially where does the embedded (maven plugin) Tomcat looks for the webapp resources? Here is how I configured the plugin:

Re: server.xml hostname from ServletContext

2012-10-01 Thread Mark Eggers
On 10/1/2012 8:38 AM, Aggarwal, Ajay wrote: Is the configured hostname available in ServletContext? I see it in debugger, but I don't see any method to access it from ServletContext class. I am using virtual hosts and need this value inside my ServletContextListener ::contextInitialized() call ba

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Konstantin Kolinko
2012/10/1 Andrew Todd : > On Sun, Sep 30, 2012 at 6:21 AM, Konstantin Kolinko > wrote: >> In Tomcat each request processor has a byte buffer and all the headers >> must fit into that buffer. > > Thanks so much for the detailed response. I have a couple more questions: > > 1) When a request is reje

server.xml hostname from ServletContext

2012-10-01 Thread Aggarwal, Ajay
Is the configured hostname available in ServletContext? I see it in debugger, but I don't see any method to access it from ServletContext class. I am using virtual hosts and need this value inside my ServletContextListener ::contextInitialized() call back. Thanks. -Ajay

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 10/1/12 10:33 AM, Andrew Todd wrote: > 1) When a request is rejected for being too large, is there any > logging that happens or can happen in Tomcat? Looks like you'll get an IllegalArgumentException. Easy enough to test yourself, eh? >

Re: Question on realm configuration in TC 6 / 7

2012-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 9/29/12 5:41 PM, Josh Gooding wrote: > It seems that I have run into something that seems a bit strange. > I have configured 4 separate web applications to each have their > own context.xml files. I have also configured one of the web > appl

Re: How to limit the number of sessions per IP address (DOS attacks)

2012-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 10/1/12 1:08 AM, Brian Braun wrote: > 1- I had almost decided to program a filter. However, I have found > this solution: > http://stackoverflow.com/questions/3679465/find-number-of-active-sessions-created-from-a-given-client-ip/3679783#367

Re: maxHTTPHeaderSize, and specific header lengths

2012-10-01 Thread Andrew Todd
On Sun, Sep 30, 2012 at 6:21 AM, Konstantin Kolinko wrote: > In Tomcat each request processor has a byte buffer and all the headers > must fit into that buffer. Thanks so much for the detailed response. I have a couple more questions: 1) When a request is rejected for being too large, is there a

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Julien Martin
Thanks Daniel, I've just deployed my app onto a standard Tomcat: it works ok. My Spring config is as follows (the relevant parts at least): Regards, J. 2012/10/1 Daniel Mikusa > On Oct 1, 2012, at 5:42 AM, Julien Martin wrote: > > > Hello, > > > > I am experiencing trouble with my e

Re: Embedded tomcat won't resolve Spring application properties

2012-10-01 Thread Daniel Mikusa
On Oct 1, 2012, at 5:42 AM, Julien Martin wrote: > Hello, > > I am experiencing trouble with my embedded tomcat: when I run my Spring app > using the embedded Tomcat, it seems the properties are not resolved. What about using a standard (i.e. not embedded, not part of Eclipse) Tomcat installat

Re: Question on realm configuration in TC 6 / 7

2012-10-01 Thread Daniel Mikusa
On Sep 29, 2012, at 5:41 PM, Josh Gooding wrote: > It seems that I have run into something that seems a bit strange. I have > configured 4 separate web applications to each have their own context.xml > files. There are multiple places where you can put context configuration. Where did you co

Re: How to limit the number of sessions per IP address (DOS attacks)

2012-10-01 Thread Konstantin Kolinko
2012/10/1 Brian Braun : > Hi Constantine, > > 1- I had almost decided to program a filter. However, I have found this > solution: > http://stackoverflow.com/questions/3679465/find-number-of-active-sessions-created-from-a-given-client-ip/3679783#3679783 > What do you think about it? I havent tried i

Re: How to limit the number of sessions per IP address (DOS attacks)

2012-10-01 Thread André Warnier
Brian Braun wrote: Hi Constantine, 1- I had almost decided to program a filter. However, I have found this solution: http://stackoverflow.com/questions/3679465/find-number-of-active-sessions-created-from-a-given-client-ip/3679783#3679783 What do you think about it? I havent tried it yet, but as