|
Hi,
I have an existing AMD 6-core, 16G Windows 2008 system with Microsoft SQL Server running Tomcat6 to host two grails applications on the same Tomcat, which interact with each other. I would like to know if anyone has reliably used 8G or more in this sort of situation, and what sort of performance issues this might cause. Thanks. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
I've never deployed a grails app in this type of situation, but I have deployed many grails apps and typically 512MB of memory is all it needs.
I would think that 8G is more than enough. Hope this helps! Dean Del Ponte
On Tue, Oct 25, 2011 at 3:47 PM, Ken Roberts <[hidden email]> wrote: Hi, |
|
Typically, you'll want to scale out (more vms with a load balancer) instead of up (more CPU/Memory) with a Java webapp due to the overhead of garbage collection. If you're dealing with anything over 2G, be prepared to do some tweaking to the garbage collection settings. Java 7 has a new GC which may be useful. I haven't used it in a production environment yet:
http://blogs.oracle.com/theplanetarium/entry/java_vm_trying_a_new On Tue, Oct 25, 2011 at 9:51 PM, Dean Del Ponte <[hidden email]> wrote: I've never deployed a grails app in this type of situation, but I have deployed many grails apps and typically 512MB of memory is all it needs. |
|
In reply to this post by Ken Roberts (grails)
So far my apps use memory not over from 1 Gb in 4 core cpu. Running Postgres 8 in Ubuntu. Its for small user base(only 10-20 users). It would be cool if you could blog your experience :)
|
|
some of our apps, which include large attachment and data
synchronizations handled in grails between several databases sometimes exceed more than 5GB ram. And specially with thousands of cron jobs tend to crash from time to time. Needless to say we are still in the tuning stage and hope to get it down to about 2GB usage. But sofar we have not seen anything from stopping us to use 8GB of ram for grails. On Wed, Oct 26, 2011 at 3:05 AM, jonS <[hidden email]> wrote: > So far my apps use memory not over from 1 Gb in 4 core cpu. Running Postgres > 8 in Ubuntu. Its for small user base(only 10-20 users). It would be cool > if you could blog your experience :) > > -- > View this message in context: http://grails.1312388.n4.nabble.com/Tomcat6-grails-1-3-7-and-large-memory-tp3938210p3940036.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 > > > -- ------------------------------------------------------------ Lead Developer - Fiehnlab, UC Davis gert wohlgemuth work: http://fiehnlab.ucdavis.edu/staff/wohlgemuth phone: (530) 383-0974 coding blog: http://codingandmore.blogspot.com linkedin: http://www.linkedin.com/profile/view?id=28611299&trk=tab_pro --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Thanks to everyone for their posts, and please keep them coming. I'm still interested in hearing your experiences with large memory and large data.
This is a large, complex database with a large, complex application. There are millions of rows of data which is read/write, insert and delete. One of the applications is a maintenance app which truncates, recreates indexes and lots of other things which normal apps don't do. We thought we could keep memory usage low, but it's turning out to not be the case, at least for now. Thanks. On Oct 26, 2011, at 5:17 AM, wohlgemuth wrote: > some of our apps, which include large attachment and data > synchronizations handled in grails between several databases sometimes > exceed more than 5GB ram. And specially with thousands of cron jobs > tend to crash from time to time. Needless to say we are still in the > tuning stage and hope to get it down to about 2GB usage. > > But sofar we have not seen anything from stopping us to use 8GB of ram > for grails. > > On Wed, Oct 26, 2011 at 3:05 AM, jonS <[hidden email]> wrote: >> So far my apps use memory not over from 1 Gb in 4 core cpu. Running Postgres >> 8 in Ubuntu. Its for small user base(only 10-20 users). It would be cool >> if you could blog your experience :) >> >> -- >> View this message in context: http://grails.1312388.n4.nabble.com/Tomcat6-grails-1-3-7-and-large-memory-tp3938210p3940036.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 >> >> >> > > > > -- > ------------------------------------------------------------ > Lead Developer - Fiehnlab, UC Davis > > gert wohlgemuth > > work: > http://fiehnlab.ucdavis.edu/staff/wohlgemuth > > phone: > (530) 383-0974 > > coding blog: > http://codingandmore.blogspot.com > > linkedin: > http://www.linkedin.com/profile/view?id=28611299&trk=tab_pro > > --------------------------------------------------------------------- > 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 |
|
When I have different applications, I usually isolate them into their own tomcat instances (8080, 8081, etc.) so I can tweak each accordingly.
You may also want to evaluate the usage of a domain model with something that needs to bulk process large numbers of records. Depending on what you actually need to do, it may be much more efficient to inject the dataSource and use the groovy Sql API to iterate through the result set instead of reading everything into memory. Also check your eager fetching to make sure you aren't reading more data than you need. For my development environment, I turn on logSql to ensure the queries aren't doing anything I'm not expecting (happens much more than you think). On Wed, Oct 26, 2011 at 7:58 AM, Ken Roberts <[hidden email]> wrote: Thanks to everyone for their posts, and please keep them coming. I'm still interested in hearing your experiences with large memory and large data. |
| Powered by Nabble | Edit this page |
