With latest release of Mulesoft’s Anypoint Studio 6.6.0 for Mule v3 development we get some updates along with some major features that prevent smooth development process. Studio is trying to be more helpful and proactive and seems to constantly keep loading all XML Schemas for all the namespaces specified at the top of all your Mule configuration files. Now, due to copy-paste nature of development most of us utilize nowadays, myself included, we tend to copy Mule .xml files between the projects and never clean up XML namespaces for modules that are not part of dependencies in our applications. So, with Anypoint Studio 6.6.0 we got some strict policies for XML namespaces that strain Studio resources and put Anypoint Studio into unresponsive state within minutes even on my 32GB mac book pro.
So, how do we address this feature and keep developing as we did in the beginning of the week? The easiest is to edit your project’s XML outside of Anypoint Studio 6.6.0 in a simple XML editor and cleanup all namespaces that shouldn’t be there in the first place. In the example below, we had to remove “xmlns:tracking” and related .xsd link below since tracking module is not part of application that was performance hogging reason for Anypoint Studio 6.6.0.
<?xml version="1.0" encoding="UTF-8"?> <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:dw="http://www.mulesoft.org/schema/mule/ee/dw" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">