80 likes | 234 Views
HOL10194: Using Dtrace to Troubleshoot Java Native Memory Problems on Solaris 11. Yu Wang Principal Software Engineer Wensheng (Vincent) Liu Senior Software Engineer Gang (Gary) Wang Software Development Manager. About Java Memory Leaks. Java applications do use native memory
E N D
HOL10194: Using Dtrace to Troubleshoot Java Native Memory Problems on Solaris 11 Yu WangPrincipal Software Engineer Wensheng (Vincent) Liu Senior Software Engineer Gang (Gary) Wang Software Development Manager
About Java Memory Leaks • Java applications do use native memory • e.g. JNI, threads stack … • Lack of tools to monitor native memory usage
What will we do in HOL10194? Use DTrace to observe Java applications at user and kernel level #!/usr/sbin/dtrace -qs /* Interpreter, like perl, python and bash etc */ syscall::read:entry /* Where */ /execname == "java"/ /* When */ { printf("java application is calling read system call \n"); /*Do what*/ } D script is the interface for us to interact with DTrace.
Lab Introduction Duration: about 150mins • Exercise 0: Installation and Configuration (done) • Exercise 1: Introduction to DTrace (30mins) • Exercise 2: Identifying and Solving "Inflater/Deflater Memory Leak" Problems (30mins) • Exercise 3: Identifying and Solving "Cannot Create Native Threads" Problems (40mins) • Exercise 4: Identifying and Solving "DirectBuffer Memory Leak" Problems (40mins)
Logistics • HOL10194 OS: Solaris 11.1 • Username/Password: ouser/Oracle01 • Username/Password: root/Oracle01 • Any questions, please contact with: • Yu Wang, yu.y.wang@oracle.com • Wen-sheng (Vincent) Liu, wen-sheng.liu@oracle.com • Gang (Gary) Wang, wang.gary@oracle.com