Re: New Relic for WebObjects
Pascal Robert <[email protected]> Wed, 11 Dec 2013 13:04:29 -0600 (CST)
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
FYI, I'm going to talk about Nagios, Logstash and Kibana (and Puppet and Selenium WebDriver) at WOWODC 2014. ----- Mail original ----- De: "James Brook" <[email protected]> À: "joao antunes" <[email protected]>, [email protected] Cc: [email protected] Envoyé: Mercredi 11 Décembre 2013 12:42:06 Objet: RE: [Wonder-disc] New Relic for WebObjects The data for your second bullet point is not so easy to get out into a visualisation tool but you might look at ERXStatisticsStore and the JMX MBeans. There are other tools that have JVM level instrumentation for obtaining profiling data like this. We find that the following tool-set works very well for us: * Logstash - receives 'events' on a variety of inputs - a simple input might be 'tail' on a web server log. We pipe our Apache logs to a UDP input and we have a log4j socket appender pushing WebObjects log events. Then there is an optional filter stage. The default output is to an 'Elasticsearch' datastore. http://www.elasticsearch.org/overview/logstash/ * Kibana - Great UI/dashboarding tool for logstash. It's now built in to logstash. You can make custom dashboards of the data. http://www.elasticsearch.org/overview/kibana/ * StatsD - an event/stats 'aggregator' for forwarding data to graphite/carbon. https://github.com/etsy/statsd/ It's about one line of code to send events out of WebObjects over a UDP socket. Also completely non-blocking, so no performance overhead. We actually extended ERXStatisticsStore to support custom listeners (it's part of core Wonder) and we use a StatsD listener. You should be able to see how to implement it here: https://github.com/wocommunity/wonder/blob/master/Frameworks/Core/ERExtensions/Sources/er/extensions/statistics/store/IERXStatisticsStoreListener.java https://github.com/wocommunity/wonder/blob/master/Frameworks/Core/ERExtensions/Sources/er/extensions/statistics/store/ERXDumbStatisticsStoreListener.java * Graphite - a dashboarding tool. This gives us really nice near realtime visibility of what is going on in every part of our infrastructure. It can also easily be used to set up time-series based alerting in Nagios or other monitoring tools. Really useful tool but ugly web site: http://graphite.wikidot.com * JMXTrans - gets JMX data from WO apps (loads of useful stuff there) and sends it to StatsD so that Graphite can graph it - https://github.com/jmxtrans/jmxtrans Also looks at: * http://metrics.codahale.com - Java framework for sending out metrics * http://sensuapp.org - Modern replacement for Nagios * http://ganglia.sourceforge.net - Another monitoring tool - targeted at clusters/cloud deployments Finally, the seminal article "Measure Anything, Measure Everything" http://codeascraft.com/2011/02/15/measure-anything-measure-everything/ -- James ________________________________ From: Joao Antunes [[email protected]] Sent: 11 December 2013 12:41 To: [email protected] Cc: [email protected] Subject: Re: [Wonder-disc] New Relic for WebObjects Yes, sorry for the _very_ late reply. Well, as far as I can tell, and i'm probably wrong, Nagios can only tell you how the server itself is doing, it does not give you details like: - Time of response per HTTP request (ok you can hook up your Load Balancer to do this); - Time spent on each layer of the MVC (well, how much time coming up with your components, how much time accessing the entities in the database, etc); I have tried to use it with WO but it ended up making the server rewrite the URLs badly (for some reason, maybe because the agent wasn't in the same directory as the App as they advised it to be) and no data came out from it. I sent them an email and they said nothing about supporting it. However, what are the other alternatives? I recently read about WOStats and that seems the way to go, any links/resources for a WO 5.3 (and an old version of wonder) with pointers on how to set it up/configure it? I could only found the Javadocs of the classes and they don't provide much help. Also, opinions suggestions from someone who attempted the endeavor previously? Thanks On Tue, Nov 12, 2013 at 7:04 PM, <[email protected]<mailto:[email protected]>> wrote: From what I understand, New Relic is part Nagios-like and part JMX-like. Pascal did a lot of work and presentations on using Nagios for WO app monitoring. What problem did you hit with New Relic? Chuck -- Chuck Hill Executive Managing Partner, VP Development and Technical Services Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/gvc/practical_webobjects Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! On 2013-11-09 1:39 PM, "Joao Antunes" wrote: Hi! I was trying to install New Relic in webobjects, but I think that it is not compatible, are there any alternatives? I saw ERProfiling but my wonder version is previous to that one, and as far as I know the ERProfiling should only be used in development because it adds the 'header/footer' with the profling info on each page view. Anyone has any ideas regarding implementing a similar functionality (to the one that NewRelic offers) in a WebObject application? -- João Antunes http://web.ist.utl.pt/~joao.a.p.antunes/<http://web.ist.utl.pt/~joao.a.p.antunes/?reference=emailSig> -- João Antunes http://web.ist.utl.pt/~joao.a.p.antunes/<http://web.ist.utl.pt/~joao.a.p.antunes/?reference=emailSig> ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Wonder-disc mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wonder-disc