EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB439771: MicroStrategy Web application hangs intermittently and error "Protocol error. PeekInt failed. Reason: Buffer too small" and "java.lang.OutOfMemoryError: Java heap space" in Web Server Log - 9.x and 10.x


Community Admin

• Strategy


This article describes one of the reason why MicroStrategy Web application could hang intermittently and works well for some time after restart of the server and how to fix it.

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


Comment

0 comments

Details

Knowledge Article

Published:

March 5, 2018

Last Updated:

December 31, 2018