If you federate many documents, consider configuring multiple RMI proxy servers and setting a smaller JVM heap size for the RMI proxy servers.
For Content Services, the default JVM value of -ms256m -mx256m is typically sufficient. But if the RMI proxy servers are failing, reduce the size of the JVM heap.