Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-13 Thread Shanti Suresh
; Location: http://www.lsa.umich.edu//polisci/ < Content-Length: 0 < X-Cnection: close < Content-Type: text/plain; charset=UTF-8 < Set-Cookie: BIGipServerlsa-cmsproddlv_pool=3232879501.20480.; path=/ < * Connection #0 to host www.lsa.umich.edu left intact * Closing connection #0

Re: Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-13 Thread Shanti Suresh
onse message Thanks. Quoting Shanti Suresh : All, We are running into a peculiar issue. We have Tomcat 6.0.24 front-ended by Apache2.2.3. We have a VirtuslHost serving port 80 where Apache simply hands off "/" to Tomcat's load-balancer. ServerName wwwprod.lsa.umich.e

Re: Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-14 Thread Shanti Suresh
rom "www.lsa.umich.edu/polisci", causing it to send a "//" for the latter. Thanks. -Shanti On Sep 14, 2011, at 2:58 AM, André Warnier wrote: > Shanti Suresh wrote: >> All, >> We are running into a peculiar issue. We have Tomcat 6.0.24 front-ended by &g

Re: Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-14 Thread Shanti Suresh
Hi Andre, Oh sure :-) I forgot to mention that I did try commenting out and testing but left it back on as it did not make a difference. Thanks, and sorry about the ommission. -Shanti On Sep 14, 2011, at 11:20 AM, André Warnier wrote: > Shanti Suresh wrote: >>

Re: Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-14 Thread Shanti Suresh
uot; header as one of the main differences. The F5 load-balancer Cookie may be ignored in the "www.lsa.umich.edu" case. I appreciate your questions and thoughts. Thanks! -Shanti Quoting Konstantin Kolinko : 2011/9/14 Shanti Suresh : All, We are running into a peculiar is

Re: Tomcat Redirect Issue - Extra "/" after hostname - Help Please

2011-09-14 Thread Shanti Suresh
d server. In our case, we are doing mass name-based virtual hosting and were missing this directive. Thanks. -Shanti Quoting Shanti Suresh : Hi Konstantin, Our Balancer is setup as follows: BalancerMember http://lsa-cmsproddlv1.lsa.umich.edu:80

mod_proxy_balancer anomaly Question

2011-09-15 Thread Shanti Suresh
er in the 302 responses. (4) How does Tomcat work without "ProxyPreserveHost On" when requests don't go through the balancer? Thanks! -Shanti -- Shanti Suresh sha...@umich.edu http://lsa.umich.edu/cms

Re: Session management issue with Tomcat

2011-09-22 Thread Shanti Suresh
think you need to instruct your users to completely exit the browser > after they use your site if they value their privacy. > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk

Re: tomcat http connector

2011-11-22 Thread Shanti Suresh
comparison > between http connector and AJP one. > > Thanks, > Asha > > > !DSPAM:4ecb449672082560778728! -- Shanti Suresh App Systems Analyst Lead Web Services, LSA Development University of Michigan Office: 734-763-4807 sha...@umich.edu http://lsa.umich.edu/cms

Tomcat inconsistency across two servers - any thoughts?

2012-01-25 Thread Shanti Suresh
Greetings. We have two RedHat Linux servers, Dlv1 and Dlv2, running: Linux 2.6.18-274.3.1.el5 #1 SMP Fri Aug 26 18:49:02 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux Each has an identical 7.0.23 Tomcat engine running, front-ended by Apache/2.2.3. Each Tomcat runs exact binary-compatible application

DBCP Connections build up on one server

2012-02-17 Thread Shanti Suresh
-- Shanti Suresh App Systems Analyst Lead Web Services, LSA Development University of Michigan Office: 734-763-4807 sha...@umich.edu http://lsa.umich.edu/cms

Re: DBCP Connections build up on one server

2012-02-17 Thread Shanti Suresh
! -Shanti On Feb 17, 2012, at 4:59 PM, Shanti Suresh wrote: > All, > > The Mbean for a JDBC datasource that uses the commons-dbcp-1.2.1.jar library > builds up on one server. The other server is okay. They run the same code. > > We are using Tomcat-7.0.23. > They

Multiple Contexts - one classloader

