when config_rgma_server creates /etc/tomcat4/tomcat4.conf
it adds a line
JAVA_OPTS="-Xmx1003M"
where the number 1003 is half the size of the memory
but the line used to generate it is
MemSize=`free -m | awk '/^Mem/{print $2/2}'`
On our SE free -m gives 2007 which awk becomes 1003.5 when divided by 2
and java fails to start with the option
-Xmx1003.5M
This might have been noticed before, but am reporting it anyway. The
correction would be as below
MemSize=`free -m | awk '/^Mem/{print int($2/2)}'`
^^^^
Thanks
Kashyap
|