This should basically be the same as the master. Add the memory line to the agent's $AW_HOME/site/sosite file, shut down the agent, run the sosite file to re-load the environment(and load the new setting),restart the agent.
you can add the:
line to the remote agents also and re-invoke the sosite then restart. This should allow you more head room on available memory.
Beyond that we would need to look at what is using all the memory on the server. As a general rule we recommend 2048m as a standard setting so if you have issues after upping to that on the agents I would open a ticket with support regarding.
Retrieving data ...