2012-04-30 Thread Shanti Suresh
All, Is there a way to specify with Tomcat 7, one webapp-base with multiple contexts? If I create several XML files under /conf/Catalina/localhost/ and point the docbase to outside-appbase WAR path I get multiple classloaders. I would like one application instance to serve the different cont

Re: Intermittent mod_proxy_ajp error - APR does not understand this error code: proxy: dialog

2012-07-27 Thread Shanti Suresh
Hi Tony, Could you be running out of database connections? Try taking a thread dump when the issue occurs, or schedule periodic thread-dumps. And see if any threads are stuck during the time of issue. You could also cron a job every minute to find out the number of connections going into the da

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

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 HeapMemo

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-07 Thread Shanti Suresh
-Shanti On Fri, Sep 7, 2012 at 11:06 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -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 sh

Re: Tuning session replication on clusters

2012-09-07 Thread Shanti Suresh
Hi Kyle, Great testing, btw. So when you say "x5", did you change the settings as follows: rxBufAize="125940" (=> 25188 x 5) By any chance, have you analyzed a heapdump of Tomcat at periodic intervals to see which class is hogging heap during the session replication? Thanks.

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
gt; seems we have a real use-case where a user wants this capability. > Oh, most certainly, there is a definite use-case for this feature. And others will use it heavily once you have the capability. It just doesn't seem like a good plan to have the get and set secured the same way.

Re: Tomcat HeapMemoryUsage MBean question

2012-09-07 Thread Shanti Suresh
agement.MalformedObjectNameException: Key properties cannot be empty * Connection #0 to host localhost left intact * Closing connection #0 -End of HTTP Connection output- Thanks. -Shanti On Fri, Sep 7, 2012 at 4:29 PM, Konstantin Kolinko wrote: > 2012/

Re: Tomcat HeapMemoryUsage MBean question

2012-09-10 Thread Shanti Suresh
.net> wrote: > -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. > > &

mod_jk vs. mod_proxy

2012-09-18 Thread Shanti Suresh
All, I wanted your opinion on this topic. I was heavily into using "mod_jk" a few years back. But I have since started using mod_proxy for the following reasons: (1) mod_proxy is easier to configure (2) I remember reading that "mod_jk" is deprecated (3) Logging for mod_proxy appears inline with

Re: mod_jk vs. mod_proxy

2012-09-18 Thread Shanti Suresh
Hi Dan, On Tue, Sep 18, 2012 at 10:10 AM, Daniel Mikusa wrote: > > I've not heard this. Where did you read this? > My apologies! I read wrong. It must have been about "mod_jk2". I found this article helpful. > > > http://www.tomcatexpert.com/blog/2010/06/16/deciding-between-modjk-modproxy

Re: mod_jk vs. mod_proxy

2012-09-19 Thread Shanti Suresh
Hi Chris, Appreciate your feedback. That is helpful. Thanks you! -Shanti On Tue, Sep 18, 2012 at 3:33 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Shanti, > > On 9/18/12

Tomcat currentThreadsBusy Mbean - JSP query page

2012-09-24 Thread Shanti Suresh
Greetings. I would like to query the CurrentThreadsBusy MBean and am running into issues creating a JSP page for that query. The questions I have are: (1) when does one use "get" vs "qry". For e.g., the following URLs work: CurrentThreadsBusy -> http://localhost:8090/manager/jmxproxy?qry=Catali

Re: Tomcat currentThreadsBusy Mbean - JSP query page

2012-09-24 Thread Shanti Suresh
Hi Chris, On Mon, Sep 24, 2012 at 12:44 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Shanti, > > "qry" is a search operation, while "get" queries a specific MBean and > has other options (like going into a compound value and

Re: high CPU usage on tomcat 7

2012-09-27 Thread Shanti Suresh
Hi Kirill, Like Mark, Bill and Jeff said, those threads are normal request-processing threads. I have included a script that might help with isolating high CPU issues with Tomcat. Also, I think it might be helpful to see how the Java heap is performing as well. Please bring up Jconsole and let i

Re: high CPU usage on tomcat 7

2012-09-27 Thread Shanti Suresh
Hi Kirill, I mistook that the CPU issue clears itself. Sorry. It may or may not be related to Garbage-collection settings then. -Shanti On Thu, Sep 27, 2012 at 2:17 PM, Shanti Suresh wrote: > Hi Kirill, > > Like Mark, Bill and Jeff said, those threads a

Re: Security issue regarding JSESSIONID cookie

2012-09-28 Thread Shanti Suresh
Hi Joan, What happens when you change the web.xml settings to: --web.xml: 30 COOKIE -- Thanks. -Shanti On Fri, Sep 28, 2012 at 10:58 AM, Konstantin Kolinko wrote: > 2012/9/28 Martin Gainty : > > > > that is NOT what

Re: Security issue regarding JSESSIONID cookie

2012-09-28 Thread Shanti Suresh
> mod_header on Apache, but any idea on how this would help? > > Thanks, > Joan > > > -- > Joan Morales > > El 28/09/2012, a las 17:35, Shanti Suresh escribió: > > > Hi Joan, > > > > What happens when you change the w

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
x01f8a800 nid=0x64af waiting on condition [0x7fee24ccb000] > 0x64b0 090.7"ajp-apr-8009-exec-49" daemon prio=10 > tid=0x0257b000 nid=0x64b0 runnable [0x7fee36d73000] > 0x64b1090.7"ajp-apr-8009-exec-50" daemon prio=10 >

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
sudo su webinf -c "xauth add $XAUTH_ENTRY; /usr/bin/jconsole -J-Djava.class.path=/usr/lib/jvm/java/lib/jconsole.jar:/usr/lib/jvm/java /lib/tools.jar" ---- On Wed, Oct 3, 2012 at 11:07 AM, Shanti Suresh wrote: > Hi Kirill, > > I am a

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
command-line from the "ps" command. Thanks. -Shanti On Wed, Oct 3, 2012 at 11:10 AM, Shanti Suresh wrote: > Well, > > Here it is: > > start_jconsole.sh--- > #!/bin/sh > > export DISPLAY > > > DISPLAY_NUM

Re: Tomcat 7.0.30 JAR Scanner ClassCastException

2012-10-05 Thread Shanti Suresh
Hi Jesse, I have a JSP which will tell which library loads which class. This has helped me immensely in troubleshooting a challenging library conflict that we ran into recently. Please place this JSP in apache-tomcat-7.0.23/webapps/ROOT/. Invoke it as: http:///whichjar.jsp And keying in the n

Re: high CPU usage on tomcat 7

2012-10-05 Thread Shanti Suresh
Hi Kirill, Do you happen to have a QA or a test environment by any chance? 25GB is very big for a JVM heap size. Some questions I have are: (1) What does the application do? How many concurrent users do you have? (2) What was the heap set at before you increased it to 25GB? (3) Why did you thi

Re: ConnectionPoolMBean should not expose plain-text DB password

2012-10-05 Thread Shanti Suresh
Hi Te, Will it be an option for you to create a JSP as was recently discussed in this list, to expose just the particular MBeans that you need? Thanks. -Shanti On Thu, Oct 4, 2012 at 3:06 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED ME

Re: ConnectionPoolMBean should not expose plain-text DB password

2012-10-05 Thread Shanti Suresh
;s okay for JMX > admins to see exposed DB passwords (which should never be exposed in > plaintext or encrypted form). Those who work in a company would probably > concur with this point. > > Does that make sense to anyone? > > Thanks, > Te > > On 10/5/12 6:51 AM, "Sh

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, At this point, I'm thinking that perhaps a network traffic capture might give you some clues. Just see the kind of traffic coming in to the server. You may use wireshark easily to both capture and see traffic. Setup up a capture filter to capture traffic to and from your server machi

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, I am also just curious how much active heap you are really using. From the previous heapdumps the script generated, what size are these? Was there a reason you needed a huge heap like 25GB? What is the lowest heap size you have tried so far? You may need to invoke the script 10 seco

Thread related MBean questions

2012-10-16 Thread Shanti Suresh
Greetings. I have some questions on finding the number of active threads in Tomcat. (1) On our QA system, I notice that the currenthreadsBusy MBean is either zero or one for the 8443 and 8080 connectors. Why then is ThreadCount = 93 when there is not much going on on QA? (2) When I want to graph

Re: Thread related MBean questions

2012-10-18 Thread Shanti Suresh
to use the executor Thread Pool, I think. Thanks. -Shanti On Wed, Oct 17, 2012 at 9:07 AM, Pid wrote: > On 16/10/2012 17:52, Shanti Suresh wrote: > > Greetings. > > > > I have some questions on finding the number of active threads in Tomcat. > > (1) On o

Re: Thread related MBean questions

2012-10-22 Thread Shanti Suresh
Hi Pid, > Which MBean are you reading that on? > Name: java.lang:type=Threading modelerType: sun.management.ThreadImpl ThreadAllocatedMemoryEnabled: true ThreadAllocatedMemorySupported: true ThreadContentionMonitoringEnabled: false DaemonThreadCount: 84 ... Tomcat has lots of MBeans and more

Re: Max Threads - Worker Threads clarification

2012-10-23 Thread Shanti Suresh
Hi Charles, If you want to really see how many are busy, perhaps qualify the command as: netstat -an | grep 8009 | grep ESTABLISH | wc -l Some connections may be in CLOSE_WAIT or TIME_WAIT states, waiting to be closed. Thanks. -Shanti On Tue, Oct 23, 2012 at 12:10 PM, C

JDK 1.6 or JDK 1.7

2012-12-06 Thread Shanti Suresh
All, I am trying to decide whether to run Tomcat 7.0.33 on JDK 1.6 or JDK 1.7. Tomcat-7 release notes say: Tomcat 7.0 is designed to run on Java SE 6 and later But I remember reading on this list about some issues folks are having with JDK 1.7. Appreciate your advice. We plan to run a vendor

Re: JDK 1.6 or JDK 1.7

2012-12-06 Thread Shanti Suresh
Hi Nick, Thanks! That helps a lot. -Shanti On Thu, Dec 6, 2012 at 2:24 PM, Williams, Nick wrote: > > -Original Message- > > From: Shanti Suresh [mailto:sha...@umich.edu] > > Sent: Thursday, December 06, 2012 1:04 PM > > To: Tomcat Users L

Re: JDK 1.6 or JDK 1.7

2012-12-06 Thread Shanti Suresh
Hi Chris, Perfect! Thanks so much. -Shanti On Thu, Dec 6, 2012 at 6:00 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Shanti, > > On 12/6/12 2:03 PM, Shanti Suresh w

Re: common vs system vs shared class loaders

2013-01-17 Thread Shanti Suresh
Hi Chuck, Dan, Sometimes, sharing classes across applications may become necessary though. We have a situation where a separate application and associated webapp classloader is launched for each site in our application. The reason this is happening is because things have been setup differently i

Re: Different webapp paths on different hosts

2013-01-25 Thread Shanti Suresh
On Fri, Jan 25, 2013 at 3:29 AM, Konstantin Kolinko wrote: > 2013/1/25 bxqdev : > >> > >> Anyway I would say a context.xml file in conf/catalina/path1 (the > >> hostname)/path1.xml (the context name) should do the trick? > >> Place the webapp outside the appbase of the hosts and then point the > >

Re: Tomcat jdbc pool connection failover

2013-03-11 Thread Shanti Suresh
On Mon, Mar 11, 2013 at 11:00 AM, André Warnier wrote: > > amit shah wrote: > >> Apparently we use Oracle as our data store while the solution you >> mentioned >> is for mysql. >> > > And did you check if the Oracle JDBC driver provides such an option ? > > > >> Is there a way tomcat can provide

Re: tomcat 6.0.35 in production maintaince

2013-03-12 Thread Shanti Suresh
On Tue, Mar 12, 2013 at 1:48 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > > is there any maintenance necessary for production servers if so what > > are those ? > > Health monitoring is always useful. > > http://wiki.apache.org/tomcat/FAQ/Monitoring > http://wiki.apache.org/to

Apache HTTPD + Tomcat restarts

2013-04-15 Thread Shanti Suresh
All, I made a simple change to the Apache HTTPD configs - I reduced the number of loaded modules - and then stopped and started Apache. On the QA environment, Tomcat did not need a restart. On the PROD (production) environment, soon after Apache was restarted, the application URLs resolved okay

Re: Apache HTTPD + Tomcat restarts

2013-04-15 Thread Shanti Suresh
Hi all, Apologies :-) I was expecting a simple yes/no response. On Mon, Apr 15, 2013 at 4:01 PM, André Warnier wrote: > Mark Eggers wrote: > >> >> Apache HTTPD modules do not influence how Apache Tomcat runs. >> > That's what I thought. > >> >> >> If that cures your problem, then you shoul

