Troubleshooting
Problem
You see a WASX7015E error occurs when running the AdminConfig.save() command if you make configuration changes in the server.xml file before saving the PMI (Performance Monitoring Infrastructure) configuration using the wsadmin command.
Cause
wsadmin has its own workspace to handle the configuration changes. If configuration changes are made in the server.xml file, such as JVM attributes, it will reflect in the workspace copy of the server.xml file. The AdminConfig.save() operation will update the workspace copy of the server.xml file with master repository. Just like the AdminConfig.save() operation, the PMI Mbean operation savePMIConfiguration also creates its own workspace to update the pmi-config.xml and server.xml files.
If configuration changes are made before saving PMI configuration, 2 different workspaces are involved in these operations. Both the workspaces will get the server.xml file from the master repository, and WASX7015E will occur when running the AdminConfig.save() operation.
wsadmin>AdminControl.invoke(perfName,"savePMIConfiguration") wsadmin>AdminConfig.save() WASX7015E: Exception running command: "AdminConfig.save()"; exception information: com.ibm.websphere.management.exception.ConfigServiceException com.ibm.ws.sm.workspace.WorkSpaceException: RepositoryException while retry updating documents in master repository |
Resolving The Problem
To change configurations in the server.xml file, run the AdminConfig.save() command before invoking the PMI operation, as follows:
jvm = AdminConfig.getid('/Server:server1/JavaProcessDef:/JavaVirtualMachine:/') AdminConfig.modify(jvm,'[[verboseModeGarbageCollection true]]') AdminConfig.save() . PMIOption = "basic" perfName = AdminControl.completeObjectName('process=server1,type=Perf,*') perfOName = AdminControl.makeObjectName(perfName) param=[PMIOption] sig=["java.lang.String"] AdminControl.invoke_jmx(perfOName,"setStatisticSet",param,sig) AdminControl.invoke(perfName,"savePMIConfiguration") |
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21268549