Replication Servers are separate processes in the replication system. RepAgent is an Adaptive Server thread.
The following sections estimate the approximate memory requirements of each one.