|
Anybody running a grails app in an Amazon Linux micro-instance with Tomcat?
I think the ~600MB of memory is not enough for a "simple" grails application. My app makes Tomcat hangs :-(
---- Marcelo Carvalho Fernandes +55 21 8272-7970 |
|
Yes I do. It took me a few hours of tinkering with it before it stabilized. Also, I have no load (only 1 or 2 users). Tips: after installing my app, I had to bounce the server to make it work. Also until I properly set EBS monitoring URL, environment was unstable. On 6/5/2012 10:58 PM, Marcelo Carvalho Fernandes wrote: > Anybody running a grails app in an Amazon Linux micro-instance with Tomcat? > > I think the ~600MB of memory is not enough for a "simple" grails > application. My app makes Tomcat hangs :-( > > > > ---- > Marcelo Carvalho Fernandes > +55 21 8272-7970 > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by mcf
I'm running a cluster of 4 EC2 micros, with a tomcat6 in each.
The servers are running for months, w/o noticeable delays or problems. The only strange thing I saw was the increased startup time, it takes like 3-5 min, whereas on a normal server or dev-machine the tomcat starts in 30 sec. |
|
Yes, I have a Grails app running in an EC2 Micro Instance. It works fine, although I haven't subjected it to serious loads at all. I too have observed the slow startup, but that aside, I've not seen any problems with it. It's running with the OpenJDK as well.
|
|
Well, we DID see a considerable load.
Our app was exposed as a banner on a web-site with PR7. Each node got like 20 req per second. Each of them could be processed within 10 millisec with no signs of performance degradation. |
|
Do you have any special configuration for Xms, Xmx or PermSize?
The load/bootstrap time of my app is not an issue. My problem is that right after the load the server is like this: Cpu(s): 0.0%us, 2.0%sy, 8.7%ni, 80.5%id, 8.7%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 609656k total, 578916k used, 30740k free, 2280k buffers
Swap: 0k total, 0k used, 0k free, 60664k cached ...and Tomcat hangs in the next few minutes later. ---- Marcelo Carvalho Fernandes +55 21 8272-7970 On Wed, Jun 6, 2012 at 6:13 AM, Konstantyn Smirnov <[hidden email]> wrote: Well, we DID see a considerable load. |
|
There is this message in /var/log/messages:
Jun 5 23:20:44 ip-10-252-11-20 kernel: [3228479.712007] Killed process 21832 (java) total-vm:1456184kB, anon-rss:505096kB, file-rss:0kB
It says the total memory was 1.456.184kB (~1.5GB) but since the machine is a micro instance it only has 609MB of memory. Is Tomcat trying to alocate 1.5G and it hangs because there isn't such available memory?
---- Marcelo Carvalho Fernandes +55 21 8272-7970 On Wed, Jun 6, 2012 at 7:53 AM, Marcelo Carvalho Fernandes <[hidden email]> wrote: Do you have any special configuration for Xms, Xmx or PermSize? |
|
In reply to this post by mcf
This is from my /etc/default/tomcat6 file:
JAVA_OPTS="-Djava.awt.headless=true -Xms128m -XX:PermSize=128m -XX:MaxPermSize=144m -server -Dcom.sun.management.jmxremote" I can't recall off the top of my head if anything there is non-standard. |
|
I should have said that this is a Grails 1.3.7 app I'm running - this may be significant (I don't know if Grails 2 apps require more memory, but they may).
|
|
I'm running both 1.3 and 2.0 apps. They behave the same way (long bootup time)
|
|
Does this mean that
1) on instance start it takes a while, but it doesn't really matter because then user requests are handled quickly or, 2) that each user request has a long bootup time so grails on Amazon is unworkable? I've heard that some platforms like Google App Engine spin up on each request and die after some period of un-use. But I think Amazon instances are spun up via a command but then stay alive afterwards. On Jun 6, 2012, at 9:32 AM, Konstantyn Smirnov wrote: > I'm running both 1.3 and 2.0 apps. They behave the same way (long bootup > time) > > -- > View this message in context: http://grails.1312388.n4.nabble.com/Anybody-running-a-grails-app-in-an-Amazon-micro-instance-tp4629622p4629658.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 Konstantyn Smirnov
What about memory usage/consumption?
---- Marcelo Carvalho Fernandes +55 21 8272-7970 On Wed, Jun 6, 2012 at 10:32 AM, Konstantyn Smirnov <[hidden email]> wrote: I'm running both 1.3 and 2.0 apps. They behave the same way (long bootup |
|
The tomcat runs with the default JAVA_OPTS settings (I didn't tune them)
here's the output of top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10941 root 20 0 1238m 347m 4624 S 0.0 58.3 65:20.76 java |
|
What is interesting in my case is that the same application that in my local windows machine doesn't use more than 130MB of memory uses more than 400MB when running in a Amazon Linux micro instance.
Have any of you seen such behavior?
---- Marcelo Carvalho Fernandes +55 21 8272-7970 On Wed, Jun 6, 2012 at 12:57 PM, Konstantyn Smirnov <[hidden email]> wrote: The tomcat runs with the default JAVA_OPTS settings (I didn't tune them) |
|
On 06/06/2012 17:38, Marcelo Carvalho Fernandes wrote:
> What is interesting in my case is that the same application that in my > local windows machine doesn't use more than 130MB of memory uses more > than 400MB when running in a Amazon Linux micro instance. > > Have any of you seen such behavior? 32 vs 64 bits maybe? Ian -- Ian Roberts | Department of Computer Science [hidden email] | University of Sheffield, UK --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Konstantyn Smirnov
What image/appliance are people starting with?
--------------------------- www.maf.org/rhoads www.ontherhoads.org On Wed, Jun 6, 2012 at 9:57 AM, Konstantyn Smirnov <[hidden email]> wrote: The tomcat runs with the default JAVA_OPTS settings (I didn't tune them) |
|
Ubuntu 10.10 Server, in my case. Works fine, and have so far not had cause to upgrade it to Natty.
|
|
In reply to this post by Ian Roberts
This is my case. I have a local windows xp while the Amazon Linux is 64bits. Will copy the source code and generate the war on the server side. Have you seen this before? --------------------- On 6 Jun 2012 14:08, "Ian Roberts" <[hidden email]> wrote:
On 06/06/2012 17:38, Marcelo Carvalho Fernandes wrote: |
|
In reply to this post by bdrhoa
I'm using Amazon Linux and was going to create an Ubuntu 12 but will check the 32 x 64 bits thing first. --------------------- On 6 Jun 2012 16:10, "Brad Rhoads" <[hidden email]> wrote:
What image/appliance are people starting with? |
|
We are... What's the issue? On Jun 6, 2012, at 7:49 PM, Marcelo Carvalho Fernandes <[hidden email]> wrote:
|
| Powered by Nabble | Edit this page |
