-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some queries for analysing Java EE servers #22
Comments
By James Livingston on Aug 20, 2014 19:42 I have developed some of these queries, and will attach a patch shortly after I restructure it to fit into the main MAT source tree rather than an external one. |
By James Livingston on Aug 24, 2014 22:45 Created attachment 246295 Attached is an initial version of some Java EE queries. It includes HTTP sessions and session attributes, Servlets and servlet requests and stateful EJBs with support for JBoss EAP 6 (AS7) and Wildfly 8. I have some other queries locally, but an still porting them to be in the main tree and tidying them up, and wanted to post what I had now to get feedback. Before (a future version of) this gets committed, I'd like to implement at least some of the extractors for Tomcat/WebSphere/WebLogic/etc to make sure I haven't the SPI JBoss-centric. Some obvious outstanding work is:
There is also a single report which just displays all the new queries. It's pretty simple but can be useful to see likely culprits at a quick glance. It would probably be better to integrate with Leak Suspects. I have BaseObjectQuery and SimpleObjectQuery as parent classes for the queries to reduce the boilerplate. The queries generally have a top-level "overview" row, optionally a second-level chikd row and then show outgoing references. Comments on those classes definitely welcome. They use a new GraftedResultTree class which grafts another set of results (usually outgoing references) onto child rows. I need to investigate the perforamnce issue with context objects when it's enabled, and fix up some of the text display to look more like normal outgoing references queries. The *Extractor SPIs are modelled off the extisting Collections ones. The methods aren't well throught out, and are just whatever I wanted to display as columns. :notepad_spiral: mat-javaee-plugin.diff |
By Krum Tsvetkov on Aug 29, 2014 07:16 James, thanks a lot for the contribution! I am looking into the code and this will take me some more time. Index: plugins/org.eclipse.mat.javaee/.classpath I was able to create a new .project and .classpath files, and will be able to create the pom.xml. |
By James Livingston on Sep 01, 2014 02:14 Created attachment 246585 I'll rebuild the patch after fixing the svn mime-types when I'm at work tomorrow, but here's the plugin.xml :notepad_spiral: plugin.xml |
Dec 23, 2015 20:43 New Gerrit change created: https://git.eclipse.org/r/63237 |
By Andrew Johnson on Feb 01, 2023 08:10 This is an interesting patch, though sadly we haven't incorporated it yet. If we were to revive this one then I think we would need to do the following:
|
| --- | --- |
| Bugzilla Link | 442217 |
| Status | ASSIGNED |
| Importance | P3 enhancement |
| Reported | Aug 20, 2014 19:41 EDT |
| Modified | Feb 01, 2023 08:10 EDT |
| Depends on | 442219 |
| See also | Gerrit change https://git.eclipse.org/r/63237 |
| Reporter | James Livingston |
Description
It would be good to provide some queries to show Java EE-related data such as HTTP sessions, EJBs/Servlets and so on.
The text was updated successfully, but these errors were encountered: