[Glass] Multiple entries for same class in out of memory crash report .csv file

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Wed Jun 28 12:33:38 PDT 2017


On Wed, Jun 28, 2017 at 4:17 PM, Dale Henrichs <
dale.henrichs at gemtalksystems.com> wrote:

> Mariano,
>
> Here's Allen's response:
>
> The csv file includes data on each region of temp obj memory, and always
> includes oops.
>
>
topaz> login
> successful login
> topaz 1> run
> | a | a := { } .
> [ true ] whileTrue:[ a add: (String new:1000)]
> %
> *********** Fatal error 4067 OutOfMemory *****
> ...
> Wrote object memory usage to topaz32098.csv
> ERROR 4067 , VM temporary object memory is full
> , old space overflow
> topaz> quit
>
>
> % egrep -e '^String|Instances|className'  topaz32098.csv
> Instances counts for generation all
> className,classOop,numberOfInstances,totalSizeInBytes
> String,74753,39535,40268208
> StringKeyValueDictionary,79873,2,272
> Instances counts for generation new
> className,classOop,numberOfInstances,totalSizeInBytes
> String,74753,2599,2661376
> Instances counts for generation pom
> className,classOop,numberOfInstances,totalSizeInBytes
> String,74753,2,72
> StringKeyValueDictionary,79873,2,272
> Instances counts for generation old
> className,classOop,numberOfInstances,totalSizeInBytes
> String,74753,36934,37606760
> Instances counts for generation perm
> className,classOop,numberOfInstances,totalSizeInBytes
> Instances counts for generation code
> className,classOop,numberOfInstances,totalSizeInBytes
>
>
>

Ohh I see now.  Ok, honestly, now I remember I saw that when I saw the
"original" file.
The "problem" is that obviously, when you got  a out of memory, you are
interested in the guys taking the most memory. So, what i do is to take the
file, open it with Numbers and sort by either totalSizeInBytes or
numberOfInstances, hence the "duplicates". But with current state is hard
to analyze because same class can have multiple rows and so i have to
"mentally" sum and "reorder" in my mind.

I guess I will write an utility class that receives the original csv file
and outputs desired files:

FaOutOfMemoryCsvConverter convertFrom: 'topazXXX.csv'
tallingAllMemoryRegions: true sortByColumnKey: #numberOfInstances to:
'adapted.csv'

groupAllRegions if true, would sum/tally all regions together. If false,
then each region will have a separate space in the file separated by
divider rows.

#numberOfInstances would sort the resulting csv (wether grouping or not was
applied).

That way I can choose how to group and how to sort.

Does this sound as a good idea?

Cheers,




>
> On 06/28/2017 10:51 AM, Mariano Martinez Peck wrote:
>
>
>
> On Wed, Jun 28, 2017 at 2:42 PM, Dale Henrichs via Glass <
> glass at lists.gemtalksystems.com> wrote:
>
>> Mariano,
>>
>> Is it possible that you have multiple versions of that class?
>>
>>
> Ok, that was a good question. I didn't even think about that (I wish the
> class history number / index would be printed together with the class name
> in that case).  But no, I see repeated classes like Array, String, LogEntry
> etc which clearly do not have classHistory > 1.
>
> Cheers,
>
>
>
>
>> On 06/28/2017 08:11 AM, Mariano Martinez Peck via Glass wrote:
>>
>> Hi guys,
>>
>> Under 3.3.3 when an gem out of memory crashes happens, a topazXXX.csv is
>> generated with the instance count. However, I found out that there are many
>> classes that are repeated (have more than 1 row). And sometimes with
>> different values on the columns! So I am not sure if they appears more than
>> once but only one is the "latest" of if the real value should be the sum of
>> all appearences. In either case, I don't think they should appear more than
>> once.
>>
>> If this is the first time you hear about this problem, please let me know
>> and I send you an .csv example.
>>
>> Thanks,
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>>
>> _______________________________________________
>> Glass mailing listGlass at lists.gemtalksystems.comhttp://lists.gemtalksystems.com/mailman/listinfo/glass
>>
>> _______________________________________________ Glass mailing list
>> Glass at lists.gemtalksystems.com http://lists.gemtalksystems.co
>> m/mailman/listinfo/glass
>
> --
> Mariano http://marianopeck.wordpress.com
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20170628/0bcbe011/attachment-0001.html>


More information about the Glass mailing list