Thanks Noel, Andrei,
The cache is split into 16 Segments each segment tracks memory used
and Max cache size using longs.
Looking at the code the overflow would happen if the size of a page or an
Value is over 2GB, the memory used is stored as an in - or in the case of
a page
if two Values of 1GB are added to a page, you cannot split a page which has
1GB and the second value is added before checking the size which could
cause the
overflow.
I suspect someone has added very large values which has triggered this.
cheers
Mark
case PUT: {
value = decisionMaker.selectValue(result, value);
p = p.copy();
if (index < 0) {
p.insertLeaf(-index - 1, key, value);
int keyCount;
while ((keyCount = p.getKeyCount()) > store.getKeysPerPage()
|| p.getMemory() > store.getMaxPageSize()
&& keyCount > (p.isLeaf() ? 1 : 2)) {
On Sat, Oct 24, 2020 at 3:18 AM Andrei Tokar <[email protected]> wrote:
> I guess, you next step could be to reduce configured cache size to some
> reasonable number.
> What makes you believe that you actually need such huge cache?
> If you have configured MVStore cache size to be 4Gb, how can you expect
> usedMemory field (which is java int) to always stay positive?
>
> On Friday, October 23, 2020 at 2:15:44 PM UTC-4 Noel Grandin wrote:
>
>> That looks like an integer overflow somewhere.
>>
>> I would tweak the source code in the places that modify that field, to
>> dump stack traces, and work backwards.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/h2-database/eaf4273c-c2d7-41dc-b77b-5e76ff9c2aafn%40googlegroups.com
> <https://groups.google.com/d/msgid/h2-database/eaf4273c-c2d7-41dc-b77b-5e76ff9c2aafn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
*MARK MC KEOWN ARCHITECT*
*E* [email protected]
--
<https://www2.wandisco.com/ldm-trial>
THIS MESSAGE AND ANY ATTACHMENTS
ARE CONFIDENTIAL, PROPRIETARY AND MAY BE PRIVILEGED
If this message was
misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not
waive any confidentiality or privilege. If you are not the intended
recipient, please notify us immediately and destroy the message without
disclosing its contents to anyone. Any distribution, use or copying of this
email or the information it contains by other than an intended recipient is
unauthorized. The views and opinions expressed in this email message are
the author's own and may not reflect the views and opinions of WANdisco,
unless the author is authorized by WANdisco to express such views or
opinions on its behalf. All email sent to or from this address is subject
to electronic storage and review by WANdisco. Although WANdisco operates
anti-virus programs, it does not accept responsibility for any damage
whatsoever caused by viruses being passed.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/h2-database/CALK6y0VA%2BdZhh2uktY9Mv7onhFxZTKAuzoHeAfHg3e0bRBn6bg%40mail.gmail.com.