-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Randir,
On 5/5/14, 6:07 AM, Randhir Singh wrote: > Thanks Chris for your answer. > > I researched a lot and want to try out an option for OOME: > > The JAVA_OPTS variable in $CATALINA_HOME/bin/startup.sh has the > value as: You should use CATALINA_OPTS. Read the comments at the top of bin/catalina.sh to see what the difference is. Also, you should set these environment variables in bin/setenv.sh (which you may have to create) instead of modifying startup.sh directly. It will make upgrades much easier. > JAVA_OPTS="$JAVA_OPTS -Xms1303m -Xmx1303m -XX:MaxPermSize=256m > -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399" > > I checked for free space on the VM instance with Red Hat Linux as > the OS on which the Tomcat is hosted with a total memory of 19 GB, > I found that there is around 8 GB of free space in the server. 8GiB free memory or disk? > I am planning to increase the memory allocation for Heap size and > PermGen size to almost double as below: > > JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -XX:MaxPermSize=512m > -Dcwom.bl.ip=127.0.0.1 -Dcwom.bl.port=1399" > > I hope, this should avoid the hang-up issues where Tomcat does not > seem to respond. I plan to implement this in the UAT environment at > first and see how it goes. If the problem is GC-related, then the only conditions under which things will improve by increasing memory are if you were running right under the heap ceiling you had imposed upon yourself and GC had to run a lot in order to keep up. Remember that GC-time is related to the number of useful references in the heap, so if you have a large heap with lots of long-lived objects, GC will work "harder" (to a point, with generational GC). > There is another thing I wanted to try. We have RHEL 5.8 Beta > (Tikanga) version and lot of updates from Red Hat are pending which > can update the version to RHEL 5.10 (Tikanga). Would this patching > help as lot of updates are pending? I have no idea. I know virtually nothing about RHEL and what changes will be coming. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTZ7YXAAoJEBzwKT+lPKRY0lEP/RZXARhKvU5dBelQYELwWHGh TJnDgBIJTK/M7+OhheMqN14M+EXK0aodPNhC1aCTtotdey+2V1WcQoqitcMDjOKj dyVE5jvwkoEFgWJ32MjpHflFufup4IzEpx+Q/sXLCqnBXwVdSSAOJiPTfdU9iO9c i4W6i8twQXvbDn1GKNBDTwfKAZGAVakVV7JeH2ollQkUvyBkdEkKHmZKWmiFdNxK rvZSe3mdHsmOmsenMzzlcAZh4JD9QKX/0TQPzpP8sKoxfpCS0rcQSoYvBWY2rYul gwiYm2PlCRLw+wpPdSA13CAQLRio51LQA1VTVMhzOtGOUKWIvJEba94lEZ1IWIsL zn1yn8CTN7czY7CoL0N/lsJBCg9Jnrut4W0e9Z8vhY1lz0pexGmwv58pdnAT69NC 5A45wOY5VxJVGfNRNbMh2sbdi0MloF6EsbdZipwMpyfBCf3ulL2c1Am/PmnoxSQn lTnEeoiuJcaOJjBFU/KVl2I77Hn1/QuJEflCDm9fm85CMbIWHHJCmbR9yVdS/yPi O6jjEaVGNPNI5pwtoEiNT+78G0UDyDIfbFjIuGS2Gz3cNH2WW6tiYw+Ivy5aciAg iIpdxVFcdL6ZoXr6eJEkvfyUwv85z9DonK3SkoRtNVVKPXNHQNLlpl6WHfCcHd/1 Dc3HguzxCOYu2+2jsuZg =tcDx -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org