Grails application hogging too much memory

Posted by RN on Stack Overflow See other posts from Stack Overflow or by RN
Published on 2010-03-29T02:19:25Z Indexed on 2010/03/29 2:23 UTC
Read the original article Hit count: 298

Tomcat 5.5.x and 6.0.x

Grails 1.6.x

Java 1.6.x

OS CentOS 5.x (64bit)

VPS Server with memory as 384M

export JAVA_OPTS='-Xms128M -Xmx512M -XX:MaxPermSize=1024m'

I have created a blank Grails application i.e simply by giving the command grails create-app and then WARed it

I am running Tomcat on a VPS Server

When I simply start the Tomcat server, with no apps deployed, the free memory is about 236M and used memory is about 156M

When I deploy my "blank" application, the memory consumption spikes to 360M and finally the Tomcat instance is killed as soon as it takes up all free memory

As you have seen, my app is as light as it can be.

Not sure why the memory consumption is as high it is.

I am actually troubleshooting a real application, but have narrowed down to this scenario which is easier to share and explain.

© Stack Overflow or respective owner

Related posts about grails

Related posts about tomcat