|
I am a newbie just started exploring Grails so that I can recommend this great framework for projects at our work. While learning I am trying to create a prototype of the application using Grails 1.3.7 on ubuntu,
when I run-app after few minutes my system hangs and the system monitor shows that it consumed more than a gig of memory. I am only running a browser and terminal and not even netbeans or eclipse. I thought that it might be because of in memory hsql db, but I configured mysql and even then its the same memory issues. My application is very simple couple of forms and I am using spring security,jms and searchable plugin and nothing more. I would really appreciate any suggestion which would improve the memory issue or else I will have to pass off this framework. Being a developer I feel sad that I am going to miss out such wonderful framework just because of on such issue. My computer has 2 gig of RAM and only runs a chrome browser and terminal Thanks for reading |
|
I see that symptom sometimes when I'm out of permgen memory, although there is usually eventually a message informing as such. Try setting to 128m.
Please excuse my brevity. Sent while on the go. On May 24, 2011, at 9:04 PM, srisris <[hidden email]> wrote: > I am a newbie just started exploring Grails so that I can recommend this > great framework for projects at our work. While learning I am trying to > create a prototype of the application using Grails 1.3.7 on ubuntu, > > when I run-app after few minutes my system hangs and the system monitor > shows that it consumed more than a gig of memory. I am only running a > browser and terminal and not even netbeans or eclipse. > > I thought that it might be because of in memory hsql db, but I configured > mysql and even then its the same memory issues. My application is very > simple couple of forms and I am using spring security,jms and searchable > plugin and nothing more. > > I would really appreciate any suggestion which would improve the memory > issue or else I will have to pass off this framework. Being a developer I > feel sad that I am going to miss out such wonderful framework just because > of on such issue. > > My computer has 2 gig of RAM and only runs a chrome browser and terminal > > > Thanks for reading > > -- > View this message in context: http://grails.1312388.n4.nabble.com/Grails-memory-issue-tp3548840p3548840.html > Sent from the Grails - user mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by srisris
I am a newbie just started exploring Grails so that I can recommend this Are you changing files while the application is running? If so, what type of files? Also, if you run-app and then leave it alone, does it still run out of memory?
Peter Peter Ledbrook Grails Advocate SpringSource - A Division of VMware |
|
Hi Peter,
I am not changing any files once I start the run-app. I just have a google chrome browser running, and then the terminal from where I am running the app. The application I am working on is the twitter clone application which Jeff Brown demonstrated in San Francisco JUG (Twitter clone in 90 mins, youtube video). Once I am logged onto the system after posting couple of tweets thats it, my system hangs and no response. System monitor shows up that all the 2 gig memory is used up. So I was wondering is there any other option I missed out setting to and hence I requested a step by step tuning instructions from the experts or people who have been through this. I seriously want to use this framework for projects at my work place, I am trying to build sample application to get to know the framework so that I can recommend this. From the videos and the simple CRUD tutorials it looks amazingly fast to create apps, but when I am actually trying hands on, I am falling under this memory trap. So I want to make sure before I commit onto something which I am comfortable to work on along with my team. Appreciate responses. Many Thanks
|
So I was wondering is there any other option I missed out setting to and I don't know if anyone else has come across this problem. Grails shouldn't need that much memory for a simple application. Locally, 256M of heap should be fine.
Are you using the Ubuntu PPAs? Are you using OpenJDK rather than the Sun JVM? Which version of Ubuntu? I'm wondering whether this is a platform issue. Are you able to try on a different OS? Peter Peter Ledbrook Grails Advocate SpringSource - A Division of VMware |
|
this is really interesting. Do you think you can upload an example application so we can digg a bit into it?
It's kind of a pet peeve of mine to investigate these issues. Also please provide the java -version output for us.
thanks. gert
On Wed, May 25, 2011 at 12:51 AM, Peter Ledbrook <[hidden email]> wrote:
-- ------------------------------------------------------------ Lead Developer - Fiehnlab, UC Davis gert wohlgemuth [hidden email] work: http://fiehnlab.ucdavis.edu/staff/wohlgemuth phone: (530) 383-0974 coding blog http://codingandmore.blogspot.com ------------------------------------------------------------ you're "a long time dead", as they say |
|
In reply to this post by srisris
Hey Guys,
I develop grails applications on Ubuntu on a regular basis, and have not run into this problem. My first guess would be the use of OpenJDK (Ubuntu ships with OpenJDK by default) instead of the Sun / Oracle JDK. You can find more info about configuring various JDK's in Ubuntu at: https://help.ubuntu.com/community/Java Good Luck! -Mike On Wed, May 25, 2011 at 3:44 AM, srisris <[hidden email]> wrote: Hi Peter, |
|
In reply to this post by srisris
Hi,
Please upload a copy of your app so we can help you find where the leak is coming from
================================ Giancarlo Angulo ================================ -----|-^_^X@^_^,=====|+^_^X~_~@----- ================================ On Wed, May 25, 2011 at 3:44 PM, srisris <[hidden email]> wrote: Hi Peter, |
|
In reply to this post by Mike Powers
I am currently on the new version of ubuntu which is Ubuntu 11.04 and I have downloaded and configured Sun JDK EE 1.6. At work I use windows 7 and I just created a test helloworld app with spring security plugin and searchable plugin and again saw the system monitor it takes up huge memory. I may be the only odd one out but I will be posting my application and configuration stuff once I get back home.
|
|
In reply to this post by Mike Powers
Mike I use Sun JDK 1.6 and not Open JDK you mentioned. I have read the difference before I actually started working on grails so I am pretty confident I use the one from Sun
|
|
In reply to this post by Giancarlo Angulo
Please find attached zip of my application I am currently working on while learning. Appreciate for your help
funtweeter.zip |
|
In reply to this post by Gert Wohlgemuth
Please find the image of my java -version output. Also in the same thread I uploaded my application zip file. Appreciate for your help.
Thanks
|
|
In reply to this post by srisris
Please find attached zip of my application I am currently working on while I just can't reproduce this. I recommend you try running jconsole against the Grails process and having a look at the memory usage. I'm definitely not seeing steady growth in the heap.
Do you have GRAILS_OPTS or JAVA_OPTS set with a low maximum memory? Peter -- Peter Ledbrook Grails Advocate SpringSource - A Division of VMware |
|
I read somewhere about GRAILS_OPTS settings which will help the performance, but it didnt effect anything to the issue I am having. How do i run the jconsole. BTW I installed a javamelody plugin will that be of any use?
|
|
> I read somewhere about GRAILS_OPTS settings which will help the performance,
> but it didnt effect anything to the issue I am having. How do i run the > jconsole. BTW I installed a javamelody plugin will that be of any use? JavaMelody will allow you to see your memory usage, so yes, it should be of use. To run jconsole, simply type "jconsole" at the command line :) As long as your JDK's bin directory is on the path, you'll have 'jconsole'. You will need to identify which of the processes is Grails, but it's usually not hard unless you have lots of Java processes running. Peter -- Peter Ledbrook Grails Advocate SpringSource - A Division of VMware --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
