[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual memory exceeded in new



Hi Randa,

You can run ps and look at the field "SZ", which gives you the number of a 
process' swappable pages currently in use. To find out about the size of one 
page, simply run pagesize, which gives you the pagesize in bytes. Example on 
Solaris:


> ps -U chris -l

 F S   UID   PID  PPID  C PRI NI     ADDR     SZ    WCHAN TTY      TIME CMD
 8 S  2174 25488 25486  0  51 20 626f7338    246 626f73a8 pts/1    0:00 bash
 ...

> pagesize
8192

Therefore, my bash is using 246*8192 bytes of memory right now.

    -Chris.



> Hello,
> 	I am running simulations of RTP starting with 200 nodes for 50 sec simulation time. I am having problems in running as it gives me:
> Virtual memory exceeded in `new'
> 
> I am running my script on ultra-10 machine with 1GB RAM, but may be the
> memory dedicated to run my process  is small. Does anyone know how to know 
> the size of memory dedicated to run my processes and how to increase it.
> Thanks a lot,
> Randa 
> [email protected]
>