IBM Support

Clearing the proxy server or ODR cache

Question & Answer


Question

How do I clear the proxy server or ODR cache?

Answer

The proxy server cache can be cleared using the ProxyServer mbean. All running proxy servers and ODRs will create the ProxyServer mbean.


Use the wsadmin queryNames command to list the active ProxyServer mbeans:


wsadmin>$AdminControl queryNames type=ProxyServer,*
WebSphere:name=ProxyServer,process=odr1,platform=common,node=name-vmNode02,
version=8.5.5.11,type=ProxyServer,mbeanIdentifier=ProxyServer,cell=name-vmCell02, spec=1.0
WebSphere:name=ProxyServer,process=proxy1,platform=common,node=name-vmNode02,
version=8.5.5.11,type=ProxyServer,mbeanIdentifier=ProxyServer,cell=name-vmCell02,spec=1.0

To query the mbean for a specific ODR or proxy server you can specify a process name:

wsadmin>$AdminControl queryNames type=ProxyServer,process=odr1,*
WebSphere:name=ProxyServer,process=odr1,platform=common,node=name-vmNode02,
version=8.5.5.11,type=ProxyServer,mbeanIdentifier=ProxyServer,cell=name-vmCell02,spec=1.0

To save a reference to the mbean use the set command:

wsadmin>set psmb [$AdminControl queryNames type=ProxyServer,process=odr1,*]
WebSphere:name=ProxyServer,process=odr1,platform=common,node=name-vmNode02,
version=8.5.5.11,type=ProxyServer,mbeanIdentifier=ProxyServer,cell=name-vmCell02,spec=1.0

A command on the mbean can be executed using the invoke command. To clear the cache on the ODR
or proxy server use:

wsadmin>$AdminControl invoke $psmb invalidateAllCache

wsadmin>

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Proxy server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"9.0;8.5.5;8.5;8.0;7.0","Edition":"Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg22005011