Question

Running perl script in solaris 10 machine. Know the RAM Size is 25 GB. Have two queries.

  1. Normally How much RAM memory a solaris process is allocated. Is it a default value assigned to any script or process. where it can be set? How do i determine how much max static array size can i have and how much dynamic memory can i allocate? what command i need to issue to find it out what memory allocated to a process in solaris? Is it configurable?

  2. When the script gives me outofmemory error. Does it mean it used the entire RAM and virtual memory? Is there any way to know how memory was used when the script threw out ofmemory error?what command i need to issue to find it out in solaris?

Was it helpful?

Solution

1) As much as it requests, up to the limit set by ulimit. Commands such as pmap and ps can show how much a process has allocated at the current time.

2) It can mean that it used all virtual memory, or that it hit the process limit, or that it's a 32-bit process and hit the 4gb address space limit. Solaris Application Memory Management provides some more details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top