Resin - Application Server Health System - Java Monitoring
Resin - Application Server Health System - Java Monitoring
Java EE Certied
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho , resin and quercus are registered trademarks of Caucho Technology, Inc.
Resin Health System (RHS) Goes Beyond Just Monitoring Server and JVM can respond to conditions with actions Actions can remediate problems If server about to go down
due to bug, denial of service, or spike RHS triggers diagnostics then restarts Resin Application Server keeps running
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Idea for RHS came from doing Resin support Thread lock? Can you do a thread dump when you see the problem? Running out of memory? Can you do a heap dump? How is your machine congured? What version?
What OS?
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Ability to respond to problems Detect JVM and OS issues Avoid zombie processes Restarts Resin if there are major problems Internal monitoring
External Monitoring
Resin WatchDog Process Uses process control, socket connection and periodic ping to determine up time status
Post-mortem analysis Thread Dump/Log Dump Meters and Graphs Heap Dump
Resin Internal WatchDog Thread Watchers internal meters for problems Periodic Thread
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Metrics are things like Available Memory, Number of Requests Per Minute, Garbage Collection Time, CPU Load, etc. Metrics can be graphed Tracks Historical Data for Trends Can determine Anomalies Can determine Trends Can compare current data with baseline data
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
VisualizaFon
Post mortem PDF Report PDF Report you can generate anytime
Snapshot Report
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
RHS is highly congurable Similar to the Resin's "URL Rewrite" rules Rules are congurable
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Watchdog process
Lightweight process : Used to stop and start Resin instances Can restart an instance if Java Monitoring / Server Monitoring / Health issue Parent process of Resin Server Opens socket to Resin Server Sends are-you-alive ping?
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin is resilient If a Denial of Service or unexpected Spike or Bug knocks down JVM, Resin restarts Beyond that Resin can detect critical problems and do critical diagnostics so DevOps and Developers can get to root of problem Resin long been product of choice for embedded devices, network appliances and large deployments Non Stop mode makes Resin perfect for cloud deployments
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Starting Resin Process Ownership TCP Link
Resin
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Non-Stop Up State Process Ownership TCP Link
Resin
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Non-Stop Up State Process Ownership TCP Link
Resin
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Watch-Dog
Non-Stop Up State
Watchdog Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Watchdog Process
Resin Health System Watchdog Thread
Resin Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Watchdog Process
Resin Health System Watchdog Thread
Resin Process
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Executes series of checks Recheck failed conditions Perform actions when conditions are critical or fatal
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
RHS conguration extends Resin conguration le resin.xml RHS uses CanDI (Resins Java CDI)
create and update Java objects, XML tags exactly matches either a Java class or a Java property Use HealthSystem JavaDoc Use JavaDoc of the various checks, actions,
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Startup delay : wait for baselined date before recording Period: how often to check metrics Recheck period: if some level has been crossed how often should RHS recheck to see if better
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Actions can be grouped If in critical state for two minutes perform group of actions Dump JMX values, Dump Threads, Dump Heap, CPU Prole, Restart If actions longer than 10 m, restart
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Bug
RHS collects metrics you need to diagnose problem Without collection, you are ying blind
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Post Mortem Report Environment Info Server Metrics JVM Metrics Thread Dump Heap Dump Metrics Graph
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Post Mortem Report Environment Info Server Metrics JVM Metrics Thread Dump Heap Dump Metrics Graph
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Environment Data
Collect critical information about environment When, What OS, What version of Resin How did Resin startup And much more
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Health Status
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Anomalies
Health Checking stores baseline Anomalies are congurable triggers based on large changes from expected baseline Anomaly detection is congurable can trigger actions
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Cluster Status Request Count Request Time HTTP Request Errors Log Warnings Threads CPU Usage Database Connection Active
GC Time
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Heap Dump
Heap dump critical for tracking down memory leaks Also generates hprof le which can be analyzed by many third party tools
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Snapshot report
Reports same type of data as watchdog Watchdog report is a postmortem analysis Snapshots are whenever you feel like
e.g., during a stress test trigger via REST, CLI and Web Admin
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Conclusion
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin Health System : Java Monitoring and Server Monitoring built into Resin Application Server Resin Health System : Current and Into the Future Resin Application Server Fullls Vision of Cloud Computing Resin Health System Enhancements
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
More Info
Caucho Technology | Home Page Resin | Application Server Resin | Java EE Web Prole Application Server Resin - Cloud Support | 3G - Java Clustering Resin | Java CDI | Dependency Injection / IoC Resin - Health System | Java Monitoring and Server Monitoring Download Resin | Application Server Watch Resin | Application Server Featured Video
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.