I’m trying to understand what the GC dumps are telling me. The snapshots below are after a few minutes of operation and then again about 15 minutes later. The ‘Type 11 (CLASS ):’ keeps growing and the total amount of memory used keeps growing. I’m just receiving and transmitting data over a UART and the buffer sizes are small and quickly used so I can’t fathom why I am using/leaking memory. HELP! :wall:
Snapshot 1:
GC: 84msec 1592100 bytes used, 5747568 bytes available
Type 0F (STRING ): 3456 bytes
Type 11 (CLASS ): 31284 bytes
Type 12 (VALUETYPE ): 5196 bytes
Type 13 (SZARRAY ): 12504 bytes
Type 01 (BOOLEAN ): 60 bytes
Type 03 (U1 ): 1812 bytes
Type 04 (CHAR ): 900 bytes
Type 07 (I4 ): 1728 bytes
Type 0F (STRING ): 2256 bytes
Type 11 (CLASS ): 5328 bytes
Type 12 (VALUETYPE ): 420 bytes
Type 15 (FREEBLOCK ): 5747568 bytes
Type 17 (ASSEMBLY ): 41508 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 216 bytes
Type 1B (DELEGATE_HEAD ): 3996 bytes
Type 1C (DELEGATELIST_HEAD ): 192 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 1480776 bytes
Type 1F (THREAD ): 2304 bytes
Type 20 (SUBTHREAD ): 240 bytes
Type 21 (STACK_FRAME ): 2460 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 27 (FINALIZER_HEAD ): 1080 bytes
Type 31 (IO_PORT ): 648 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 5400 bytes
Snapshot #2:
GC: 89msec 1641732 bytes used, 5697936 bytes available
Type 0F (STRING ): 3492 bytes
Type 11 (CLASS ): 63828 bytes
Type 12 (VALUETYPE ): 5232 bytes
Type 13 (SZARRAY ): 17112 bytes
Type 01 (BOOLEAN ): 60 bytes
Type 03 (U1 ): 1812 bytes
Type 04 (CHAR ): 900 bytes
Type 07 (I4 ): 1728 bytes
Type 0F (STRING ): 2256 bytes
Type 11 (CLASS ): 9936 bytes
Type 12 (VALUETYPE ): 420 bytes
Type 15 (FREEBLOCK ): 5697936 bytes
Type 17 (ASSEMBLY ): 41508 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 216 bytes
Type 1B (DELEGATE_HEAD ): 16200 bytes
Type 1C (DELEGATELIST_HEAD ): 192 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 1480776 bytes
Type 1F (THREAD ): 2304 bytes
Type 20 (SUBTHREAD ): 240 bytes
Type 21 (STACK_FRAME ): 2664 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 27 (FINALIZER_HEAD ): 1080 bytes
Type 31 (IO_PORT ): 648 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 5400 bytes