Skip to content

Latest commit

 

History

History
181 lines (137 loc) · 7.67 KB

Quick-Start.md

File metadata and controls

181 lines (137 loc) · 7.67 KB

Quick Start

English Korean

This page provides a demo system where you can install the Scouter at once and try it out easily.

This quick Start proceeds in the following order.

  1. Download integrated demonstration environment and a client program
  2. Decompress the downloaded file. - The installation is completed!
  3. Run the scouter server(Collector)
  4. Run the scouter client(Viewer)
  5. Run the host Agent - optional
  6. Run the demonstration system (Tomcat with WAR)
  7. Browse the demonstration system(JPetStore) via a web browser
  8. Do a load test by apache jmeter

Requirements

  • JDK 7+ (& environment variable JAVA_HOME to be set)
  • Windows / Linux / OS X

If No JDK, You have to download and install JDK first with the oracle.com. If you have not set the environment variable JAVA_HOME, add to the OS env variables or modify running scripts that describe later on Run demonstration system section.

architecture

Modules desc
Server(Collector) processing data that agent transfer to
Host Agent transfer CPU, Memory, Disk performance information to the collector
Java Agent transfer real time performance data of the java program such as Heap Memory, Thread, Profiles to the collector
Client(Viewer) Client program to check the collected performance information

scouter overview

Installation Scouter and run

(1) Download integrated demonstration environment and a client program

(2) Decompress the downloaded file.

decompress file and all installation is done. decompress demo-env1.tar.gz to any directory you want to.

(3) Run the scouter server(Collector)

run the command below at the directory you decompressed file.

start-scouter-server.sh

Windows :

start-scouter-server.bat

(4) Run the scouter client(Viewer)

decompress the client file you downloaded. Click the scouter client execution file and run.

  • (Important for Mac(OSX): run the command if you can not open it. xattr -cr scouter.client.app
  • scouter client needs java 11+

On the login form, you can login with 127.0.0.1:6100 for collector server and admin/admin for default id/password.

client login

(5) Run the host agent(Optional)

Run the host agent for monitoring CPU, memory, IO and more of the OS.

start-scouter-host.sh

Windows :

start-scouter-host.bat

(6) Run the demonstration system (Tomcat with WAR)

start-tomcat.sh

Windows

start-tomcat.bat

If you met the error below, you may not set JAVA_HOME. You can set JAVA_HOME on your os environment variable or modify some files - start-tomcat.bat and stop-tomcat.bat.(or .sh)

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

for example, you can modify start-tomcat.bat and set JAVA_HOME for java installed directory like below on a Windows system. set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25

@echo off
setlocal
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set originDir=%cd%
cd /D %~dp0
cd apache-tomcat-7.0.67\bin
startup.bat
cd /D %originDir%

(7) Browse the demonstration system via a web browser

Run a browser(chrome, safari...) and you can see the demo system while access http://127.0.0.1:8080/jpetstore. And also you can see the web service request you triggered on the scouter client within 2 seconds.

jpetstore main jpetstore main

(8) Do a load test by apache jmeter

You can make virtual load for verifying scouter's functionality. run the command below, will load by jmeter in 5 minutes. If you want to stop jmeter load, please press CTRL+C.

start-jmeter.sh

Windows

start-jmeter.bat

jpetstore main

Scouter client at a glance

This section will describe how the monitoring application via the scouter.

1. How to check running thread details

You can see running threads on Active Service View. We can find why our system is so slow, why this request don't response, what is this thread doing now, what's slow thread, what's stucked thread by this view. It display yellow color if the service is over than 3 seconds and red color 8 seconds.

active service

2. Service analysis by the XLog profiling data

The XLog graph shows completed request and more detail profiles when drag the area you want to see detail.

active service active service

3. Trace chained services ( Service architecture like SOA, MSA ... )

set trace_interservice_enabled=true on java agent configuration to enable HTTP inter-service trace. You can see the profile below when you drag XLog and select e2e.jsp

profile1

click the call:.. on profile to get the another profile of callee service and click the caller id on top of profile summary to get back.

Also you can see service call tree diagram by click the gxid - from an user to database tables via services. If click a table name again, used query on the table will be popped up.

profile2

The flag (S/U/D) by a table name means Select, Update, Delete query each.

profile2

4. Advanced features of scouter

Please read the detail manual pages for advanced features.

function description
SFA (Stack Frequency Analyzer) the SFA gather thread stacks for a while, then analyze and make statistics for finding out inefficient codes that make system run slow.
Trace connection Leak Trace Database Connection Leak
Add user id on a profile profile customizing with a plugin scripting feature.
method level profiling how to profile deeper - method level profiling
Trace Non-Servlet Java application how to monitoring Non-Servlet Java application like socket deamons.