private static void loadServerInfo(Element element) throws ESBBaseCheckedException {
        String serverName;
        String serverType;
        String nodeName;
        String memo;

        // 启用CPU测量和线程争用监视
        ManagementFactory.getThreadMXBean().setThreadCpuTimeEnabled(true);
        ManagementFactory.getThreadMXBean().setThreadContentionMonitoringEnabled(true);

        // 获取当前JVM进程编号和主机名
        String pid = SystemUtils.getPid();

        if (pid != null) {
            ESBServerContext.setPid(Integer.parseInt(pid));
        }
        ESBServerContext.setHostname(SystemUtils.getHostname());

        // Weblogic环境上使用config.xml中配置的应用服务器名做为服务器名
        if ((serverName = System.getProperty("weblogic.Name")) == null) {
            // 当为web服务器时，当前域如果不是主域（/），则使用子目录名作为服务器名
            if ((serverName = System.getProperty("ESB.server.name")) == null) {
                // 使用ESB.xml中配置的服务器名
                serverName = element.element("server-info").element("server-name").attributeValue("name");
            }
        }
        ESBServerContext.setServerName(serverName);
        ESBServerContext.getSession().setServers(new String[] { serverName });

        serverType = element.element("server-info").element("server-name").attributeValue("type");
        ESBServerContext.setServerType(serverType);

        nodeName = element.element("server-info").element("server-name").attributeValue("nodeName");
        ESBServerContext.setNodeName(nodeName);

        memo = element.element("server-info").element("server-name").attributeValue("memo");
        ESBServerContext.setServerMemo(memo);

        // 获取机架ID
        Element te = element.element("server-info").element("rack-id");
        if (te != null) {
            ESBServerContext.setRackID(te.attributeValue("id"));
        } else {
            ESBServerContext.setRackID(SystemUtils.getHostname());
        }

        // 获取服务器运行模式
        String model = element.element("server-info").element("running-model").attributeValue("model");
        if ("product".equalsIgnoreCase(model)) {
            ESBServerContext.setServerRunningMode(ServerRunningMode.PRODUCT_MODE);
        } else if ("develop".equalsIgnoreCase(model)) {
            ESBServerContext.setServerRunningMode(ServerRunningMode.DEVELOP_MODE);
        } else if ("test".equalsIgnoreCase(model)) {
            ESBServerContext.setServerRunningMode(ServerRunningMode.TEST_MODE);
        } else {
            throw new ESBBaseCheckedException("PF-00002:ESB.xml中running-model结点的配置信息错误");
        }

        // 是否开启EPoll模式
        final SelectorProvider provider = SelectorProvider.provider();
        if (provider.getClass().getName().equals("sun.nio.ch.EPollSelectorProvider")) {
            ESBServerContext.enableUseEPoll();
        }

        // 启动过程中发生错误是是否立即停止
        final Element fs = element.element("server-info").element("failStop");
        if (fs != null) {
            ESBServerContext.setFailStop(Boolean.parseBoolean(fs.getText()));
        }
    }