Recently, we upgraded from RHEL 5 to RHEL 6. We have a web application running on JBoss which consumes more memory in RHEL 6 when compared to RHEL 5.
We are using glibc library version 2.12-1.166. We have set the MALLOC_ARENA_MAX varialbe to 1. This reduced the initial memory burst but PermGen contiues to raise. Heapdumps and gc stats analysis doesn't indicate any memory leaks induced by application.
Has anybody experienced a similar issue? I need to get this issue resolved as this is hurting our production servers. We are now restarting 3 times a week to avoid OOM error.
I conducted a memory leak test on RHEL 6 and its evident that malloc is allocating more memory. I tried with MALLOC_ARENA_MAX=1 and MALLOC_ARENA_TEST=1 as suggested in some posts. But it doesn't help.
We are pretty sure the issue is due to the glibc library mentioned above. There are bugs like the one here that suggests that the issue is with glibc library. But we need more information on how to use the glibc environment variables to good effect in solving the issue