Setting Default Limits

The default limits are shown by the sysdef -i command, which lists the values in hexadecimal, as shown in Figure 14-9.

Figure 14-9. Example Systemwide Resource Limits Shown by sysdef
% sysdef -i 
... 
    Soft:Hard           Resource 
Infinity:Infinity       cpu time 
Infinity:Infinity       file size 
1fefe000:1fefe000       heap size 
  800000: ff00000       stack size 
Infinity:Infinity       core file size 
      40:     400       file descriptors 
Infinity:Infinity       mapped memory

The hard limits for data size and stack size vary. Some older machines with the Sun-4 MMU can map only 1 Gbyte of virtual address space, so stack size is restricted to 256 Mbytes and data size is restricted to 512 Mbytes. For machines with the SPARC Reference MMU, the maximums are 2 Gbytes each.

To increase ...

Get Sun Performance and Tuning: Java™ and the Internet, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.