Re: Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/7/20 18:32, Jerry Malcolm wrote: > I going to assume that the reason I have apache httpd in there is > 'because I always have had it there' is not going to go over well > as a good reason, huh? I mean... if you want to do more work and

Re: Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-07 Thread Jerry Malcolm
I going to assume that the reason I have apache httpd in there is 'because I always have had it there' is not going to go over well as a good reason, huh?  I used to use it to serve static files. But that is pretty much taken over by S3 now.  I still use it for the SSL stuff.  But that's primar

Re: Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/7/20 16:50, Jerry Malcolm wrote: > I'm setting up an environment that has the potential for a large > number of simultaneous requests coming in. I have a basic Apache > HTTPD with mod_jk talking to Tomcat, all on the same Amazon EC2 >

Monitoring Connections and Limits Thru HTTPD/mod_jk/Tomcat

2020-07-07 Thread Jerry Malcolm
I'm setting up an environment that has the potential for a large number of simultaneous requests coming in.   I have a basic Apache HTTPD with mod_jk talking to Tomcat, all on the same Amazon EC2 instance.  From my understanding, I have the potential of maxing out connections at httpd, at mod_j

Re: Monitoring Connections

2015-11-04 Thread Jamie Jackson
By the way, I had to back-burner this investigation due to other things that have come up. When those are out of the way, I'll pick up where I left off. Thanks for the discussion so far. (I don't know anything about SNMP, etc., so I'm only following that thread very loosely until I have time to co

Re: Monitoring Connections

2015-11-04 Thread Aurélien Terrestris
Hi Chris I still recommend SNMP, maybe I expressed myself incorrectly but Java SNMP support is made for monitoring. I also provided a bad link, here is the good one : http://docs.oracle.com/javase/7/docs/technotes/guides/management/snmp.html When using the right server, the SNMP will also provide

Re: Monitoring Connections

2015-11-03 Thread Christopher Schultz
Aurelien, On 11/2/15 5:54 PM, Aurélien Terrestris wrote: > Either my reply was not read, or I'm surprised nobody is answering here. > > "1. Java doesn't directly support SNMP;" > > It does, officially : http://docs.oracle.com/javase/7/docs/technotes/guides/ > management/snmp.html and it's workin

Re: Monitoring Connections

2015-11-02 Thread Aurélien Terrestris
Either my reply was not read, or I'm surprised nobody is answering here. "1. Java doesn't directly support SNMP;" It does, officially : http://docs.oracle.com/javase/7/docs/technotes/guides/ management/snmp.html and it's working pretty well with Tomcat besides being easy to set up. "2. If the

Re: Monitoring Connections

2015-10-24 Thread Aurélien Terrestris
Chris, I disagree in some way with you ;) Instrumentation is difficult because you (as a developer ?) want to go deep, but it is not necessary for a production team to go that deep to know when something is going wrong. It's a developer challenge, and he could choose to rely only on good logging.

Re: Monitoring Connections

2015-10-24 Thread Christopher Schultz
Aurélien, On 10/23/15 6:47 PM, Aurélien Terrestris wrote: > "Live monitoring is the only way to go, unless you want your customers > to surprise you with performance problems on your own site. :)" > > Monitoring, ok, but alerting is critical for large scale production > environments. Apologies..

Re: Monitoring Connections

2015-10-23 Thread Aurélien Terrestris
Chris, "Live monitoring is the only way to go, unless you want your customers to surprise you with performance problems on your own site. :)" Monitoring, ok, but alerting is critical for large scale production environments. You mention JMX callbacks for alerting, but it would be worth that you me

Re: Monitoring Connections

2015-10-23 Thread Aurélien Terrestris
> I know mod_jk will complain if it can't > make a connection or if there is a timeout... I suspect mod_proxy_http > will do the same. They both are supposed to log 502, while Tomcat will raise a "connection reset by peer" when answering to an already closed connection. Timeouts for both are buggy

Re: Monitoring Connections

2015-10-21 Thread Christopher Schultz
Jamie, On 10/21/15 2:37 PM, Jamie Jackson wrote: > On Wed, Oct 21, 2015 at 1:03 PM, Christopher Schultz wrote: > >> Jamie, >> >> >> >> Your mostly-default will default to a maximum of 200 >> incoming connections with 200 threads to handle them. You are only using >> 12, so something else must b

