• M. Mert Yıldıran's avatar
    Fix the memory exhaustion by optimizing max. AMQP message size and `GOGC` (#257) · 7cc077c8
    M. Mert Yıldıran authored
    * Permanently resolve the memory exhaustion in AMQP
    
    Introduce;
    - `MEMORY_PROFILING_DUMP_PATH`
    - `MEMORY_PROFILING_TIME_INTERVAL`
    environment variables and make `startMemoryProfiler` method more parameterized.
    
    * Fix a leak in HTTP
    
    * Revert "Fix a leak in HTTP"
    
    This reverts commit 9d46820ff3730bc5ef80f90243a42b12e8f695fb.
    
    * Set maximum AMQP message size to 16MB
    
    * Set `GOGC` to 12800
    
    * Remove some commented out lines and an unnecessary `else if`
    7cc077c8