Some customers will encounter CAS server memory high issue, the root cause will be different. like bad customization codes. threads using. also there is some possible that because 3DE java use JNI to execute C program and because C version and OS version and other reasons, there is memory leak on JNI side. to check this , let us use PMAP casid. take 4896 as example.
pmap 4896
we found that 65536K size block memory has 131 occurrences. this is a leak example. to fix this. modify ~/.bash_profile, add below line.
export MALLOC_ARENA_MAX=4
This is to control libc to not allocate too much memory , after setting this , include the change and restart CAS Server.
. ~/.bash_profile
So normally this kind of memory issue is solved.