Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT report with all rows from query (more than 25)
MAT report with all rows from query (more than 25) [message #1794921] Tue, 11 September 2018 07:02 Go to next message
Mikolaj Habdank is currently offline Mikolaj HabdankFriend
Messages: 3
Registered: September 2018
Junior Member
Hi

I'm trying to get all rows from OQL query in MAT:

SELECT l.specificRecord.record_id.value FROM OBJECTS ( SELECT OBJECTS a.@referenceArray FROM OBJECTS 1112896 a ) l

where value is just Long
I've already created this:

<section name="Record Id">
<section name="Record Id">
<param key="html.separate_file" value="true" />
<template>org.eclipse.mat.api:overview</template>
</section>
<query name="record ids">
<command>oql "SELECT l.specificRecord.record_id.value FROM OBJECTS ( SELECT OBJECTS a.@referenceArray FROM OBJECTS 1112896 a ) l "</command>
</query>
</section>

but I get only HTML report with 25 rows
How can I get more than 25 objects?

Best

Mikolaj
Re: MAT report with all rows from query (more than 25) [message #1795065 is a reply to message #1794921] Thu, 13 September 2018 20:42 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 141
Registered: July 2009
Senior Member
Try using a limit like
<param key="limit" value="200" />
as follows:

<section name="Record Id">
<section name="Record Id">
<param key="html.separate_file" value="true" />
<template>org.eclipse.mat.api:overview</template>
</section>
<query name="record ids">
<param key="limit" value="200" />
<command>oql "SELECT l.specificRecord.record_id.value FROM OBJECTS ( SELECT OBJECTS a.@referenceArray FROM OBJECTS 1112896 a ) l "</command>
</query>
</section>


The possible parameters are briefly documented here:
http://help.eclipse.org/photon/topic/org.eclipse.mat.ui.help/doc/org/eclipse/mat/report/Params.html
http://help.eclipse.org/photon/topic/org.eclipse.mat.ui.help/doc/org/eclipse/mat/report/Params.Html.html
http://help.eclipse.org/photon/topic/org.eclipse.mat.ui.help/doc/org/eclipse/mat/report/Params.Rendering.html
Re: MAT report with all rows from query (more than 25) [message #1795073 is a reply to message #1795065] Fri, 14 September 2018 06:24 Go to previous message
Mikolaj Habdank is currently offline Mikolaj HabdankFriend
Messages: 3
Registered: September 2018
Junior Member
Thanks this solution works as intended. Additional configuration options from docs are very useful.
Previous Topic:Huge heap dump, but no content?
Next Topic:MAT report from command line
Goto Forum:
  


Current Time: Sun Sep 23 02:58:53 GMT 2018

Powered by FUDForum. Page generated in 0.01373 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top