No output in Tomcat

Help
2013-06-01
2013-06-03
  • Jim Showalter

    Jim Showalter - 2013-06-01

    Agent is initializing and properties file is being picked up, because I see many many lines on the Tomcat console starting with "skip", which aren't there unless I enable the agent.

    The problem is, it's skipping every class, so I get no output.

    Properties file:

    #
    # Is the profiler on or off when the app starts?
    # (on | off)
    # default = on
    #
    profiler=on
    #
    # Can the profiler be controlled remotely ?
    # (on | off)
    # default = off
    #
    remote=on
    #
    # TCP listen port for remote control
    # default =15599
    #
    port=15599
    #
    # Class Loader filters for different runtime environments
    # (The system will cycle through these until it finds one that
    # can filter in the current environment)
    #
    ClassLoaderFilter.1=com.mentorgen.tools.profile.instrument.clfilter.StandardClassLoaderFilter
    #ClassLoaderFilter.2=com.mentorgen.tools.profile.instrument.clfilter.WebAppClassLoaderFilter
    #
    # What is the maximum depth for thread dumps
    # (-1 means no limit)
    # default = -1
    # (you may also use 'compact')
    #
    thread-depth=-1
    #
    # When compacting thread dumps, what in the minimum total time you want
    # to show 
    # default = 10 (ms)
    #
    thread.compact.threshold.ms=1
    #
    # What is the maximum number of methods to show in the method dump
    # (-1 means no limit)
    # default = -1
    # (you may also use 'compact')
    #
    max-method-count=compact
    #
    # defaults to 10
    #
    method.compact.threshold.ms=1
    #
    # Track Object Allocation (very expensive)
    # values: on, off
    # default = off
    #
    track.object.alloc=off
    #
    output=both
    output-method-signatures=yes
    #profiler-class=net.sourceforge.jiprof.timeline.TimeLineProfiler
    #clock-resolution=ms
    #
    # Enables debug logging
    debug=on
    #
    # What is the default file name for the profile information
    # default=./profile.txt
    # Or give name of existing directory and it creates unique file each time in directory
    #
    #file=profile.txt
    file=C:/jip/out
    #
    # What packages are excluded from the display
    # (comma separated)
    # Excludes are applied after includes
    # Note: com.mentorgen.tools.profile is always excluded
    #
    exclude=
    #
    # What packages or classes are included
    #include=
    
     
    Last edit: Jim Showalter 2013-06-01
  • Jim Showalter

    Jim Showalter - 2013-06-02

    Turns out to be a bug related to enabling method signatures. Turn them off, everything works fine.

     
  • Jim Showalter

    Jim Showalter - 2013-06-02

    All is not well. I now get a file, but it has no data in it. I also get, in Eclipse, a message that says no classes were instrumented. Yet I see them being instrumented (debug=on), and the profile jar is not on the classpath anywhere. But I always get empty output:

    +----------------------------------------------------------------------
    |  File: C:\jip\out\20130602-164431.txt
    |  Date: 2013.06.02 16:44:31 PM
    +----------------------------------------------------------------------
    
    +------------------------------
    | Thread depth limit: Unlimited
    +------------------------------
    
    +--------------------------------------
    | Most expensive methods (by net time)
    | Frame Count Limit: Compact
    +--------------------------------------
    
                   Net
              ------------
     Count     Time    Pct  Location
     =====     ====    ===  ========
    
    +--------------------------------------+
    | Most expensive methods summarized    |
    +--------------------------------------+
    
                   Net
              ------------
     Count     Time    Pct  Location
     =====     ====    ===  ========
    
     
    Last edit: Jim Showalter 2013-06-02
  • Jim Showalter

    Jim Showalter - 2013-06-03

    Started over from scratch and now it works. However, not seeing calls to web services from our code, and with no restrictions it should be instrumenting everything. Will start a separate topic for that.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks