Threadump analyzed Learning plan

本文详细介绍Java Thread Dump 的生成方法、分析技巧及常见问题解决策略。覆盖Thread Dump的基础概念、生成工具、格式解析及实战案例等内容。

1) Thread Dump overview & fundamentals

2) Thread Dump generation techniques and available tools

3) Thread Dump format -Sun Hotspot

4) Thread Stack Trace explanation and interpretation

5) Thread Dump analysis and correlation techniques

6) Thread Dump common problem patterns

  • Thread race,
  • deadlock,
  • hanging IO calls,
  • garbage collection / OutOfMemoryError problems,
  • infinite looping etc.

7) Thread Dump examples via real life case studies

 

看Java StackTrace的各种方法:

1.  JPS 获取 PID –> jstack <optional>PID.

    -F  to force a thread dump. Use when jstack <pid> does not respond (process is hung)
    -m  to print both java and native frames (mixed mode)
    -l   long listing. Prints additional information about locks

2. Visual VM

如果profiling remote jvm,需要在jvm configure里面加

-Dcom.sun.management.jmxremote.port=3333     
-Dcom.sun.management.jmxremote.ssl=false 
   -Dcom.sun.management.jmxremote.authenticate=false 

http://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/jmx_connections.html

3. Btrace, 自带Sample里面的代码

@BTrace
public class JStack {
    static {
        deadlocks(false);
        jstackAll();
        exit(0);
    }
}

转载于:https://www.cnblogs.com/robinw/archive/2012/12/20/2826511.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值