Re: Apache HTTPD + Tomcat restarts

2013-04-15 Thread Shanti Suresh
On Mon, Apr 15, 2013 at 5:02 PM, Shanti Suresh wrote: > > > And Apr 11 21:05 is when I restarted Apache after removing several unused > modules - hard stop and start. The way I restarted Apache is: > sudo /usr/sbin/service httpd stop > sudo /usr/bin/servive httpd start >

catalina.out anomaly?

2014-04-03 Thread Shanti Suresh
Greetings, I am unable to understand how Tomcat v7.0.23 suppresses startup messages in catalina.out and Tomcat v7.0.52 displays them all in catalina.out. Also Tomcat 7.0.23 starts up much faster than Tomcat v7.0.52. Contexts are served immediately upon a v7.0.23 restart. I used the same logging.

Re: catalina.out anomaly?

2014-04-04 Thread Shanti Suresh
Hi Chris, Thanks you for the note! On Thu, Apr 3, 2014 at 12:40 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Shanti, > > > They work the same way. Are you launching them differently for > different versions? > Yes, actua

Re: catalina.out anomaly?

2014-04-04 Thread Shanti Suresh
All, First of all, I apologize for the question on "catalina.out" being empty in v7.0.23. That's because I am using log4j for Tomcat logging, and the level was set to "ERROR". Here is an interesting finding between v7.0.23 and v7.0.52. It appears that a 3 second delay occurs in v7.0.52 as the d

