Skip to Content

One fine day you you as a BO Admin will find the Tomcat is going down frequently ot couple to few times a week. And you may not have any clue what’s going.

In our case we had this issue and hence i thought to share it with you all.


This is likely due to the compression bug in tomcat .

Or check the logs and see if there is any indication of a problem with max permgen being reached (OOM – out of memory).



As a resolution First thing is to disable compression in server.xml (/path/to/tomcat/server.xml ) – Look for the connectors that have

compression=on and change it to compression=off .

Second thing to do will be to up the max permgen space for Tomcat. This can typically be done in the environment shell script (env.sh/setenv.sh) .


Knowing all these, we modified the server.xml from Tomact/conf/server.xml to off the compression. From compression=on to compression=off.

We cleared out the cache of tomcat Tomcat/work/catalina/localhost.


Then, we were able to login to CMC. 🙂


Then we changed the value for -Xmx to 4096 and added one parameter

-Xms to 256 in following variable-

JAVA_OPTS in tomcat/bin/setenv.sh script.

For more , we can refer SAP note-1750952 – BI4 Setting JAVA_OPTS for tomcat

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Moritz Hoedel

    One thing to add to this is that -xms should always equal the -xmx setting.

    And please add some SAP Note/KBA references to your posts, if you refer to bugs,

    or values, if you recommend to increase parameters.

    This makes it easier.

    Tomcat Compression:

    1906557 – Tomcat crash due to EXCEPTION_ACCESS_VIOLATION in the zip.dll with Java_java_util_zip_ZipEntry_initFields

    PermGen space:

    -XX:MaxPermSize=1024M works well for us (on Windows).

    And even if it’s not affecting Tomcat stability, you should also increase the Tomcat Thread stack size while doing this, at least if you have bigger WebI reports:

    1871649 – BI 4 : Error when opening Webi report “SDK – failed to get document output file (Error: RWI 00314)”

    We have doubled the default value, since then we had no RWI 00314s anymore.

    Krgds

    Moritz

    (0) 

Leave a Reply