SlideShare a Scribd company logo
Red Hat JBoss EAP 6
Troubleshooting
Alexandre Cavalcanti
Middleware Technical Account Manager
acavalcanti@redhat.com
JBoss Troubleshooting - Alexandre Cavalcanti2
AGENDA
Introduction
Dumps
Logs
Byteman
JBoss Troubleshooting - Alexandre Cavalcanti3
There are many different types of problems or erros (Memory Leaks,
Transaction Failures, Performance problems, JBoss remoting errors, Data
inconsistencies, JVM Garbage Collection, Bad Application Code, Deadlocks
Timeouts, System integration issues etc).
How to troubleshoot them?
Introduction
JBoss Troubleshooting - Alexandre Cavalcanti4
Thread Dump
The thread dump is a snapshot of exactly what's executing at a moment in
time.
Useful if your Java application sometimes seems to hang when running under
load, as an analysis of the dump will show where the threads are stuck.
JSTACK
• Check PID and user of Java process by executing ps command:
• ps aux | grep java
• Execute jstack command as JBoss user:
• $su - <JAVA_USER>
• $jstack -l <JAVA_PID>
https://access.redhat.com/solutions/18178
Dumps
JBoss Troubleshooting - Alexandre Cavalcanti5
Heap Dump
A heap dump is a snapshot of memory at a given point in time. It contains
information on the Java objects and classes in memory at the time the
snapshot was taken.
A heap dump can also help you understand the memory footprint of your app
• -XX:+HeapDumpOnOutOfMemoryError
• <server-groups>
• <server-group name="main-server-group" profile="ha">
• <jvm name="default">
• …
• <jvm-options>
• <option value="-XX:+HeapDumpOnOutOfMemoryError"/>
• </jvm-options>
• https://access.redhat.com/solutions/21109
Dumps
JBoss Troubleshooting - Alexandre Cavalcanti6
Jitter and Log files
The JBoss Diagnostic Reporter (JDR pronounced jitter) is an EAP6 subsystem
built to collect information to aid in troubleshooting.
• [domain@localhost:9999 /] /host=$host/server=$server/subsystem=jdr/:generate-jar-
report
Add a log level do the log subsystem
• /profile=full-ha/subsystem=logging/logger=org.jboss.jca:add(level=TRACE)
Garbage Collection (GC) logging
• /host=master/jvm=default/:write-attribute(name=jvm-options,value=["-server","-
verbose:gc “,”-Xloggc:gc.log"])
https://access.redhat.com/solutions/221103
https://access.redhat.com/solutions/459903
https://access.redhat.com/solutions/269023
Logs
JBoss Troubleshooting - Alexandre Cavalcanti7
Byteman allows you to insert extra Java code into your application, either as it
is loaded during JVM startup or even after it has already started running. The
injected code is allowed to access any of your data and call any application
methods, including where they are private.
• JAVA_OPTS="$JAVA_OPTS -javaagent:<mypath>/lib/byteman.jar=script:<mypath>/
examplescript.btm,sys:<mypath>/lib/byteman.jar”Bullet
https://access.redhat.com/solutions/31283
http://byteman.jboss.org/
Byteman
Questions?

More Related Content

PDF
VM Autoscaling With CloudStack VR As Network Provider
PPTX
Mqtt presentation
PDF
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
PDF
Volume Encryption In CloudStack
PPTX
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
ODP
Openstack Trunk Port
PDF
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
PDF
Mikrotik firewall raw table
VM Autoscaling With CloudStack VR As Network Provider
Mqtt presentation
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
Volume Encryption In CloudStack
WebSphere App Server vs JBoss vs WebLogic vs Tomcat (InterConnect 2016)
Openstack Trunk Port
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
Mikrotik firewall raw table

What's hot (18)

PDF
What CloudStackers Need To Know About LINSTOR/DRBD
PPTX
chloroplast
PDF
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
PPTX
Java App On Digital Ocean: Deploying With Gitlab CI/CD
PDF
Packer by HashiCorp
PPTX
CloudStack Metering - Working with Usage Data #CCCNA14
PDF
Building a redundant CloudStack management cluster - Vladimir Melnik
PPTX
Docker - A high level introduction to dockers and containers
PDF
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
PDF
Linux Containers (LXC)
PPTX
Java 9で進化する診断ツール
PDF
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
PDF
Internet Week 2018 知っておくべきIPv6とセキュリティの話
PDF
Kubernetes Networking
PDF
JBoss Application Server 7
PDF
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
PDF
Intel® QuickAssist Technology Introduction, Applications, and Lab, Including ...
PDF
Backroll: Production Grade KVM Backup Solution Integrated in CloudStack
What CloudStackers Need To Know About LINSTOR/DRBD
chloroplast
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
Java App On Digital Ocean: Deploying With Gitlab CI/CD
Packer by HashiCorp
CloudStack Metering - Working with Usage Data #CCCNA14
Building a redundant CloudStack management cluster - Vladimir Melnik
Docker - A high level introduction to dockers and containers
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
Linux Containers (LXC)
Java 9で進化する診断ツール
OpenStackクラウド基盤構築ハンズオンセミナー 第1日:講義No1
Internet Week 2018 知っておくべきIPv6とセキュリティの話
Kubernetes Networking
JBoss Application Server 7
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
Intel® QuickAssist Technology Introduction, Applications, and Lab, Including ...
Backroll: Production Grade KVM Backup Solution Integrated in CloudStack
Ad

Viewers also liked (13)

PDF
EAP6 performance Tuning
PPTX
Jboss Tutorial Basics
PDF
JBoss AS / EAP and Java EE6
PPTX
JBoss AS 7
PPT
J boss
PDF
JBoss EAP / WildFly, State of the Union
PDF
JBoss at Work: Using JBoss AS 6
PDF
How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...
PDF
JBoss started guide
PPTX
WAS vs JBoss, WebLogic, Tomcat (year 2015)
PDF
[D2] java 애플리케이션 트러블 슈팅 사례 & pinpoint
PPT
Oracle WebLogic Server Basic Concepts
ODP
JBoss EAP 6 - Start / Application Deployment Process
EAP6 performance Tuning
Jboss Tutorial Basics
JBoss AS / EAP and Java EE6
JBoss AS 7
J boss
JBoss EAP / WildFly, State of the Union
JBoss at Work: Using JBoss AS 6
How To Get The Most Out Of Your Hibernate, JBoss EAP 7 Application (Ståle Ped...
JBoss started guide
WAS vs JBoss, WebLogic, Tomcat (year 2015)
[D2] java 애플리케이션 트러블 슈팅 사례 & pinpoint
Oracle WebLogic Server Basic Concepts
JBoss EAP 6 - Start / Application Deployment Process
Ad

Similar to JBoss Enterprise Application Platform 6 Troubleshooting (20)

PDF
Web Sphere Problem Determination Ext
PDF
Java on Linux for devs and ops
PDF
JavaOne 2010: Top 10 Causes for Java Issues in Production and What to Do When...
PDF
Monitoring your WebObjects apps
PPTX
Ibm bpm problem determination
PDF
Java Heap Dump Analysis Primer
PPTX
Java performance tuning
PDF
Performance Tuning - Memory leaks, Thread deadlocks, JDK tools
PDF
JDK Tools For Performance Diagnostics
PDF
Oracle WebLogic Diagnostics & Perfomance tuning
PPTX
Don't dump thread dumps
PDF
java-monitoring-troubleshooting
PPTX
How to Troubleshoot 9 Types of OutOfMemoryError
PDF
JBoss AS 7 - YaJUG - nov. 2012
PDF
Software Profiling: Understanding Java Performance and how to profile in Java
PPTX
How to Troubleshoot 9 Types of OutOfMemoryError
PDF
Java >= 9
PDF
Java Performance and Using Java Flight Recorder
PPT
Jdk Tools For Performance Diagnostics
PPTX
Modern Engineer’s Troubleshooting Tools, Techniques & Tricks at Confoo 2018
Web Sphere Problem Determination Ext
Java on Linux for devs and ops
JavaOne 2010: Top 10 Causes for Java Issues in Production and What to Do When...
Monitoring your WebObjects apps
Ibm bpm problem determination
Java Heap Dump Analysis Primer
Java performance tuning
Performance Tuning - Memory leaks, Thread deadlocks, JDK tools
JDK Tools For Performance Diagnostics
Oracle WebLogic Diagnostics & Perfomance tuning
Don't dump thread dumps
java-monitoring-troubleshooting
How to Troubleshoot 9 Types of OutOfMemoryError
JBoss AS 7 - YaJUG - nov. 2012
Software Profiling: Understanding Java Performance and how to profile in Java
How to Troubleshoot 9 Types of OutOfMemoryError
Java >= 9
Java Performance and Using Java Flight Recorder
Jdk Tools For Performance Diagnostics
Modern Engineer’s Troubleshooting Tools, Techniques & Tricks at Confoo 2018

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
KodekX | Application Modernization Development
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
NewMind AI Weekly Chronicles - August'25 Week I
The Rise and Fall of 3GPP – Time for a Sabbatical?
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The AUB Centre for AI in Media Proposal.docx
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KodekX | Application Modernization Development

JBoss Enterprise Application Platform 6 Troubleshooting

  • 1. Red Hat JBoss EAP 6 Troubleshooting Alexandre Cavalcanti Middleware Technical Account Manager acavalcanti@redhat.com
  • 2. JBoss Troubleshooting - Alexandre Cavalcanti2 AGENDA Introduction Dumps Logs Byteman
  • 3. JBoss Troubleshooting - Alexandre Cavalcanti3 There are many different types of problems or erros (Memory Leaks, Transaction Failures, Performance problems, JBoss remoting errors, Data inconsistencies, JVM Garbage Collection, Bad Application Code, Deadlocks Timeouts, System integration issues etc). How to troubleshoot them? Introduction
  • 4. JBoss Troubleshooting - Alexandre Cavalcanti4 Thread Dump The thread dump is a snapshot of exactly what's executing at a moment in time. Useful if your Java application sometimes seems to hang when running under load, as an analysis of the dump will show where the threads are stuck. JSTACK • Check PID and user of Java process by executing ps command: • ps aux | grep java • Execute jstack command as JBoss user: • $su - <JAVA_USER> • $jstack -l <JAVA_PID> https://access.redhat.com/solutions/18178 Dumps
  • 5. JBoss Troubleshooting - Alexandre Cavalcanti5 Heap Dump A heap dump is a snapshot of memory at a given point in time. It contains information on the Java objects and classes in memory at the time the snapshot was taken. A heap dump can also help you understand the memory footprint of your app • -XX:+HeapDumpOnOutOfMemoryError • <server-groups> • <server-group name="main-server-group" profile="ha"> • <jvm name="default"> • … • <jvm-options> • <option value="-XX:+HeapDumpOnOutOfMemoryError"/> • </jvm-options> • https://access.redhat.com/solutions/21109 Dumps
  • 6. JBoss Troubleshooting - Alexandre Cavalcanti6 Jitter and Log files The JBoss Diagnostic Reporter (JDR pronounced jitter) is an EAP6 subsystem built to collect information to aid in troubleshooting. • [domain@localhost:9999 /] /host=$host/server=$server/subsystem=jdr/:generate-jar- report Add a log level do the log subsystem • /profile=full-ha/subsystem=logging/logger=org.jboss.jca:add(level=TRACE) Garbage Collection (GC) logging • /host=master/jvm=default/:write-attribute(name=jvm-options,value=["-server","- verbose:gc “,”-Xloggc:gc.log"]) https://access.redhat.com/solutions/221103 https://access.redhat.com/solutions/459903 https://access.redhat.com/solutions/269023 Logs
  • 7. JBoss Troubleshooting - Alexandre Cavalcanti7 Byteman allows you to insert extra Java code into your application, either as it is loaded during JVM startup or even after it has already started running. The injected code is allowed to access any of your data and call any application methods, including where they are private. • JAVA_OPTS="$JAVA_OPTS -javaagent:<mypath>/lib/byteman.jar=script:<mypath>/ examplescript.btm,sys:<mypath>/lib/byteman.jar”Bullet https://access.redhat.com/solutions/31283 http://byteman.jboss.org/ Byteman