7.0.23 vs. 7.0.52 startup times

2014-04-10 Thread Shanti Suresh
Greetings, There appears to be a hold up in 7.0.52 at startup as compared to 7.0.23 - a matter of several seconds initializing each context. In 7.0.52, the delay appears to happen at "findResources" when the "javax.servlet.ServletContainerInitializer" is identified. Such a things does not happen

Re: How to monitor performance of tomcat

2014-04-11 Thread Shanti Suresh
Hi Chris, On Fri, Apr 11, 2014 at 10:48 AM, André Warnier wrote: > > > On 4/8/14, 5:24 PM, Christopher Schultz wrote: > http://people.apache.org/~schultz/ApacheCon%20NA%202014/Monitoring > %20Apache%20Tomcat%20wi

Re: How to monitor performance of tomcat

2014-04-11 Thread Shanti Suresh
Hi Chris, On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Shanti, > > On 4/11/14, 9:01 AM, Shanti Suresh wrote: > > Thank you! Great presentation and most wonderful

Re: How to monitor performance of tomcat

2014-04-11 Thread Shanti Suresh
On Fri, Apr 11, 2014 at 3:04 PM, André Warnier wrote: > Shanti Suresh wrote: > >> Hi Chris, >> >> On Fri, Apr 11, 2014 at 12:17 PM, Christopher Schultz < >> ch...@christopherschultz.net> wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >>>

Re: 7.0.23 vs. 7.0.52 startup times

2014-04-11 Thread Shanti Suresh
file? Thanks, -Shanti On Thu, Apr 10, 2014 at 3:06 PM, Konstantin Kolinko wrote: > 2014-04-10 22:28 GMT+04:00 Shanti Suresh : > > Greetings, > > > > There appears to be a hold up in 7.0.52 at startup as compared to 7.0.23 > - > > a matter of several sec

Re: How to monitor performance of tomcat

2014-04-15 Thread Shanti Suresh
e port 8891 does > not respond as the command, > > jconsole 10.101.17.79:8891 > > does not give any console for monitoring. > > Requesting an update so that the root cause analysis of this issue can be > found out. > > Regards > > -Original Message- > F

Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
Greetings, Chris' presentation on monitoring Tomcat is really nice work. I found that quite useful. Taking it one step further, could I request some recommendations on how we might profile Java code running inside Tomcat? Often, I am stuck with finding out why an application is slow. It could

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
Hi Chris, On Tue, Apr 15, 2014 at 1:58 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > You need to use a Profiler for that. There are a number of fine > Profilers available for Java. I use YourKit because they give free > lic

