This section explains how to respond to a hanging console window in certain circumstances. In this case, the main console window hangs when users attempt to start a new console window and to connect to the Sun Management Center server. However, existing console window connections encounter no problems.
The main console window can hang for the following reasons:
The server memory is used up. Threads that are reading from a socket can hang when there is a large discrepancy between the read and write rates at either end of a socket. The memory problem occurs when the Sun Management Center server has a large amount of buffered data waiting to be sent to its clients. The buffered data can become so large that the server runs out of memory while trying to write to the socket. Once the server is out of memory, the server does not recover.
If you are monitoring the server log file, use the following command to check for messages that the server is out of memory: /opt/SUNWsymon/sbin/es-run ctail -f /var/opt/SUNWsymon/log/server.log
The console memory for the console process is used up. You might be able to confirm that the console process is out of memory. Choose Sun Management Center Console Messages from the File menu on the main console window. The Sun Management Center Console Messages window might display one or more messages that the console is out of memory.
The method that you use to resolve a hanging main console window depends on which memory is filled:
If the server memory is used up, increase the memory that is available to the server process. The default size is 64 Mbytes.
For example, to double the default memory from 64 Mbytes to 128 Mbytes, use this command:
# es-start -s -- -Xmx128m |
If you typically invoke your server by using the es-start -A command or by rebooting, you can automatically set the memory size. To customize the default memory size, change -Xmx64m to the desired size in the /opt/SUNWsymon/classes/base/server/bin/es-server.sh file.
If the console memory is used up, restart the console with a bigger memory size.
For example, to increase the memory to 100 Mbytes, use this command:
# es-start -c -- -Xmx100m |
This process allocates more memory to the console for the current session.
To allocate more memory automatically, change the default memory size from -Xmx64m to the desired size in the /opt/SUNWsymon/classes/base/console/bin/es-console.sh file.