Cover photo
Charanjit Singh
61 followers|115,718 views


I have 800+ Unit test cases in my Grails application.I'm using grails.version=2.4.4 my Grails App

Below are the few LOC from Run Configuration of Groovy unit test cases


I'm running this application on Ubuntu Machine.

Sometimes , while running the test cases, It is giving me Out Of Memory error.

I took Sampler & Profiler(VisualVM) Memory Test Analysis, but they could not help much.

Also in each test case groovy class , I'm using @Before & @After annotation to reduce Permanent Generation.

Is there anything I'm missing? I want to reduce Perm Gen & to get rid of Out Of Memory error permanently.

Thanks In Advance !!
Charanjit Singh's profile photo
Yeah u r right ( more permgen and more Xmx will def help) but I still want to go with more feasible solutions.
Something like:- Forcefully deleting Perm Gen Or Forcefully GC after 400 test cases !!
Add a comment...

Charanjit Singh

Shared publicly  - 
Add a comment...
Basic Information
Worst food. Except kayaking nothing was exciting. Overall boring . Not a good place & too far from main city Hyderabad
Public - a month ago
reviewed a month ago
Divine , clean & peaceful place. A perfect destination for 1 day trip from Hyderabad.
Public - a month ago
reviewed a month ago
late night coffee
Public - 3 months ago
reviewed 3 months ago