Re: Performance - Java Profiler, JVM instrmentation

2014-04-15 Thread Shanti Suresh
On Tue, Apr 15, 2014 at 3:59 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > > > Can you afford to wait for the request to complete (late), or do you > need to know immediately when a request is taking too long? > My reasoning for measuring the long-running requests at a given pe

Re: Apache HTTPD + Tomcat restarts

2013-04-18 Thread Shanti Suresh
Hi André, Hi all, On Mon, Apr 15, 2013 at 7:02 PM, André Warnier wrote: > > Well, you wrote that you wanted to know our thoughts. Yes or No would not > have been an appropriate response to that, so we elaborated a bit. > ;-) > > > Yes, true. Thank you! I am a bit unsure what's going on. So

Tomcat 7.0.33 manager - 403 Access Denied

2013-04-23 Thread Shanti Suresh
All, I am wondering what I'm doing wrong - the Manager application is denying me access. Here are the details: Tomcat version: 7.0.33 JDK version: java version "1.7.0_09" Java(TM) SE Runtime Environment (build 1.7.0_09-b05) Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode) Op

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-23 Thread Shanti Suresh
Hi Leo, On Tue, Apr 23, 2013 at 1:56 PM, Leo Donahue - RDSA IT < leodona...@mail.maricopa.gov> wrote: > > > Is that password really the SHA value of something? > > If your password was: password1, then you would store the SHA value of > "password1" in your tomcat-users.xml > > > Not the entry I

Re: two responses from one request - how is it possible ?

2013-04-23 Thread Shanti Suresh
André Please kindly share the half-page that you have written up so far. Actually, would you please finish it up and then post? Thanks :-) -Shanti On Tue, Apr 23, 2013 at 11:53 AM, André Warnier wrote: > > >> Well, I did not want Jakub to remain influenced by that very bad

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-23 Thread Shanti Suresh
Hi Jakub, Thank you for the suggestions. Appreciate the thoughts. On Tue, Apr 23, 2013 at 3:33 PM, Jakub 1983 wrote: > try to comment out RemoteAddrValve, > and check if the error still exists > Yes, I had tried that. It didn't work. > have you added into users.xml ? > add and try with we

Re: two responses from one request - how is it possible ?

2013-04-24 Thread Shanti Suresh
Hi André, Those notes are very succinct. Appreciate it. Thank you for sharing. -Shanti On Wed, Apr 24, 2013 at 4:45 AM, André Warnier wrote: > André Warnier wrote: > >> Shanti Suresh wrote: >> >>> André >>> >>> Pl

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-24 Thread Shanti Suresh
Hi Konstantin, On Tue, Apr 23, 2013 at 6:48 PM, Konstantin Kolinko wrote: > > > > > I can't tell what I'm missing. Also, steps #2 and #3 are not even > required > > if I am using the RemoteAddrValve, correct? > > No. They are not related to RemoteAddrValve. > Thanks! > > > I would say that yo

Re: Policy files

2013-04-25 Thread Shanti Suresh
Hi Christian, On Wed, Apr 24, 2013 at 11:25 PM, Christian Beikov < christian.bei...@gmail.com> wrote: > > > I just don't want to have these applications running on my computer not > knowing what they actually do. To be honest I couldn't think of any > permission I would give a student applicatio

Re: Monitoring Tomcat - Delta Values

2013-05-03 Thread Shanti Suresh
>On Fri, May 3, 2013 at 12:58 PM, Rainer Jung wrote: >On 03.05.2013 18:13, Caldarale, Charles R wrote: >>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >>> Subject: Monitoring Tomcat - Delta Values >> >>> I was wondering if anyone could recommend an existing tool to capture >>> t

Re: Monitoring Tomcat - Delta Values

2013-05-06 Thread Shanti Suresh
Greetings Leon et al, On Fri, May 3, 2013 at 6:36 PM, Leon Rosenberg wrote: > Hello Shanti, > > > > yes it does: > https://confluence.opensource.anotheria.net/display/MSK/MoSKito+Central > > https://confluence.opensource.anotheria.net/display/MSK/HowTo+Run+moskito-central+in+embedded+mode > > >

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Shanti Suresh
Hi Chris, This is such an interesting discussion. I am not sure what to make of this person's comment: --- TAXI 2012-10-09 09:03:59 PDT Wow, no fix since 8 years... And this is a real bug: If the HTTP header says the file is encoded in ISO-8859-1 the common way to override th

