STEP 1. Monitoring Memory

To check for a memory bottleneck, use the vmstat utility, which shows, among other things, memory behavior for the system. A 5-second interval is a good choice for live monitoring.

The vmstat trace in Figure 21.1 shows a system with no evidence of memory shortfall.

Figure 21.1. vmstat trace with no memory shortfall
 procs memory page disk faults cpu r b w swap free re mf pi po fr de sr m1 m2 s6 sd in sy cs us sy id 0 8 0 3557104 1359368 0 621 0 0 0 0 0 0 0 0 0 417 11922 1190 12 2 86 0 7 0 3555728 1358080 0 729 0 0 0 0 0 0 0 0 0 449 12797 1985 20 2 78 5 9 0 3512184 1318120 0 3666 0 12 12 0 0 0 0 0 6 2198 32163 7404 70 10 20 3 15 0 3485016 1293944 0 939 0 24 24 0 0 0 0 0 1 892 30760 2842 50 4 46 0 18 0 3480520 1289912 ...

Get Configuring and Tuning Databases on the Solaris™ Platform 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.