We have a powershell script that deploys Elasticsearch cluster. It does powershell remoting to run a bunch of commands directly in ES nodes. One of the command is calling the plugin,bat with right set of arguments. It was working fine till ES 2.1.1 and still works fine on small machines. But it fails in larger machines (example: DS_5_v2 azure VM where we have 56 GB RAM). The error is -
"Could not reserve enough space for object heap"