Re: [slightly OT] FORM based authentication and utf-8 encoding of credentials

2013-07-02 Thread Shanti Suresh
Greetings, On Wed, Jun 26, 2013 at 4:08 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > André, > > > > > But, even when sending UTF-8 encoded data according to this > > principle, they are *not* indicating that it is UTF-8 da

Monitoring Tomcat - In-depth details

2013-07-02 Thread Shanti Suresh
All, For lack of funds initially and now for a stalemate in the project, we do not have a JVM monitoring tool yet. JavaMelody was recently discussed. I like the fact that there is a dashboard and history of metrics. In looking at it, I find JavaMelody lacking in in-depth diagnostics of the JVM

HTTPD + Digest + mod_proxy

2013-08-07 Thread Shanti Suresh
Greetings, I am a little challenged on setting up mod_digest in HTTPD to authenticate one particular URI before ProxyPass'ing it on to Tomcat. My directives are not working: ---httpd.conf snippet:--- SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+

Re: HTTPD + Digest + mod_proxy

2013-08-07 Thread Shanti Suresh
My apologies, It works okay. Thanks, -Shanti On Wed, Aug 7, 2013 at 11:41 AM, Shanti Suresh wrote: > Greetings, > > I am a little challenged on setting up mod_digest in HTTPD to authenticate > one particular URI before ProxyPass'ing it on to Tomcat. My dir

Re: Registering Plugins, e.g. javax.imageio...

2013-09-11 Thread Shanti Suresh
Hi Konstantin, Hi Chris, On Wed, Sep 11, 2013 at 1:43 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > > > BTW, beware of known issue, mentioned in the FAQ, > > http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues > > +1 > > Could you please explain this bug better? So fro

Re: Registering Plugins, e.g. javax.imageio...

2013-09-13 Thread Shanti Suresh
On Thu, Sep 12, 2013 at 11:06 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Shanti, > > > > I think you are confused about a few things. Flushing the stream does > not close it, but the finalizer I believe also closes the str

Manager app + RemoteAddrValve + 403 Access Denied

2014-08-29 Thread Shanti Suresh
Greetings, I am running Tomcat 7.0.52. I am a bit unsure as to why localhost is being denied a JMXProxy servlet query with a 403. I tried using curl as: curl http://localhost:8090/manager/heapused.jsp I have CATALINA_HOME/conf/Catalina/localhost/manager.xml set as follows: I have heapu

Re: Manager app + RemoteAddrValve + 403 Access Denied

2014-09-01 Thread Shanti Suresh
Hi Dan, On Fri, Aug 29, 2014 at 12:34 PM, Daniel Mikusa wrote: > > Can you access the JMXProxy servlet directly? > > > > http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Using_the_JMX_Proxy_Servlet > > Thanks for the note and the references. On accessing the JMXProxy servlet directl

Re: Manager app + RemoteAddrValve + 403 Access Denied

2014-09-02 Thread Shanti Suresh
Hi Dan, On Tue, Sep 2, 2014 at 7:50 AM, Daniel Mikusa wrote: > > > > So using a RemoteAddrValve will allow you to restrict access by IP address, > but the manager application is still configured to require authentication. > See this note from the link I sent previously. > > "It would be quite

Re: Manager app + RemoteAddrValve + 403 Access Denied

2014-09-02 Thread Shanti Suresh
Hi Dan, On Tue, Sep 2, 2014 at 12:19 PM, Daniel Mikusa wrote: > > > I tried adding this to my manager app and it was triggering a 403. A quick > investigation showed the 403 was coming from the CRF filter (i.e. 403 with > direct access, success with nonce in the URL). Maybe you're seeing the

Re: Manager app + RemoteAddrValve + 403 Access Denied

2014-09-03 Thread Shanti Suresh
On Tue, Sep 2, 2014 at 5:21 PM, Daniel Mikusa wrote: > > > > I didn't try curl. I believe it should work, assuming you send the right > nonce. > > > Okay. > > So in order to get a nonce in the URL, did you first log in? > > > Yes, but that was just because it was the quickest way to get a nonc