Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037305Retail ModulesWeb POSpublic2017-11-16 07:392017-12-22 08:42
Production - Confirmed Stable
RR16Q2 [^]
0037305: Java Heap Memory can rise on login if batch size is big
Java Heap Memory can rise on login if batch size is big and you have a big batch size and an small xmx.
With a lot of products, big batch size (> 60000) and an small xmx in CATALINA_OPTS (1GB)
Try to login in WebPOS
You will have a Java heap memory.
No tags attached.
blocks defect 0037301 closed marvintm Java Heap Memory can rise on login if batch size is big 
Issue History
2017-11-16 10:27marvintmTypedesign defect => backport
2017-11-16 10:27marvintmTarget Version => RR17Q3.2
2017-12-19 18:40marvintmAssigned ToRetail => marvintm
2017-12-19 18:50hgbotCheckin
2017-12-19 18:50hgbotNote Added: 0101149
2017-12-19 18:50hgbotStatusscheduled => resolved
2017-12-19 18:50hgbotResolutionopen => fixed
2017-12-19 18:50hgbotFixed in SCM revision => [^]
2017-12-22 08:42migueldejuanaReview Assigned To => migueldejuana
2017-12-22 08:42migueldejuanaNote Added: 0101196
2017-12-22 08:42migueldejuanaStatusresolved => closed
2017-12-22 08:42migueldejuanaFixed in Version => RR17Q3.3

2017-12-19 18:50   
Repository: retail/backports/3.0RR17Q3.2/
Changeset: 3840f870f2cb804eacae68a42667e1d72c8e8c28
Author: Antonio Moreno <antonio.moreno <at>>
Date: Tue Dec 19 18:50:14 2017 +0100
URL: [^]

Fixed issue 37305. Avoid usage of intermediate StringWriters so that response doesn't take too much heap.
> The main problem is that the two intermediate StringWriters accumulate the whole response before it is sent back to the client. This causes Java Heap memory problems in case the batching is set to a big amount, and concurrency is high.
> The solution is to remove these intermediate StringWriters. We have verified that the messages are not lost even in the case of low level database problems, because the client correctly detects the problem, and doesn't remove the records, and instead tries to send them again in the next synchronization.

M src/org/openbravo/mobile/core/process/
M src/org/openbravo/mobile/core/process/
2017-12-22 08:42