Re: Question - Tomcat Memory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ramya, On 11/16/17 1:48 PM, Ramya Elineni wrote: > The "Initial memory pool" and "maximum memory pool" are the two > configurations under Tomcat. I couldn't find any detailed > explanation of how Tomcat uses these settings. Others have provided feedback about this question already on this thread . > I request you to please provide me that informaiotn so that I can > have the appropriate values set on a production environment. Nobody can tell you what those values should be in your environment. Please see Savendu's reply for why not. > We are encountering issues where Tomcat is running on the higher > end of the maximum memory pool configuration after about 25 days of > its last restart. Thanks. Is that a problem? If you give Tomcat (really your application) a 64MiB heap and it's using all of that heap, isn't that a good thing? Memory exists to be used, not to be left empty. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAloPKPAdHGNocmlzQGNo cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFiBRQ//f8fvNyOW45tBUfyd feCXODtpJgtMlg5w3eqWpXuH9zSwV885+NZTl4WG0ILw5yPxrAzaWlwnbsXvtDpy VScPuA6hi1BX7Mc1HnXddpUEtWizx2kAzSHoly//OTw9L88jEG7ZQ4sjS5h4nMfz z3BRuJGtg+oQfW+qGOcPwMIcqqJuP/SDGE2jZQ54EhcraLDguTterbWuYHqRcAn8 ZQ9DMav+hV3hqTUfMWkodkldjLoSdcv/fI1FDNhQgblT0LzFgwbSSRrYJbyG7TwV 758zejZfAH/0dJaNbln+Ek1TUceUR7l4OkctAXxA3J1MMqDlcQ7klbINNd/UoCr+ xf/cjhr4XXk2Jex5w4kMdAnF1aYkBoltP3ZSxgpMOZsVGpUey1Yvkh3TPTVOWAZY ChRNqx78oof3FZ9HzqIbqcmOHY8ASoB88ZIgpiZw8MIAGiKouOnI01cFkAzKDqe0 +MwMjFFl8GPhCg5GvT15ZO4kIMsuBnU7d8aMHbpcieqLQDQft4wRBteB56xsnwxM fAea7DF2bbzZ3foEkl67HDYvpDhhBXybKAQfTE0M1ciY7enx2cjQeOtniJhCp0Z4 c8OTONO/rPYgvRY1zy0wuzxykjj7peDQm18dJwebX6APiVS8GmNX9JJ+Qvr4dtx+ D/HnnPRkbpMa0epZo7AKoYNyCAw= =dzXN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question - Tomcat Memory
On Nov 17, 2017 12:18 AM, "Ramya Elineni"wrote: The "Initial memory pool" and "maximum memory pool" are the two configurations under Tomcat. I couldn't find any detailed explanation of how Tomcat uses these settings. Those settings are equivalent to Xms and Xmx values respectively. I request you to please provide me that informaiotn so that I can have the appropriate values set on a production environment. Ideally you should put your app under load testing, measure heap usage and after that you can set min/max heap. If you have lots of available RAM, then you can bumped up the max size by few gigs. But setting arbitrary values without knowing the heap usage pattern can cause unwanted trouble. We are encountering issues where Tomcat is running on the higher end of the maximum memory pool configuration after about 25 days of its last restart. Thanks. What problem(s) are you facing? Long pauses or crashes? Please look at the GC log, if you are printing it already. Otherwise please use visualvm or jconsole to get the memory usage details.
Re: Question - Tomcat Memory
On Thu, Nov 16, 2017 at 1:48 PM, Ramya Elineniwrote: > The "Initial memory pool" and "maximum memory pool" are the two > configurations under Tomcat. I couldn't find any detailed explanation of how > Tomcat uses these settings. I request you to please provide me that > informaiotn so that I can have the appropriate values set on a production > environment. We are encountering issues where Tomcat is running on the higher > end of the maximum memory pool configuration after about 25 days of its last > restart. Thanks. I assume that you're referring to the JVM arguments Xms and Xmx. There isn't a tomcat-specific setting to control JVM memory allocations; you'll need to read more about that in the java documentation of the appropriate JVM, but it isn't much more to the arguments than what you already stated. As far as 'appropriate values' goes, those are subjective because everyone's application's have different memory needs. You will have to do some load testing to determine how much memory your application will need to function properly. If your application is behavior abnormally and there are OutOfMemoryExceptions occurring you can also analyze a heap dump from the event to determine if you have an application problem causing memory issues, or if you just need more memory. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Question - Tomcat Memory
The "Initial memory pool" and "maximum memory pool" are the two configurations under Tomcat. I couldn't find any detailed explanation of how Tomcat uses these settings. I request you to please provide me that informaiotn so that I can have the appropriate values set on a production environment. We are encountering issues where Tomcat is running on the higher end of the maximum memory pool configuration after about 25 days of its last restart. Thanks.