Monitoring the Activity of SAS Servers |
About SAS Management Console's Server Management Features |
You can use SAS Management Console to monitor the activity of SAS servers, including the metadata server, object spawners, OLAP servers, pooled workspace servers, stored process servers, table servers, and workspace servers. You can view the following kinds of information:
currently connected clients
graphs showing the number of spawned server sessions over time
sessions that are active, inactive, or terminated
server options and properties
performance counters
loggers and associated logging levels
logging messages, at the level that you specify
You can also use the server management features to dynamically change logging levels and some server properties.
Summary of Steps for Using SAS Management Console Server Monitoring |
To use the server management features of SAS Management Console, follow the procedures that are described in these topics:
Obtain the Appropriate User Credentials, and Clear Cached Credentials (If Necessary)
Use SAS Management Console to Connect to Servers and Display Server Monitoring Information
Return Logging to Normal Levels, Disconnect from the Servers, and Stop Displaying Log Messages
Obtain the Appropriate User Credentials, and Clear Cached Credentials (If Necessary) |
To perform server monitoring in SAS Management Console, you must have the appropriate user credentials. To determine what credentials are required for each group of tasks, see Who Can Do What in the Server Manager Plug-in.
If you attempt to connect to a server or spawner and you are denied access, make sure you have the appropriate credentials. After your credentials are updated, be sure to clear the credentials cache before you try to connect again. To clear the credentials cache, click File Clear Credentials Cache in SAS Management Console.
Use SAS Management Console to Connect to Servers and Display Server Monitoring Information |
To monitor an instance of a server or spawner, you must establish a connection. Follow these steps:
Log on to SAS Management Console as a user with the appropriate credentials (see Who Can Do What in the Server Manager Plug-in.
On the Plug-ins tab, expand the Server Manager node and the application server node (for example, SASApp or SASMeta).
Expand the node for the logical server that you want to monitor.
The instances of that server that have been defined are displayed in the server tree. When you highlight a server instance in the tree, the right pane displays the available connections, as well as the port and the host machine for each connection.
To connect to the metadata server, an OLAP server, or a table server and display monitoring information:
In the Server Manager tree, right-click the server instance that you want to monitor.
Click Connect.
The following server monitoring tabs become active: Clients, Options, Loggers, and Log. For OLAP servers and table servers, a Sessions tab also appears.
Note: If some tabs are disabled, then you need additional user credentials. See Who Can Do What in the Server Manager Plug-in.
To use the information on the tabs, see Use the Server Manager Tabs to Obtain Monitoring Information and to Adjust Logging Levels (If Needed).To connect to a workspace server, pooled workspace server, or stored process server and display monitoring information, follow these steps:
In the Server Manager tree, expand the node for the server instance that you want to monitor.
The server's available connections are displayed in the server tree and in the right pane.
In the Server Manager tree, highlight a connection and click Connect.
For each process that is active for that connection, the right pane displays the process ID, the process owner, and the port, as shown in this example:
In the Server Manager tree, expand the node for the connection that you are working with.
The active processes for the connection are displayed in the tree.
In the Server Manager tree, highlight the process that you want to monitor, as shown in this example:
The following server monitoring tabs become active: Clients, Options, and Loggers. For stored process servers, the Sessions and Log tabs also become active.
Note: If some tabs are disabled, then you need additional user credentials. See Who Can Do What in the Server Manager Plug-in.
To use the information on the tabs, see Use the Server Manager Tabs to Obtain Monitoring Information and to Adjust Logging Levels (If Needed).To connect to an instance of the object spawner and display monitoring information, follow these steps:
On the Plug-ins tab, expand the Server Manager node and the Object Spawner node.
Right-click the object spawner instance that you want to administer, and click Connect.
The following server monitoring tabs become active: Clients, Spawned Server Activity, Options, Loggers, and Log.
Note: If some tabs are disabled, then you need additional user credentials. See Who Can Do What in the Server Manager Plug-in.
To use the information on the tabs, see Use the Server Manager Tabs to Obtain Monitoring Information and to Adjust Logging Levels (If Needed).Use the Server Manager Tabs to Obtain Monitoring Information and to Adjust Logging Levels (If Needed) |
After you have set the Server Manager options and connected to a server or a spawner, as described in the preceding topics, SAS Management Console displays server monitoring information in the right pane in a series of tabs.
Depending on which server component you are monitoring, SAS Management Console might display the following tabs:
Note: If some tabs are disabled, then you might need to connect to the server (see Use SAS Management Console to Connect to Servers and Display Server Monitoring Information) or you might need additional user credential (see Who Can Do What in the Server Manager Plug-in).
The Clients tab in the Server Manager lists the clients that are or have been connected to the currently selected server component. The tab displays each client's user name, host machine, and entry time, as shown in the following example:
The Clients tab is displayed for the following server components:
metadata server
object spawner connections
OLAP servers
pooled workspace server processes
stored process server processes
table servers
workspace server processes
The Sessions tab in the Server Manager lists the sessions that are active on the currently selected server or server process. Depending on your options settings, inactive and terminated sessions might also be displayed, as shown in this example:
To specify which types of sessions to display:
Right-click the Server Manager node, and select Options. The Options dialog box appears.
On the Sessions tab of the Options dialog box, select one of the following options:
to display only active and inactive sessions in the Sessions tab. When sessions terminate, they will be removed from the tab.
to display active, inactive, and terminated sessions in the Sessions tab.
If terminated sessions are displayed, you can remove them by right-clicking the selected server node or process node in the server tree and selecting Refresh.
The Sessions tab is displayed for the following server components:
OLAP servers
stored process server processes
table servers
The Spawned Server Activity tab in the Server Manager displays a graph that shows server activity associated with the currently selected object spawner connection. The graph shows how many spawned workspace servers, pooled workspace servers, and stored process servers are active at a given point in time, as shown in the following example:
The graph is updated every 10 seconds. This tab is displayed only for object spawner connections.
The Options tab displays performance counters and other information fields for the currently selected server or spawner session, as shown in the following example:
For more information about the performance counters and information fields, see Using the Server Performance Counters and Information Fields.
Some types of properties can be modified in this tab. To change the value of a property, right-click the property entry and click Edit.
The Options tab is displayed for the following server components:
metadata server
object spawner connections
OLAP servers
pooled workspace server processes
stored process server processes
table servers
workspace server processes
The Loggers tab in the Server Manager displays the loggers that are in use for the selected server component, as shown in the following example:
For each logger that is associated with the server component, this tab shows the logging level that is in effect. If <Inherited> appears in the third column, then the logging level is not set explicitly for the logger; instead, the level is inherited from a parent logger. If you want to see which logging level is in effect through inheritance, then right-click the entry and select Properties.
The logging levels that are in effect at server start-up are based on the server's logging configuration file. In most cases, there is no need to change the logging levels. However, SAS Technical Support might request that you change a logging level temporarily to assist in problem resolution. For example, you might be requested to increase the level for the object spawner's App logger.
To change the logging level temporarily for a logger:
Right-click the entry for the logger whose level you want to change, and select Properties.
In the Properties dialog box, select the Assigned radio button. Then select the appropriate level from the drop-down box.
The logging level changes that you enter here have the following effects on logging:
For the duration of the server process, the changes override the logging levels that are defined in the server's logging configuration file.
The changes affect messages that are displayed in the Log tab, as well as messages that are sent to other appenders (as configured in the server's logging configuration file).
The changes remain in effect until the server component or process stops. When the server component is restarted, the logging levels revert to those that are defined in the server's logging configuration file.
Note: The logging levels that are set in the default configuration files should be sufficient for most sites. If you need to permanently change logging levels for a component, then you must change the logging configuration file. To maintain system performance, use extreme caution in making these changes.
The Loggers tab is displayed for the following server components:
metadata server
object spawner connections
OLAP servers
pooled workspace server processes
stored process server processes
table servers
workspace server processes
The Log tab displays log events for the currently selected server or server process, as shown in the following example:
To display log events on this tab:
Use the Server Manager options to specify a message level or threshold level filter. You can also specify a starting and ending time.
Note: These settings filter the events that are already being generated based on the server's logging configuration file and the Loggers tab; they do not generate additional events. If you want to generate additional events, use the Loggers tab to change the level for one or more loggers, or modify the server's logging configuration file.
Set the filters as follows:
Right-click the Server Manager node, and select Options. The Options dialog box appears.
Click the Logging tab of the Options dialog box, and specify the following options:
specifies a specific level of messages that are to be displayed in SAS Management Console.
specifies the lowest level of messages that are to be displayed in SAS Management Console. Messages that have a level equal to or higher than the specified level are displayed in the Log tab.
Note: You can specify either a threshold level or a message level, but you cannot specify both.
specifies the date and time that log messages are to start appearing in SAS Management Console. Click the date and time icon ( ), specify a date and time, and then click outside of the dialog box to save your entry.
If you do not specify a start time, then the message level or threshold level takes effect immediately.
specifies the date and time that log messages are to stop appearing in SAS Management Console. Click the date and time icon ( ), specify a date and time, and then click outside of the dialog box to save your entry.
If you do not specify an end time, then the message level or threshold level remains in effect until you change it.
Click View Refresh on the menu bar to display the current contents of the message buffer.
Click View Refresh again each time you want to see the latest events.
The events that are displayed in this tab depend on the following:
the loggers and logging levels that are specified in the server's logging configuration file.
adjustments to logging levels that you might have made on the Loggers tab (see Use the Loggers Tab in the Server Manager, and (If Necessary) Change Logging Levels for Individual Loggers. These adjustments override the logging configuration file and remain in effect for the duration of the server session.
additional filtering (based on message level, threshold level, and starting and ending times) that you specify in the Server Manager options.
The Log tab is displayed for the following server components:
metadata server
object spawner connections
OLAP servers
stored process server processes
table servers
Return Logging to Normal Levels, Disconnect from the Servers, and Stop Displaying Log Messages |
When you are finished monitoring servers, then you should do the following:
If you changed the logging levels using the Loggers tab, then manually reset the loggers to their normal levels (see Use the Loggers Tab in the Server Manager, and (If Necessary) Change Logging Levels for Individual Loggers).
Note: You can also reset loggers to their normal levels by restarting the server component.
Reset the message level, threshold level, or the start and end times in the Server Manager options (see Use the Log Tab in the Server Manager).
Disconnect from any server components that you are connected to.
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.