Using Spring Insight with Tomcat 6

I want to use Spring Insight with Tomcat 6. I cannot use the TC server for reasons beyond my control. Therefore, I am considering integrating Spring Insight with Tomcat 6. Has anyone worked on this before or can point me to any documentation.

Thanks Anui

+6
source share
4 answers

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

+8
source

I think this instruction may be useful to you. Http://blog.jelastic.com/2012/11/28/application-monitoring-in-the-cloud-with-spring-insight/ Actually in this tutorial Tomcat - This is a cloud instance, but I think it is suitable for local installation.

+5
source

I downloaded vfacbric-tc-server-2.9.6 and followed the instructions mentioned by Daniel Mikusa to establish understanding on tomcat 7. Unfortunately, tomcat could not find the httpRequestOperationCollectionValve, TomcatWeavingInsightClassLoader and ApplicationLifecycleCollectionListener classes in the provided banks. After a two-day bonus, adding new banks containing these classes and received a cool clash. Finally, I realized that just removing the configuration in server.xml and context.xml is enough to get an idea of ​​working with tomcat.

So, all you need to set your insight into tomcat is steps 1 through 4 and 7 in his answer. I copy the same for the convenience of others.

  • Download vFabric tc Server Developer
  • Create an instance of vFabric tc server with Insight enabled.
  • Download the latest version of Apache Tomcat 6.0.x or 7.0.x
  • Copy the following files and folders from the tc w / Insight server instance bin /setenv.sh bin / enlightenment-bootstrap-tcserver-1.8.3.RELEASE.jar in the Library view / * webapps / insight.war
  • Launch the Tomcat instance.
0
source

I try to follow the updated instructions provided by "nagamanojv". I can start http: // localhost: 8080 / insight / on Tomcat 6, but I don't see any applications. I deployed one of my web applications on a single tomcat instance. Let me know if I missed something.

-1
source

Source: https://habr.com/ru/post/925311/


All Articles