You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Naga Ramesh <na...@manthan.com> on 2018/04/26 06:15:31 UTC
tomcat 7 and 8 version memory setting
Team,
I have configured the tomcat7 & 8 versions on our AWS environment, but how
much memory need to give min and max for each tomcat. ( max to max how much
need to give the max vlaue)
Server: AWS linux
RAM: 128GB
I have given min:4096M and max:32768M
Regards,
Ramesh R
Re: tomcat 7 and 8 version memory setting
Posted by Suvendu Sekhar Mondal <su...@gmail.com>.
Ramesh,
On Thu, Apr 26, 2018 at 11:45 AM, Naga Ramesh <na...@manthan.com> wrote:
> Team,
>
>
>
> I have configured the tomcat7 & 8 versions on our AWS environment, but how
> much memory need to give min and max for each tomcat. ( max to max how much
> need to give the max vlaue)
>
>
>
> Server: AWS linux
>
> RAM: 128GB
>
>
>
> I have given min:4096M and max:32768M
>
IMO, without analyzing the application's heap usage pattern, it's very
hard to speculate what should be the ideal heap size for any
application. If you set too low values, you might ended up seeing
frequent GCs and in worst case - OutOfMemory. If you go for a very
high value, and your application's requirement is much lesser than
that, then you have lots of unused memory(which you can use in
different purpose). As you have already setup a min/max value, I will
strongly suggest you to look closely at the heap usage for at least
one week. You can get that information in GC log(hopefully you are
logging it). After that you can set min/max heap size to a value which
is 20-30% more than your max heap usage. That will give your app some
head room so that in emergency situation(like very large request
processing or sudden spike in user traffic) your app behaves normally.
Thanks!
Suvendu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org