Re: How to enable Native Memory Tracking(NMT) in Tomcat?

2017-03-02 Thread Suvendu Sekhar Mondal
Mark, I am running Tomcat as a Windows service. Thanks! Suvendu On Thu, Mar 2, 2017 at 8:08 PM, Mark Thomas wrote: > On 02/03/17 10:54, Suvendu Sekhar Mondal wrote: >> Hello Everyone, >> >> I am new here. :) >> >> Environment: >> Java Version: Java HotSpot(TM) 64-Bit Server VM version 25.91-b15

Re: ELContext no longer available to tagfiles

2017-03-02 Thread Mike Strauch
On Thu, Mar 2, 2017 at 1:02 PM, Mark Thomas wrote: > > I think you have correctly identified the commits responsible for the > change of behaviour you see. > > Of the two solutions you propose, I agree the latter solution is not viable. > > The former solution looks possible and - based on a fairl

Re: logging.properties vs catalina.properties

2017-03-02 Thread Mark Thomas
On 02/03/17 00:08, John Zhuge wrote: > Hi Tomcat gurus, > > Do you know which file is loaded first? e.g. in 6.0.48. > I guess logging.properties is loaded first, does it mean it should not use > any system property defined in catalina.properties? Correct on both counts. Mark --

Re: Error when performing parallel deployment of contexts that exposes a resource dir (org.apache.catalina.webresources.DirResourceSet)

2017-03-02 Thread Tiago Oliveira
Mark, you where right. I was able to track down the root cause: race condition between copy the .war and the .xml, when the .xml finishes copying first, the context wont start (.war not found). Thanks. 2017-03-02 11:58 GMT-03:00 Mark Thomas : > On 02/03/17 13:13, Tiago Oliveira wrote: > > Hel

Re: ELContext no longer available to tagfiles

2017-03-02 Thread Mark Thomas
On 02/03/17 20:18, Mike Strauch wrote: > Hello! > > I’ve recently upgraded from Tomcat 8.0.23 to 8.0.41 and noticed that the EL > context that is available to JSPs in my application is no longer available > in tagfiles used inside those JSPs (which was the case in 8.0.23). > > We have a servlet l

ELContext no longer available to tagfiles

2017-03-02 Thread Mike Strauch
Hello! I’ve recently upgraded from Tomcat 8.0.23 to 8.0.41 and noticed that the EL context that is available to JSPs in my application is no longer available in tagfiles used inside those JSPs (which was the case in 8.0.23). We have a servlet listener declared in our web.xml which reacts to conte

Re: getRealPath is a bad idea?

2017-03-02 Thread Mark Thomas
On 02/03/17 19:59, Berneburg, Cris J. - US wrote: > Chris > > -Original Message- > From: Christopher Schultz [mailto:chris@...] > Sent: Friday, February 24, 2017 [multiple] > To: Tomcat Users List > Subject: Re: Getting application root path before servlet is initialized? > > [SNIP] > >

getRealPath is a bad idea?

2017-03-02 Thread Berneburg, Cris J. - US
Chris -Original Message- From: Christopher Schultz [mailto:chris@...] Sent: Friday, February 24, 2017 [multiple] To: Tomcat Users List Subject: Re: Getting application root path before servlet is initialized? [SNIP] Martin K> In order to avoid hard coding that path, Martin K> I need a pr

RE: Debugging

2017-03-02 Thread Berneburg, Cris J. - US
Al You may or may not find this helpful... -Original Message- From: Al Grant [mailto:bigal...@gmail.com] Sent: Sunday, February 26, 2017 8:34 PM To: users@tomcat.apache.org Subject: Debugging > Hello, > > System: Windows 10 > Tomcat Var: 8.5.4 > IDE: Intellij Ultimate > Java: v1.8 > > I

Re: Error when performing parallel deployment of contexts that exposes a resource dir (org.apache.catalina.webresources.DirResourceSet)

2017-03-02 Thread Mark Thomas
On 02/03/17 13:13, Tiago Oliveira wrote: > Hello, > > i guess the title describes our situation. I pasted the stack trace from > catalina.out in a gist: > https://gist.github.com/tiagojco/2e05203095e262c559d2f679dd6b42ff That stack trace is a failure to clean up properly. The real error occurred

Re: How to enable Native Memory Tracking(NMT) in Tomcat?

2017-03-02 Thread Mark Thomas
On 02/03/17 10:54, Suvendu Sekhar Mondal wrote: > Hello Everyone, > > I am new here. :) > > Environment: > Java Version: Java HotSpot(TM) 64-Bit Server VM version 25.91-b15 > (Java version 1.8.0_91-b15) > Tomcat Version: Tomcat 8.0.20 > OS Version: Microsoft Windows 8.1 Enterprise > > I am tryin

Error when performing parallel deployment of contexts that exposes a resource dir (org.apache.catalina.webresources.DirResourceSet)

2017-03-02 Thread Tiago Oliveira
Hello, i guess the title describes our situation. I pasted the stack trace from catalina.out in a gist: https://gist.github.com/tiagojco/2e05203095e262c559d2f679dd6b42ff While performing "hot deployment", the second context does not start (see stack trace). After restarting the enviroment, both g

How to enable Native Memory Tracking(NMT) in Tomcat?

2017-03-02 Thread Suvendu Sekhar Mondal
Hello Everyone, I am new here. :) Environment: Java Version: Java HotSpot(TM) 64-Bit Server VM version 25.91-b15 (Java version 1.8.0_91-b15) Tomcat Version: Tomcat 8.0.20 OS Version: Microsoft Windows 8.1 Enterprise I am trying to enable Native Memory Tracking(NMT) to get internal memory usage d