Every OS has its own prerequisites to run Tomcat 7 and the system has to be tuned based on the application's requirement, but there are some similarities between each OS. Let's discuss the common module used for optimization of Tomcat 7 for every OS. The OS plays a vital role for increasing the performance. Depending on the hardware, the application's performance will increase or decrease. Some of the points which are very much useful for the application are:
In case you are using a 64 bit JVM edition, then you have to add 30 percent more memory as compared to a 32 bit JVM edition.
These values are defined in /etc/sysctl.conf
. If you need to update any of the above parameters then update it in etc/sysctl.conf
, otherwise all the details will be flushed after the reboot of the OS.
[root@localhost bin]# cat /proc/meminfo
MemTotal: 1571836 kB
MemFree: 886116 kB
Buffers: 74712 kB
Cached: 430088 kB
SwapCached: 0 kB
Active: 308608 kB
Inactive: 331944 kB
HighTotal: 671680 kB
HighFree: 97708 kB
LowTotal: 900156 kB
LowFree: 788408 kB
SwapTotal: 2040212 kB
SwapFree: 2040212 kB
Dirty: 36 kB
Writeback: 0 kB
AnonPages: 135764 kB
Mapped: 54828 kB
Slab: 33840 kB
PageTables: 3228 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2826128 kB
Committed_AS: 496456 kB
VmallocTotal: 114680 kB
VmallocUsed: 4928 kB
VmallocChunk: 109668 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 4096 kB
13.59.218.147