SYMPTOM
Strategy Web application hangs intermittently and works well for some time after restart of the server
The following entries could be seen in Web Logs:
====
<record>
<package>com.Strategy.webapi</package>
<level>SEVERE</level>
<miliseconds>1513855780593</miliseconds>
<timestamp>12/21/2017 09:29:40:593</timestamp>
<thread>234</thread>
<class>MSIMsgBuf</class>
<method>PeekInt</method>
<message>Protocol error. PeekInt failed. Reason: Buffer too small (com.Strategy.webapi.MSTRWebAPIException)</message>
<exception>com.Strategy.webapi.MSTRWebAPIException: Protocol error. PeekInt failed. Reason: Buffer too small
at com.Strategy.webapi.MSIMsgBuf.PeekInt(Unknown Source)
at com.Strategy.webapi.MSIMsgBuf.UnPackBinarySize(Unknown Source)
at com.Strategy.webapi.CDSSMsg.UnPackBinarySize(Unknown Source)
at com.Strategy.webapi.CDSSXMLDocumentServer.GetExportFormatData(Unknown Source)
at com.Strategy.web.objects.RWExportHelperImpl.populateDataCache(Unknown Source)
at com.Strategy.web.objects.RWExportHelperImpl.getData(Unknown Source)
at com.Strategy.web.objects.RWInstanceImpl.getExportData(Unknown Source)
at com.Strategy.web.app.transforms.RWExportTransform.transformForRequestSuccessful(Unknown Source)
at com.Strategy.web.app.transforms.AbstractAppTransform.checkStatus(Unknown Source)
at com.Strategy.web.app.transforms.RWExportTransform.renderShell(Unknown Source)
at com.Strategy.web.app.transforms.AbstractAppTransform.transform(Unknown Source)
at com.Strategy.web.beans.AbstractTransformable.transform(Unknown Source)
at com.Strategy.web.beans.AbstractTransformable.transform(Unknown Source)
at com.Strategy.web.beans.AbstractResultSetBean.doTransform(Unknown Source)
at com.Strategy.web.beans.AbstractResultSetBean.transform(Unknown Source)
at com.Strategy.web.beans.AbstractWebBean.generateOutput(Unknown Source)
at com.Strategy.web.controller.ControllerHelper.handleBinaryPage(Unknown Source)
at com.Strategy.web.controller.GenericWebAppController.processRequest(Unknown Source)
at com.Strategy.web.controller.GenericWebAppController.processRequest(Unknown Source)
</exception>
<userName>Administrator</userName>
</record>
AND:
<record>
<package>com.Strategy.web.controller</package>
<level>SEVERE</level>
<miliseconds>1513870586135</miliseconds>
<timestamp>12/21/2017 13:36:26:135</timestamp>
<thread>528</thread>
<class>GenericWebAppController</class>
<method>processRequest</method>
<message>Java heap space (java.lang.OutOfMemoryError)</message>
<exception>java.lang.OutOfMemoryError: Java heap space
</exception>
</record>
====
CAUSE
Java Heap Size is too small.
SOLUTION
Increase Java Heap Size to resolve the issue.
Please check your Java Virtual Machine manual, or contact vendor for further assistance.
Also, to help with this configuration, following technical article can be verified:
KB6446: How to increase the heap size of the Java Virtual Machine to handle large result data objects with MicroStrategy Web 9.4.1 and above
KB10384: How to increase the Java Heap size in Tomcat Application Server
KB20615: Error “java.lang.OutOfMemoryError: Java heap space” when accessing MicroStrategy Web
Third Party Software Installation WARNING:
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.
KB439771