Clearing caches manually

mcsServerManager is a command line utility that allows you to set logging levels and flush caches, without stopping the application server.

mcsServerManager is a command line utility that allows you to set logging levels and flush caches, without stopping the application server.

Refer to the Enabling the Multi-Channel Server Manager function topic in the Mobile Portal Accelerator Information Center for the location of the CLI command and the procedure to enable the CLI support.

The AgentServlet section of the web.xml file configures the MCS Server Manager. The servlet is automatically loaded on startup.

<servlet>
  <servlet-name>AgentServlet</servlet-name>
  <servlet-class>com.volantis.mcs.management.agent.servlet.AgentServlet</servlet-class>
  <init-param>
    <param-name>enabled</param-name>
    <param-value>false</param-value>
  </init-param>
  <init-param>
    <param-name>port</param-name>
    <param-value>8888</param-value>
  </init-param>
  <init-param>
    <param-name>password</param-name>
    <param-value>password</param-value>
  </init-param>
  <init-param>
    <param-name>host</param-name>
    <param-value>localhost</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
</servlet>

The Server Manager is disabled by default. The port and password and host attributes in the mcs-agent element must be matched in the command line. If the host attribute is absent, you do not need to specify a host value on the command line.

mcsServerManager password:[string] host:[string] port:[int] [options]

The following options are available.

Option Description
level

Logging level. See Configuring log files for level details. The logging levels on all log file category elements with a name attribute beginning with 'com.volantis', 'com.volantis.' or 'our.' are changed for MCS and all related applications running on the same JVM.

The following logging levels are supported:

  1. for the debug level which is used for trace information

  2. for information log messages

  3. for warning log messages

  4. for error log messages

  5. for fatal log messages

props Display remote host JVM system properties.
flush_all Flush all cached content.
flush_components Flush the policies and asset cached content.
flush_devices Flush the devices cached content.
flush_layouts Flush the layouts cached content.
flush_page_cache Flush the XDIME page cache content.
flush_pipeline_all Flush all pipeline caches. Please note that the cache used by the urid:fetch operation will also be flushed.
flush_pipeline:<cache-name> Flush a selected pipeline cache. <cache-name> is the name of the pipeline cache configured in the mcs-config.xml file. Please note that the cache used by the urid:fetch operation will not be flushed.
flush_themes Flush the themes cached content.
Note:

Flushing will only occur once a page has been generated in the server.

Related topics