Skip to content
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

Ya memory improvement: queryMBeansqueryNames #71

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Aug 25, 2015

JMXFetch was unnecessarily querying full bean objects: query bean names
instead (queryMBeansqueryNames).
As it queries one bean attributes at a time (getAttributesForBean),
extra memory is saved.

@yannmh yannmh added this to the 5.5.0 milestone Aug 25, 2015
@@ -31,9 +31,9 @@
private static final String DOT_UNDERSCORE = "_*\\._*";
private MBeanAttributeInfo attribute;
private Connection connection;
private ObjectInstance jmxInstance;
private ObjectName jmxInstance;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rename this attribute to beanName like you did in JMXSimpleAttribute and JMXComplexAttribute ? 😃

@olivielpeau
Copy link
Member

Just a few minor comments to address, apart from those it looks good to merge once the ci passes! 👍

@yannmh yannmh force-pushed the yann/query-mbean-names-only branch 3 times, most recently from 0a586bd to b10d275 Compare August 25, 2015 19:27
@yannmh
Copy link
Member Author

yannmh commented Aug 25, 2015

Comments addressed. Thanks for the review @olivielpeau !

JMXFetch was unnecessarily querying full bean objects: query bean names
instead (`queryMBeans`→`queryNames`).
As it queries one bean attributes at a time (`getAttributesForBean`),
extra memory is saved.
@yannmh yannmh force-pushed the yann/query-mbean-names-only branch from b10d275 to f83e119 Compare August 26, 2015 13:20
yannmh added a commit that referenced this pull request Aug 26, 2015
Ya memory improvement: `queryMBeans`→`queryNames`
@yannmh yannmh merged commit b16722c into master Aug 26, 2015
@yannmh yannmh deleted the yann/query-mbean-names-only branch August 26, 2015 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants