Follow the instructions described in the Sun Java System Application Server 8.2 Installation Guide. Remember to reboot the system after configuring shared memory settings.