Re: Monitoring Connections

2015-10-21 Thread Jamie Jackson
On Wed, Oct 21, 2015 at 1:03 PM, Christopher Schultz wrote: > Jamie, > > > > Your mostly-default will default to a maximum of 200 > incoming connections with 200 threads to handle them. You are only using > 12, so something else must be going on. You have no obvious limits on > httpd, so you are

Re: Monitoring Connections

2015-10-21 Thread Christopher Schultz
Jamie, On 10/16/15 3:12 PM, Jamie Jackson wrote: > On Tue, Oct 13, 2015 at 9:34 AM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Jamie, > > On 10/9/15 10:03 AM, Jamie Jackson wrote: Here's the stack trace dump: https://gist.github.com/jamiejackson/ca2a49d2c8afac4960

Re: Monitoring Connections

2015-10-19 Thread Jamie Jackson
About the appearance of Jetty in the stack trace dump: It's part of FusionReactor (the JVM monitor)--it uses Jetty to serve its interface. Thanks, Jamie On Fri, Oct 16, 2015 at 3:12 PM, Jamie Jackson wrote: > > > On Tue, Oct 13, 2015 at 9:34 AM, Christopher Schultz < > ch...@christopherschultz.

Re: Monitoring Connections

2015-10-16 Thread Jamie Jackson
On Tue, Oct 13, 2015 at 9:34 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jamie, > > On 10/9/15 10:03 AM, Jamie Jackson wrote: > > Here's the stack trace dump: > > https://gist.github.com/jamiejackson/ca2a49d2c8afac496067 >

Re: Monitoring Connections

2015-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jamie, On 10/9/15 10:03 AM, Jamie Jackson wrote: > Here's the stack trace dump: > https://gist.github.com/jamiejackson/ca2a49d2c8afac496067 > > FWIW, I've been trying to come up with a reliable test case to > trigger the problem, but I haven't nai

Re: Monitoring Connections

2015-10-09 Thread Jamie Jackson
Here's the stack trace dump: https://gist.github.com/jamiejackson/ca2a49d2c8afac496067 FWIW, I've been trying to come up with a reliable test case to trigger the problem, but I haven't nailed it yet. I've suspected that it's related to file (large or slow) HTTP file uploads, and that's what I was

Re: Monitoring Connections

2015-10-09 Thread Jamie Jackson
Thanks, so far, everyone. I do already have a JVM monitoring tool in action--FusionReactor. I'm not very familiar with some of the other offerings, but FR has seemed full-featured to me, so I'm going to continue with FR until I find out if/that it's missing some key aspect. I managed to trigger t

Re: Monitoring Connections

2015-10-08 Thread Leon Rosenberg
On Wed, Oct 7, 2015 at 11:59 PM, Aurélien Terrestris wrote: > Hi Jamie, > > > If you enjoy live monitoring, you need to have a look on Christopher's > presentation ( > > http://events.linuxfoundation.org/sites/events/files/slides/Monitoring%20Apache%20Tomcat%20with%20JMX.pdf > ) who posts ma

Re: Monitoring Connections

2015-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Aurélien, On 10/7/15 5:59 PM, Aurélien Terrestris wrote: > when this happens you can do a thread-dump (kill -3 pid on Linux > platforms) and you would see if there is a lock on JDBC objects, or > anything else synchronized (from the Collections like

Re: Monitoring Connections

2015-10-07 Thread Aurélien Terrestris
Hi Jamie, when this happens you can do a thread-dump (kill -3 pid on Linux platforms) and you would see if there is a lock on JDBC objects, or anything else synchronized (from the Collections like Hashtable). Not easy for beginners to understand a dump, but worth learning. Very often an applicati

Monitoring Connections

2015-10-07 Thread Jamie Jackson
Hi Folks, I had a server crash on Friday, and I had the following symptoms: Response time worsened, and when I looked at my real-time monitoring (an app called FusionReactor), I saw that the app *seemed* to be single-threading (I only saw one request process at a time), then after a few minutes,