This is really just a band aid, that reduces the amount of memory leaked if there is a memory leak. It will not help with permgen however, and may actually make it harder to track does the real cause of the leak as there will be less evidence in the profiler.