diff options
Diffstat (limited to 'client/go/internal/admin/jvm/mem_options.go')
-rw-r--r-- | client/go/internal/admin/jvm/mem_options.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/go/internal/admin/jvm/mem_options.go b/client/go/internal/admin/jvm/mem_options.go index f58bb141587..d3b0d44c677 100644 --- a/client/go/internal/admin/jvm/mem_options.go +++ b/client/go/internal/admin/jvm/mem_options.go @@ -1,4 +1,4 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Author: arnej package jvm @@ -14,7 +14,9 @@ func (opts *Options) getOrSetHeapSize(prefix string, heapSize AmountOfMemory) Am var missing bool = true for _, x := range opts.jvmArgs { if strings.HasPrefix(x, prefix) { - val, err := ParseJvmMemorySpec(strings.TrimPrefix(x, prefix)) + x = strings.TrimPrefix(x, prefix) + x = strings.TrimPrefix(x, ":") + val, err := ParseJvmMemorySpec(x) if err == nil { missing = false heapSize = val |