title: jboss7 heap size failed to allocate
body: <pre><code>Exception in thread "management-client-thread 1-3" java.lang.OutOfMemoryError: J
  ava heap space (failed to allocate 536870928 bytes)
          at java.util.Arrays.copyOf(Arrays.java:2786)
          at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
          at org.jboss.as.protocol.StreamUtils.copyStream(StreamUtils.java:49)
          at org.jboss.as.controller.client.impl.AbstractModelControllerClient$Rea
  dAttachmentInputStreamRequestHandler.copyStream(AbstractModelControllerC
  va:226)
  at org.jboss.as.controller.client.impl.AbstractModelControllerCl
  dAttachmentInputStreamRequestHandler$1.execute(AbstractModelControllerCl
  a:202)
  at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecu
  actMessageHandler.java:287)
  </code></pre>