1. A method comprising: monitoring, using instructions executed by a processor, applications executed by a first environment and applications executed by a second environment; determining that a first application is executed by the first environment and by the second environment; responsive to determining that the first application is executed by the first environment and by the second environment, calculating a first amount of resources allocated to the first application by the first environment and calculating a second amount of resources allocated to the first application by the second environment; halting execution of the first application in one or more memory partitions of the first environment or in one or more memory partitions of the second environment based on the first amount of resources and the second amount of resources; and transferring data from the first application on the first environment to the second environment if the first amount of resources exceeds the second amount of resources or data from the first application on the second environment to the first environment if the second amount of resources exceeds the first amount of resources.