Page 1 of 2 12 LastLast
Results 1 to 10 of 32

Thread: Spring Insight outside of tc server?

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    7

    Default Spring Insight outside of tc server?

    Spring Insight looks incredible. We're using the Spring stack but not running on tc server. Should it be possible for me to explicitly pass the right jvm parameters to add SI instrumentation on WebSphere 6.1 (jdk 1.5 based)?

    Thanks,

    Stu

  2. #2
    Join Date
    Oct 2009
    Posts
    55

    Default

    You won't be able to use it outside of tc Server for the time being. We rely on Tomcat's classloader for a few of our tricks.

  3. #3
    Join Date
    Jul 2007
    Posts
    7

    Default

    Thanks for the quick response. It saved me from wasting time trying to get it to work.

    Is that something you see SI moving towards at some point in the future, or is the vision that this would be a part of the value of using tc?

  4. #4
    Join Date
    Oct 2009
    Posts
    55

    Default

    I wouldn't rule it out in the future, as we want people who are writing Spring applications to have this valuable tool irrespective of how it's deployed. However, at this time we are focusing our energy on the Tomcat container -- specifically tc Server. As you can imagine, it makes our death matrix much smaller which allows us to move much more quickly.

    Are you not able to try your app out on tc Server? What ties you to websphere?

  5. #5
    Join Date
    Jul 2007
    Posts
    7

    Default

    Makes sense, and you guys are certainly moving quickly.

    The apps I'm interested in for this are EARs, fairly integration-heavy with plenty of JNDI stuff configured in WebSphere already. Ideally we'd be able to just run them on tc, but I suspect this would be quite a bit of work in reality.

  6. #6
    Join Date
    Apr 2007
    Posts
    7

    Post What about Spring Insight on vanilla tomcat

    Quote Originally Posted by jtravis View Post
    I wouldn't rule it out in the future, as we want people who are writing Spring applications to have this valuable tool irrespective of how it's deployed. However, at this time we are focusing our energy on the Tomcat container -- specifically tc Server. As you can imagine, it makes our death matrix much smaller which allows us to move much more quickly.

    Are you not able to try your app out on tc Server? What ties you to websphere?
    Hey Jon,

    Just wondering if its a possibility to use Insight on plain vanilla Tomcat. Considering tc is using Tomcat and as you mentioned earlier you are using the Tomcat classloader is there a way to deploy Insight in standard Tomcat.
    My app uses JDK 1.6 and Tomcat 6.x

    Thanks

    - Kam

  7. #7
    Join Date
    Oct 2009
    Posts
    55

    Default

    Yes, it would be possible to run Insight with vanilla Tomcat, as tc Server is pretty much just that with some additional niceties. Does tc not fit your needs?

  8. #8
    Join Date
    Jul 2007
    Posts
    7

    Default Any plans for Spring Insight profiling OSGi-based apps?

    We've generally been using Jamon with Spring-injected timing aspects for high level performance data. We're looking seriously at OSGi for future apps, and I suspect that approach will hit problems, as I think Jamon holds it's data within a single classloader. Works great in JEE, but what about when there are many bundles and each with it's own classloader? I need to dig to see if this is really a problem, but that's my hunch.

    SI looks like it holds timing info in it's own WAR, and gathers data in the target by instrumenting bytecode within the same JVM. ...currently moot point since tc isn't OSGi based, but if it were, would this approach work to capture timings in OSGi apps?

    Apologies if this is a dumb question. I'm still trying to sort out all of the implications of OSGi.

  9. #9
    Join Date
    Feb 2011
    Posts
    5

    Default

    Finally, I've succeeded to install Insight into a Apache tomcat 6.0.20, to do this, follows these steps:

    1. Copy of *.jar from the tc server lib folder to the original tomcat lib folder, WARNING do not overwrite the .jar from the original tomcat
    2. Copy the web.xml from tc server conf folder to the original tomcat conf folder, overwrite can be permit
    3. Copy the context.xml from tc server conf folder to the original tomcat conf folder, overwrite can be permit
    4. Copy the folder: webapps-lib from tc server to the original tomcat root folder


    Good luck

  10. #10
    Join Date
    Feb 2010
    Posts
    14

    Default

    Hello, i have tried to do the steps you have described. Unfortunately i have some problem. Maybe you can help me.

    So i have done this steps :

    I have done the step 1 to 3 without any problems.
    I had some problems with step 4 because there is no webapps-lib folder in tc server so i supposed you talked about the lib folder in the insight instance of tc.

    But i receive an error :

    Code:
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
    01-Apr-2011 22:36:53 org.apache.catalina.loader.WebappLoader start
    SEVERE: LifecycleException
    java.lang.NullPointerException
            at java.io.File.<init>(File.java:222)
            at com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader.readInsightConfig(TomcatWeavingInsightClassLoader.java:67)
            at com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader.start(TomcatWeavingInsightClassLoader.java:50)
            at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:656)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4303)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
            at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:516)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    01-Apr-2011 22:36:53 org.apache.catalina.core.ContainerBase addChildInternal
    SEVERE: ContainerBase.addChild: start:
    LifecycleException:  start: :  java.lang.NullPointerException
            at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:676)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4303)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
            at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:516)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    01-Apr-2011 22:36:53 org.apache.catalina.startup.HostConfig deployDescriptor
    SEVERE: Error deploying configuration descriptor host-manager.xml
    java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException:  start: :  java.lang.NullPointerException
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:795)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
            at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:516)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    01-Apr-2011 22:36:53 org.apache.catalina.loader.WebappLoader start
    SEVERE: LifecycleException
    java.lang.NullPointerException
            at java.io.File.<init>(File.java:222)
            at com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader.readInsightConfig(TomcatWeavingInsightClassLoader.java:67)
            at com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader.start(TomcatWeavingInsightClassLoader.java:50)
            at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:656)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4303)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
            at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:516)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    01-Apr-2011 22:36:54 org.apache.catalina.core.ContainerBase addChildInternal
    SEVERE: ContainerBase.addChild: start:
    Any ideas?

    Thx.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •