Virtual memory is increasing to a great extent

I am running my application
when i run the **TOP** command it is showing too much virtual memory

Thu Oct 4 18:11:01 IST 2012
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31248 root 18 0 28.1g 73m 1772 S 12.8 7.3 14:53.12 ommandserver

ThreadCount
4
VIRT--->virtual memory 28.1 GB it is very big
how can i free that memory???
If the application runs much more time will it lead to "Out of Memory Exception?"

help me
Sounds like you have a memory leak.
Do you have any code that looks like this?

while (true) int* p = new int[1000];
Last edited on
there is memory leak check in my application
and there is no memory leak, we are printing in the logs for every transaction

my Doubt is about virtual memory
what will happen, if virtual memory keep on increasing?
and how to release it?
Last edited on
Like I said, you do have a memory leak. You need to find it and fix it.
Topic archived. No new replies allowed.