Содержание
- 2. Dealing with Errors User input errors: In addition to the inevitable typos, some users like to
- 3. The Classification of Exceptions
- 4. Java Platform Debugger Architecture
- 5. JVM Debug Parameters Modern JVMs -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 For JDK 1.4.x -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 For JDK 1.3.x or earlier
- 6. Java Platform Debugger Architecture
- 7. Exceptions and Performance 15 millisecond 3000 millisecond
- 8. HotSpot Compilers
- 9. What is a Java stack trace? Java stack trace is a user-friendly snapshot of the Java
- 10. Java Bytecode Debugging Information
- 11. Thread Count (Default Configuration)
- 12. Deadlock
- 13. Expert’s Checklist For hanging, deadlocked or frozen programs: If you think your program is hanging, generate
- 14. Where Is My Stacktrace?
- 15. How is Java Thread Dump Generated? By sending a signal to JVM (ctrl+break) Using JDK 5/6
- 16. Thread Dump By Sending a Signal to JVM UNIX: Ctrl+\ kill -QUIT process_id Windows: Ctrl+Break SendSignal
- 17. Thread Dump Using JDK 5/6 tools jstack jps
- 18. Thread Dump Using Debugging Tools suspend all threads jdb get thread dump java with debug
- 19. Using a Debugger
- 20. Using Java API calls Throwable.printStackTrace() Thread.dumpStack() Since Java 1.5: Thread.getState() Since Java 1.5: Thread.getStackTrace() Since Java
- 21. Thread Dump Analyser
- 22. IBM Thread & Monitor Dump Analyser
- 23. IBM Thread & Monitor Dump Analyser
- 24. Determining the Thread States
- 25. Thread States
- 26. Thread States
- 27. Java 1.4 tools
- 28. Java 1.5 tools
- 29. Java 1.6 tools
- 30. Debugging Performance Issues (1) Symptom: High CPU consumption and poor response time Thread dump profile: Most
- 31. Debugging Performance Issues (2) Symptom: Low CPU consumption most of which is kernel time and poor
- 32. Debugging Performance Issues (3) Symptom: Medium/Low CPU consumption in a highly multithreaded application Thread dump profile:
- 33. Debugging Performance Issues (4) Symptom: Medium/Low CPU consumption in a highly multithreaded application Thread dump profile:
- 34. Example 1: Deadlock org.apache.log4j.Category.callAppenders():
- 35. Example 2: Performance Issue ... at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1019) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1065) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1065) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1065) at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1065) at
- 36. JVM Memory Structure Eden Space Survivor Space Tenured Generation Permanent Generation Code Cache
- 37. Allocated and Used Memory
- 38. Java Heap Memory & Tuning Options
- 39. Heap Dump Typical information which can be found in heap dumps (depending on the heap dump
- 40. Shallow vs. Retained Heap Shallow heap is the memory consumed by one object. An object needs
- 41. Shallow vs. Retained Heap
- 42. Shallow and retained sizes
- 43. Dominator Tree An object x dominates an object y if every path in the object graph
- 44. Garbage Collection Roots
- 45. Garbage Collection Roots System Class JNI Local JNI Global Thread Block Thread Busy Monitor Java Local
- 46. Garbage Collection Roots Class Thread Stack Local JNI Local JNI Global Monitor Used Held by JVM
- 47. How is Java Heap Dump Generated? By sending a signal to JVM (ctrl+break) Using JDK 5/6
- 48. Heap Dump on an OutOfMemoryError java -XX:+HeapDumpOnOutOfMemoryError MainClass
- 49. Heap Dump By Sending a Signal to JVM java -XX:+HeapDumpOnCtrlBreak MainClass + See Thread Dump By
- 50. Heap Dump Using JDK 5/6 tools jmap -dump:format=b,file=
- 51. Heap Dump Using JConsole
- 52. Eclipse Memory Analyser
- 53. Example 3: Memory Leak
- 54. Heap Memory Usage
- 55. Memory Pool “Eden Space”
- 56. Memory Pool “Survivor Space”
- 57. Memory Pool “Tenured Gen”
- 58. Non-Heap Memory Usage
- 59. Memory Pool “Code Cache”
- 60. Memory Pool “Perm Gen”
- 61. Max Thread Count Depends on Stack Size
- 62. Max Thread Count Depends on Heap Size
- 63. Stack Depth Depends on Stack Size
- 64. Java Class Loading
- 65. NoClassDefFoundError vs ClassNotFoundException
- 67. Скачать презентацию