Java Stack Traces

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

1 Favorite

Java Stack Traces - Presentation Transcript

  1. Debugging with Java Stack Traces Daryl Banttari Analytics, Inc.
  2. About Daryl
      • IT Professional since 1986
      • ColdFusion since 1997
      • Java since 2003
      • Allaire/Macromedia Consulting 2000-2005
      • Webapper (SeeFusion!)
      • Current: Analytics, Inc.
  3. Agenda
      • Java and ColdFusion
      • What is a "Stack Trace"?
      • Reading a Stack Trace
      • Debugging with Stack Traces
      • Gathering Stack Traces
  4. Java and ColdFusion
      • ColdFusion is a Java J2EE Application
      • Servlet Engine (JRun)
      • ColdFusion (cfmservlet)
      • Request Threads (your application)
  5. Java Stack Traces
      • Snapshot in Time
      • Shows Calls, Not Data
      • Multiple Needed to Show Motion
    • "jrpp-352" runnable
    • at java.lang.Double.parseDouble(Double.java:220)?
    • at coldfusion.runtime.CFDouble.parseDouble(CFDouble.java:23)?
    • at coldfusion.runtime.CfJspPage.internalIsBoolean(CfJspPage.java:707)?
    • at coldfusion.runtime.CfJspPage._compare(CfJspPage.java:273)?
    • at cfApplication2ecfm726408707._factor5(D:Websites edacted.comApplication.cfm:3)?
    • at cfApplication2ecfm726408707.runPage(D:Websites edacted.comApplication.cfm:521)?
    • at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)?
    • at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)?
    • at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)?
    • at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:30)?
    • at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:93)?
    • at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)?
    • at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)?
    • at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)?
    • at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)?
    • at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)?
    • at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)?
    • at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)?
    • at coldfusion.CfmServlet.service(CfmServlet.java:105)?
    • at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)?
    • at com.seefusion.Filter.doFilter(Filter.java:49)?
    • at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1494)?
    • at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)?
    • at jrun.servlet.FilterChain.service(FilterChain.java:101)?
    • at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)?
    • at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)?
    • at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)?
    • at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)?
    • at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)?
    • at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)?
    • at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)?
    • at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)?
    • at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)?
  6. Debugging with Stack Traces
    • Examples
  7. Recognizing Stack Elements
      • Jrun.* - Jrun
        • Ignore: jrun.servlet.jrpp.ProxyEndpoint.readFully
        • Suspect: jrun.servlet.jrpp.JrppOutputStream$SpillStream.write
      • Coldfusion.*
        • Functions: coldfusion.runtime.CfJspPage.*
        • Tags: coldfusion.tagext.sql.QueryTag
      • Probably Innocent Java
        • java.util.*
        • java.lang.*
      • Suspicious Java
        • java.net.*
        • java.io.*
      • Your Code!
        • cfApplication2ecfm726408707.runPage(D:Websites edacted.comApplication.cfm:577)?
  8. Gathering Stack Traces
      • SeeFusion / SeeStack
      • CF8 Enterprise Server Monitor
      • jstack
  9. Summary
      • Stack Traces are snapshots of threads
      • Multiple traces may be needed to diagnose slow/hung threads
      • Read thread stacks from bottom to top
      • Look for code line numbers and keywords
  10. Q&A
    • Daryl Banttari
    • Analytics, Inc.

+ dbanttaridbanttari, 10 months ago

custom

974 views, 1 favs, 0 embeds more stats

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 974
    • 974 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 1
  • Downloads 3
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories