You can use RMI to transfer objects between JVMs running on two separate machines. If you clear out references to objects that you've transferred, you'll reduce your RAM usage on one machine and increase it on the other (assuming you collected the objects as you received them).
http://java.sun.com/docs/books/tutorial/rmi/index.html
should get you started.