Java process showing high virtual memory

Hi All,

I have a java process which is showing high virtual memory utilization in client server. But the same process is showing comparitively lesser virtual memory consumption. I understand that virtual memory shown is not of much importance for the general user in normal condition, my client is adament for an answer as to why the virtual memory is shown to be high in their server and not in our internal servers. For starters, I added a variable MALLOC_ARENA_MAX variable to their java code (which i regretfully can't share) and it helped a bit, but didn't show appreciable change. Please suggest. I only want the logic why its shown different in different servers. They are using centos6+. Waiting desperately for your suggestions.Thanks.

I'm sorry, but knowing that a single process is showing high virtual memory utilization and is showing comparatively lesser virtual memory consumption seems to imply that two people looking at the same process see it's memory consumption differently. My crystal ball isn't seeing anything obvious to suggest which observer might be correct (if either observer is correct), nor is it able to suggest what to investigate to substantiate either claim.

If we could see the code, we might be able to suggest conditions under which it might use a lot of memory.

If we can't see the code, we can make a lot of assumptions that might or might not apply to some process no matter what language is used to write that process? If we can't see the code, can't see anything other than a conflicting statement about memory usage, and have no idea what the process is doing; there is absolutely no way that tell you what, if anything, is wrong with your code.

I apologize if i was not clear enough. What i wanted to convey was that the same process under same amount of load is showing big difference in the amount of virtual memory consumed in different servers, one the client server and second our internal server. So, I wanted to know if the virtual memory value is dependent on some system parameters and how to check those parameters in both the machines.