Re: Tomcat HeapMemoryUsage MBean question

2012-09-10 Thread Shanti Suresh
Greetings, all, Thank you for this wonderful mailing list. Hi Konstantin, That JSP worked like a charm :-) Thank you. Hi Pid, Good suggestion on using Groovy. I would like to stick with what's readily available with Tomcat, if I can help it. I know security with unsecured JMX is an issue.

Re: Tomcat HeapMemoryUsage MBean question

2012-09-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 9/8/12 4:57 AM, Pid * wrote: > On 7 Sep 2012, at 22:00, Shanti Suresh wrote: > >> Hi Konstantin, >> >> True. JMX data can be sensitive. > > > If you're concerned about security do not use the JMXProxy Servlet > at all. Configure security

Re: Tomcat HeapMemoryUsage MBean question

2012-09-08 Thread Pid *
On 7 Sep 2012, at 22:00, Shanti Suresh wrote: > Hi Konstantin, > > True. JMX data can be sensitive. If you're concerned about security do not use the JMXProxy Servlet at all. Configure security on an exposed JMX port and then interact with the JVM by connecting to the port. Scripts written in

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Konstantin Kolinko
2012/9/8 Shanti Suresh : > Hi Konstantin, > > True. JMX data can be sensitive. > > I am not a JSP expert. I created the following "test.jsp" page and have it > sitting in webapps/manager/. It doesn't work. I have the error message > below the JSP text. Would you have a suggestion for what I mi

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
Hi Konstantin, True. JMX data can be sensitive. I am not a JSP expert. I created the following "test.jsp" page and have it sitting in webapps/manager/. It doesn't work. I have the error message below the JSP text. Would you have a suggestion for what I might have in this page? -- St

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Konstantin Kolinko
2012/9/7 Shanti Suresh : > Hi Christopher, Hi Konstantin, > > On Fri, Sep 7, 2012 at 1:54 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> >> I personally think that's a bad idea: just set some simple username >> and password and have your client use it: any decent command-line

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
Hi Christopher, Hi Konstantin, On Fri, Sep 7, 2012 at 1:54 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Shanti, > > I personally think that's a bad idea: just set some simple username > and password and have your client use i

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Konstantin Kolinko
2012/9/7 Shanti Suresh : > > So I can somehow secure the "set" but open up the "get" and "qry", I will > be in happy curl-land. > My suggestion would be to write a custom jsp page that will collect parameters, validate them and then will do a forward to jmxproxy. It is easy to secure a single pag

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 9/7/12 11:32 AM, Shanti Suresh wrote: > Also, what I would like to achieve is to have a secure jmxproxy > servlet for "set" operations. But have no authentication and > authorization for get operations. I personally think that's a bad i

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
Ah, okay. Thank you! Also, what I would like to achieve is to have a secure jmxproxy servlet for "set" operations. But have no authentication and authorization for get operations. I tried might to "tighten" only the "set" operations of the "jmxproxy" servlet by modifying manager/WEB-INF/web.xml

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 9/7/12 10:07 AM, Shanti Suresh wrote: > We are running v7.0.23. So "key" I hope should do the trick. But > it doesn't seem to be. Well, that feature was added in 7.0.27 and you are running 7.0.23. So you don't have a version that support

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
Hi Christopher, We are running v7.0.23. So "key" I hope should do the trick. But it doesn't seem to be. Thanks! -Shanti On Thu, Sep 6, 2012 at 7:48 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > ... > S

Re: Tomcat HeapMemoryUsage MBean question

2012-09-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 9/6/12 10:15 AM, Shanti Suresh wrote: > Oh my! Thank you! I remember reading that a while back but just > missed it when in need. However, the syntax didn't produce the > desired results. > > " > https://hostname_fqdn:8453/manager/jmxp

Re: Tomcat HeapMemoryUsage MBean question

2012-09-06 Thread Shanti Suresh
Hi Christopher, On Wed, Sep 5, 2012 at 9:46 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Shanti, > > On 9/4/12 3:18 PM, Shanti Suresh wrote: > > I would like to graph Tomcat's HeapMemoryUsage -> used mbean value > > for tre

Re: Tomcat HeapMemoryUsage MBean question

2012-09-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 9/4/12 3:18 PM, Shanti Suresh wrote: > I would like to graph Tomcat's HeapMemoryUsage -> used mbean value > for trending. I have installed Tomcat's manager application with a > user belonging only to the "manager-jmx" role. I would like t

Tomcat HeapMemoryUsage MBean question

2012-09-04 Thread Shanti Suresh
Greetings, I would like to graph Tomcat's HeapMemoryUsage -> used mbean value for trending. I have installed Tomcat's manager application with a user belonging only to the "manager-jmx" role. I would like to use curl to get the data. I have a couple of questions: (1) I don't seem to be able to