The Insight developer (a free product) comes in two forms, complete with tc Server Developer and packaged with STS. None of the options provide a simple mechanism for installing Insight on Tomcat. I am not saying that this is impossible, there simply is no easy way to do this.
If you really want to run Insight on Tomcat, you will need to do some work. Below are the approximate steps you need to follow.
- Download vFabric tc Server Developer
- Create an instance of the vFabric tc server with the Insight feature enabled.
- Download the latest version of Apache Tomcat 6.0.x or 7.0.x
Copy the following files and folders from the tc Server w / Insight instance
- bin /setenv.sh
- bin / epiphany-bootstrap-tcserver-1.8.3.RELEASE.jar
- insight
- Library /*
- Webapps / insight.war
Modify conf / server.xml and add the following Valve block to the Engine block.
<Valve className="com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve"/>
Modify conf / context.xml and add the following before the closing Context tag.
<Loader loaderClass="com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader" />
<Listener className="com.springsource.insight.collection.tcserver.lifecycle.ApplicationLifecycleCollectionListener" />
Launch the Tomcat instance.
Alternatively, Insight Operations (a paid product) makes this much easier and offers an installer that allows you to easily and quickly add Insight Agent to various containers, including ASF Tomcat. Here is a link to the documentation.
http://pubs.vmware.com/vfabric51/topic/com.vmware.vfabric.tc-server.2.7/operations/install-agents.html
source share