RE: Tomcat memory

2016-02-21 Thread Gokul . Baskaran
Thanks again, to make things clear. When I meant default, what is the default min and max that is given to an application if there nothing defined in the JVM ? In my case, the Tomcat is running on windows and I don't have setenv.bat or sentenv.sh or even catalina.bat and catalina.conf does not

Re: Tomcat memory

2016-02-21 Thread Christopher Schultz
Gokul, On 2/21/16 12:23 PM, Gokul.Baskaran wrote: > Question was for Java 7 Answer was for Java 7 > It is a Tomcat / Application question as well, as memory default can > be configured in the application config. Not true: JVM memory is shared amongst all the "applications" you deploy on it.

Re: Enabling SSLv2 on Tomcat 7 !

2016-02-21 Thread Christopher Schultz
Utkarsh, On 2/21/16 11:02 AM, Utkarsh Dave wrote: > Thanks Chris for the response. > Yes, I meant SSLv2Hello. I understand the vulnerabilities in SSL. Though > some of the client need that flexibility in older versions, so was digging > the reason it was working in prior version of Tomcat. > Can

Re: Tomcat memory

2016-02-21 Thread Olaf Kock
grep mx bin/* found only settings in setenv.sh in my installation - this lets me state that there are no defaults: setenv.sh is not contained in the distribution but will be read in case it's found in the file system. Thus there's no tomcat default that I'm aware of. Anybody who distributes tomcat

Tomcat gracefully shutdown when run with Apache Spark

2016-02-21 Thread Eranga Samararathna
Tomcat version: 7.0.47 I have a web application which uses Apache Spark. My web application act as a Apache spark driver program. When remote standalone spark cluster is not available then Spark context is shutting down with log org.apache.spark.util.Utils - Shutdown hook called Sooner this

RE: Tomcat memory

2016-02-21 Thread Gokul . Baskaran
Question was for Java 7 It is a Tomcat / Application question as well, as memory default can be configured in the application config. I totally agree that the best practice is to set the Xms and -Xmx. As am going to change the config, I would curious to know if the tomcat ui or the catalina

Re: context doesnt pick up

2016-02-21 Thread Mark Thomas
On 20/02/2016 22:40, Me Self wrote: > Hi All > > When I put the context in server.xml it works fine, but if I put the same > context tag in a xml file under /conf/Catalina/localhost/test.xml then > tomcat doesn't pick it up. I would rather want to use the latter. You need to set

Re: context doesnt pick up

2016-02-21 Thread George Sexton
On 2/20/2016 4:28 PM, Me Self wrote: I already tried an empty Context tag and no Context tag, makes no difference. Catalina.out has not error. I tried setting logging level FINE to see if there were anything related to how it scans conf/Catalina/localhost/ but nothing. Have you carefully

Re: Enabling SSLv2 on Tomcat 7 !

2016-02-21 Thread Utkarsh Dave
Thanks Chris for the response. Yes, I meant SSLv2Hello. I understand the vulnerabilities in SSL. Though some of the client need that flexibility in older versions, so was digging the reason it was working in prior version of Tomcat. Can you help me in identifying any change in Tomcat due to which

Re: Sessions number issue

2016-02-21 Thread tomcat
On 20.02.2016 18:44, George Sexton wrote: On 2/20/2016 10:09 AM, Qadeer Khan wrote: And I have no idea what questions I have to answer here! other than application sessions are being created by users and session field is remaining as zero. Seriously, you should try responding to Mark's

Re: context doesnt pick up

2016-02-21 Thread tomcat
On 20.02.2016 23:40, Me Self wrote: Hi All When I put the context in server.xml it works fine, but if I put the same context tag in a xml file under /conf/Catalina/localhost/test.xml then tomcat doesn't pick it up. I would rather want to use the latter. The test.xml is Its a set up where

Re: Tomcat memory

2016-02-21 Thread Olaf Kock
This is rather a Java than a tomcat question: The JVM allocates memory based on whatever default your current JVM version decides (you don't mention what version of Java you're on) >From a text on http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html that's linked from my