-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Docs wiki!
The following sections describe how to create the necessary preconditions for ExplorViz as well as how to install and configure it. The first section describes the general procedure how to get started with ExplorViz. The second section offers more detailed information how to get started with ExplorViz as a developer. The last section is intended for the users and therefore more detailed.
- Install the latest Chrome Browser
- Start a server on which ExplorViz is monitored
- Start monitoring a java application
- Start Guide for developers
-
Download and install Java SE Development Kit 8.
-
Download and extract the Eclipse IDE for Java and DSL Developers.
-
Start the IDE and install /Google Plugin for Eclipse/Google Plugin for Eclipse 4.4/4.5/4.6 and /SDKs/Google Web Toolkit SDK 2.7.0.
-
Download the projects Common, Analysis, Monitoring and ExplorViz (Server) from Github.
-
Import the projects into the previously downloaded Eclipse IDE.
Hint: Import the project ExplorViz (Server) as the last.
-
Wait until validation is complete and the working directory has build up properly. You can see the progress right next to the heap size in the picture below.
Hint: Errors can be avoided by restarting Eclipse.
-
You can skip step 8. if there is already a run launch history containing five entries.
-
Select the project ExplorViz and click run to start the server component. Wait at least until there is a Thread listening on port 10133 and restart Eclipse. The run launch history now contains five entries.
-
Start the server component by clicking ExplorViz Server in the run menu.
-
Start your Chrome Browser and navigate to http://localhost:8888.
-
Get access to ExplorViz by clicking Sign In without adding any login data.
-
You can use the Start Monitoring Test App as shown in the picture below to get input. Another way to get input is to use your own source code as described in the user’s guide.
This section is divided into different parts and shows how to monitor a java program with ExplorViz. Therefore a local server is needed on which ExplorViz is monitored.
-
Download ExplorViz Binaries.
-
Download and install Java Runtime Environment (JRE, Java Runtime).
Hint: You have to rename the destination directory if there is already a directory containing parts of Java Runtime Environment.
-
First Copy the file ROOT.war from ExplorViz Binaries to your application server (webapps). Then copy the file explorviz-monitoring.jar to your server’s lib folder.
-
This example illustrates the installation and configuration of an Apache Tomcat 8.5 Server on windows.
-
Start the server.
The desired program has to be launched with certain parameters to monitor it with ExplorViz. The following paragraphs show two possible ways to monitor your program. Reminder: Keep the server running.
The following subparagraphs describe how to monitor a java application in two different ways
-
Click right on your project, go to Run as and select Run Configuration.
-
Open the tab Arguments and add the following instruction to the category VM arguments:
-javaagent: yourpath\lib\explorviz-monitoring.jar
important: yourpath has to contain the absolute path to the file explorviz-monitoring.jar which resides in your server’s lib folder.
In our example it looks like this:
-javaagent:C\Programme\Apache" "Software" "Foundation\Tomcat" „8.5\lib\explorviz-monitoring.jar
-
Run the main class with the new configuration.
-
Start your Chrome Browser and navigate to http://127.0.0.1:8080.
-
Get access to ExplorViz by clicking Sign In without adding any login data.
-
Navigate to the tab Visualization and monitor your application.
Hint: It might take a few seconds until your application is monitored. Furthermore relaunch the monitored application if the data stream was incomplete.
-
Export your project as an executable jar file. For details see this documentation .
-
Open the command-line and enter following instruction:
java -javaagent: yourpath\lib\explorviz-monitoring.jar -jar jarpath\filename.jar
yourpath has to contain the absolute path to the file explorviz-monitoring.jar which resides in your server’s lib folder. jarpath has to contain the absolute path to the target jar file.
In our example it looks like this:
java -javaagent:C:\Program" "files\Apache" "Software" "Foundation\Tomcat" "8.5\lib\explorviz-monitoring.jar -jar jarpath\filename.jar
-
Start your Chrome Browser and navigate to http://127.0.0.1:8080.
-
Get access to ExplorViz by clicking Sign In without adding any login data.
-
Navigate to the tab Visualization and monitor your application.
Hint: It might take a few seconds until your application is monitored. Furthermore relaunch the monitored application if the data stream was incomplete.
This paragraph deals with the monitoring configuration regarding to which components of the software are visualized.
-
The monitoring configuration file aop.xml resides in the file explorviz-monitoring.jar which is stored in your server’s lib folder.
In our example aop.xml resides in the file C:\Program" "files\Apache" "Software" "Foundation\Tomcat" "8.5\lib\explorviz-monitoring.jar.
-
Open the jar file with an extractor for example winzip or winrar. Navigate to the folder META-INF and extract the file aop.xml.
Hint: You can use an editor to open the file.
-
Open the extracted file aop.xml and update the
<include within="*"/>
statement according to your needs. For instance replace it with:<include within="com.ibatis..*" />
to monitor only method calls in the com.ibatis package and its subpackages. Add further<include within="more.packages..*“/>
statements below to include more than one package. The mentioned statement and especially the last advice is shown in the picture below.
-
After modifying the file just replace it in the jar file.
Hint: The server on which ExplorViz is monitored has to be terminated. For authorization problems see the troubleshooting below.
This paragraph shows more configuration options to adapt ExplorViz to your expectations.
-
The ExplorViz configuration file explorviz.live_trace_processing.default.properties also resides in the file explorviz-monitoring.jar which is stored in your server’s lib folder.
In our example it resides in the file C:\Program" "files\Apache" "Software" "Foundation\Tomcat" "8.5\lib\explorviz-monitoring.jar.
-
Open the jar file with an extractor for example with winzip or winrar. Navigate to the META-INF folder and extract the file explorviz.live_trace_processing.default.properties.
-
Open the extracted file explorviz.live_trace_processing.default.properties and look up the the options in the table below.
Hint: You can use an editor to open the file. If you have formatting problems using windows editor alternatively use WordPad.
-
After modifying the file just replace it in the jar file.
Hint: The server on which ExplorViz is monitored has to be terminated. For authorization problems see the troubleshooting below.
Parameter | Default Value | Description |
---|---|---|
writer_target_ip | 127.0.0.1 | Defines the target ip where the analysis component/visualization server is running. |
writer_target_port | 10133 | Defines the target port where the analysis component/visualization server is running. |
writer_load_balancing_enabled | false | Used for cloud scaling. If true, the writer_target_ip paramter is ignored. Instead the monitoring queries the load balancer for an ip adress. |
system_name | <UNKNOWN-SYSTEM> |
The name of the system belonging to the application |
ip_address | one ip address of the server | The IP address of the server where the application is running |
host_name | hostname of the server | The hostname of the server where the application is running |
application_name | <UNKNOWN-APPLICATION> |
The displayed name of the application |
programming_language | Java | The programming language of the application |
If you don't have the permission to change the file explorviz-monitoring.jar take the following steps:
-
Move the file explorviz-monitoring.jar out of the actual directory
-
Replace the modified files in explorviz-monitoring.jar.
-
Move the file explorviz-monitoring.jar back to the original directory.
© 2013 - 2020 by the ExplorViz project