You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Konstantin Kolinko (Confluence)" <no...@apache.org> on 2020/02/06 10:30:06 UTC

[CONF] Apache Tomcat > Troubleshooting and Diagnostics

There's **1 new edit** on this page  
---  
|  
---  
|  | [![page icon](cid:page-
icon)](https://cwiki.apache.org/confluence/display/TOMCAT/Troubleshooting+and+Diagnostics?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view
"page icon")  
---  
[Troubleshooting and
Diagnostics](https://cwiki.apache.org/confluence/display/TOMCAT/Troubleshooting+and+Diagnostics?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view
"Troubleshooting and Diagnostics")  
|  |  |  |  | ![](cid:avatar_892fc5b633a433d86a56f192323474ea) |  | Konstantin
Kolinko edited this page  
---  
|  
|  | Here's the version comment  
---  
|  
---  
|  |  | ![](cid:avatar_892fc5b633a433d86a56f192323474ea) |  | Konstantin
Kolinko edited at [10:21
AM](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=103099080)  
---  
|  |  |  Add an item about "File leak detector" (moving it from a top-level
"Debugging" page)  
---  
|  
|  | Here's what changed:  
---  
|

...

  * [How To: Capture a thread dump](/confluence/pages/viewpage.action?pageId=103099265)
  * [How To: Capture a heap dump](/confluence/pages/viewpage.action?pageId=103099265)
  * [How To: Examine a Stacktrace](/confluence/pages/viewpage.action?pageId=103099265)
  * [How To: Configure Tomcat for debugging](/confluence/pages/viewpage.action?pageId=103099265)
  * [FAQ: Developing](/confluence/pages/viewpage.action?pageId=103098864)
  * [FAQ: Memory](/confluence/pages/viewpage.action?pageId=103098949)
  * [Tomcat Memory Leak Protection](/confluence/pages/viewpage.action?pageId=103099526)
  * Notes on using JMX clients

## Tools

### JMX Clients

  * JJConsole: [Documentation](https://download.oracle.com/javase/6/docs/technotes/tools/share/jconsole.html)
  * VisualVM: [Documentation](https://docs.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html), [Project](http://visualvm.dev.java.net)

...

Accessing response objects after their lifetime can lead to security issues in
your application, such as sending responses to wrong clients, mixing up
responses. If you can reproduce the issue and the above diagnostic does not
show your own bug, but a bug in Apache Tomcat, if the problem manifests as a
security issue, see [how to report
it](https://tomcat.apache.org/security.html).

##  Troubleshooting "Too many open file descriptors"

The code that opens the descriptors can be identified using a tool such as
[http://file-leak-detector.kohsuke.org/](http://file-leak-
detector.kohsuke.org/)  
  
---  
|  |  | [Go to page
history](https://cwiki.apache.org/confluence/pages/viewpreviousversions.action?pageId=103099080&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db "Go to page
history")  
---  
---  
| [View
page](https://cwiki.apache.org/confluence/display/TOMCAT/Troubleshooting+and+Diagnostics?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=view)  
---  
  
|  | [Stop watching
space](https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=TOMCAT&src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=stop-
watching&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ4c3JmOjhhYTk4MDk1NjlkNDIzY2QwMTZhMDQxMzMwNmYwMGRiIiwicXNoIjoiZWQ5Y2Y5ZjcyNDZiYTNlZDgwYjQwYzhiYTQzYmJlYzRjZjFkODM5YTcyNDg5YWRiNTU5NDBiOWU4MDA0NzE0NSIsImlzcyI6ImNvbmZsdWVuY2Vfbm90aWZpY2F0aW9uc0FSRUgtWFVEMS1QT1FHLUNTQU8iLCJleHAiOjE1ODE1ODk4MDYsImlhdCI6MTU4MDk4NTAwNn0.YJKM9wOB7pe-
uyMmH2MjQ_Pq4qj7hVZ9ortZ1yRedcs) | •  
---|---  
[Manage
notifications](https://cwiki.apache.org/confluence/users/editmyemailsettings.action?src=mail&src.mail.product=confluence-
server&src.mail.timestamp=1580985006800&src.mail.notification=com.atlassian.confluence.plugins.confluence-
notifications-batch-plugin%3Abatching-
notification&src.mail.recipient=8aa9809569d423cd016a0413306f00db&src.mail.action=manage)  
---  
| ![Confluence logo big](cid:footer-desktop-logo)  
---  
This message was sent by Atlassian Confluence 7.1.2  
![](cid:footer-mobile-logo)  
---