Main Site Documentation

Leakage SZARRAY


#1

After 2-3 hours orf running, I note that my application slow down, just after running, the mail loop is executed 2-3 times per second while after 2-3 hours the main loop is executed one time every 5 second. Code has been written under pressure without having much time to optimize it and for sure there’s room for optimization. I have noticed that when the code slows down, GC start to be called and print in the debug windows. This shows for the first GC:

And the last one:

[quote]GC: 114msec 402384 bytes used, 8288892 bytes available
Type 0F (STRING ): 15912 bytes
Type 11 (CLASS ): 48324 bytes
Type 12 (VALUETYPE ): 1356 bytes
Type 13 (SZARRAY ): 309660 bytes
Type 15 (FREEBLOCK ): 8288892 bytes
Type 17 (ASSEMBLY ): 18864 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 24 bytes
Type 1B (DELEGATE_HEAD ): 252 bytes
Type 1D (OBJECT_TO_EVENT ): 648 bytes
Type 1E (BINARY_BLOB_HEAD ): 744 bytes
Type 1F (THREAD ): 1152 bytes
Type 20 (SUBTHREAD ): 144 bytes
Type 21 (STACK_FRAME ): 1704 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 27 (FINALIZER_HEAD ): 696 bytes
Type 31 (IO_PORT ): 936 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 1680 bytes[/quote]

My application seems to have leakage of type SZARRAY. Does anyone have any idea on how to catch such leakage?