I have this method in controller:
public static void show(Long id)
{
Article article = Article.findById(id);
//List<Review> reviews = Review.find("byArticle", article).fetch();
render(article);
}
It passes on the article object to template & the template tries to render various fields in the article object.
And then I get outofMemory exception, where am I going wrong ?
This is the error message shown by Play Framework:
RuntimeException occured : java.lang.OutOfMemoryError: GC overhead limit exceeded