Garbage collection is vital component for the performance of the Distributed systems. An effort is made to demonstrate the various garbage collection techniques with pros and cons. Train Algorithm is taken as base and further some modification are suggested and than proven by experiment. In today's era the computation and memory is growing high, hence there is a higher requirement of better garbage collection. results proves that the results submitted are giving better performance on client server architecture than the traditional approach.