本节包含以下几个部分:
这些进程提供了对 IMAP、POP 和 Webmail 服务的访问。如果其中的任何进程未运行或未响应,则服务将无法正常工作。如果服务正在运行,但是出现了过载情况,您可以通过监视检测到这种情况并对其进行更合适的配置。
连接被拒绝或系统的连接速度太慢。例如,如果 IMAP 未在运行而您尝试直接连接至 IMAP,则会看到类似如下的内容:
telnet 0 143 Trying 0.0.0.0... telnet: Unable to connect to remote host: Connection refused
如果尝试与客户机连接,则会收到一条消息,例如:
Client is unable to connect to the server at the location you have specified. The server may be down or busy.
可以使用 watcher 和 msprobe 进行监视。请参见失败的服务或未响应服务的自动重新启动和使用 msprobe 和 watcher 功能进行监视
可以使用 SNMP 进行监视。
如果您设置了 SNMP,则这是监视这些进程的一个非常好的方法。请参见附录 A,SNMP 支持。服务器信息位于网络服务监视 MIB 中。
检查日志文件。
查看 msg_svr_base/log/service 目录,其中 service 可以是 http、IMAP 或 POP。在该目录中,您会找到许多日志文件。其中一个文件名是 service 的名称(imap、pop 或 http),其他文件名是服务名称加上序列号以及级联至该服务名称的日期。例如:
imap imap.29.1010221593 imap.31.1010394412 imap.33.1010567224
只具有服务名称的文件是最新的日志。其他文件按序列号排列(在这里是 29、31、33),序列号最大的文件是次新的文件。(请参见第 21 章,管理日志记录。)
如果服务器被关闭,您可能会看到类似如下的内容:
imap.12.1065431243:[07/Oct/2003:01:15:43 -0700] gotmail-2 imapd[20525]: General Warning: Sun Java System Messaging Server IMAP4 6.1 (built Sep 24 2003) shutting down
可以使用 counterutil 进行检查。请参见counterutil和《Sun Java System Messaging Server 6 2005Q4 Administration Reference》中的“counterutil”。
运行特定于平台的命令来验证 imapd、popd 和 httpd 进程是否正在运行。例如,在 Solaris 中,可以使用 ps 命令并查找 imapd、popd 和 mshttpd。
您可以通过设置服务器响应配置参数(如警报邮件中所述)为指定的服务器性能阈值设置警报。
请参见immonitor-access。
stored 可执行多种重要的任务,例如邮件数据库的死锁和处理操作、强制执行生存期策略以及擦除和删除磁盘上存储的邮件。如果 stored 停止运行,Messaging Server 终将出现问题。如果 start-msg 运行时 stored 未启动,则其他进程也不会启动。有关 stored 的更多信息,请参见《Sun Java System Messaging Server 6 2005Q4 Administration Reference》中的“stored”。
没有外部症状。
检查 stored 进程是否在运行。stored 进程会在 msg_svr_base/config 中创建一个 pid 文件并对其更新,该文件的名称为 pidfile.store。该 pid 文件在恢复时显示 init 状态,在就绪时显示 ready 状态。例如:
231: cat pidfile.store 28250 ready |
第一行中的数字是 stored 的进程 ID。
232: ps -eaf | grep stored inetuser 28250 1 0 Jan 05 ? 8:44 /opt/SUNWmsgsr/lib/stored -d |
检查在 msg_svr_base/store/mboxlist 中生成的日志文件。请注意,并非每个生成的日志文件都是直接由 stored 问题造成的。imapd 中断或数据库问题也会生成日志文件。
检查 msg_svr_base/config 中以下文件上的时间戳:
stored.ckp—尝试进行检查点操作时改写该文件。应当每 1 分钟标记一次时间戳。 stored.lcu—每次清除数据库日志时改写该文件。应当每 5 分钟标记一次时间戳。 stored.per—每次按用户写出数据库时改写该文件。应当每 60 分钟标记一次时间戳
检查默认日志文件 msg_svr_base/log/default/default 中的 stored 邮件
可以使用 watcher 和 msprobe 进行监视。请参见失败的服务或未响应服务的自动重新启动和使用 msprobe 和 watcher 功能进行监视。