KVM Policy for encrypted KVM is taking more than 1sec

Not applicable

Hi All,

I am using KVM policy for encrypted KVM in my API proxy and I noticed that one of the KVM policy is taking more than 1000ms and onepolicy is taking approx 437ms and for me its quite high..

Why is it so?? Has anyone encountered similar problem??

What could be the possible cause??

Below is the code for the two policies :

1. Policy1- More than 1 Sec

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KVM-GetValues" mapIdentifier="mymap">
    <DisplayName>KVM-GetValues</DisplayName>
    <Properties/>
    <ExclusiveCache>false</ExclusiveCache>
    <ExpiryTimeInSecs>300000</ExpiryTimeInSecs>
    <Get assignTo="private.var1" index="1">
        <Key>
            <Parameter>key1</Parameter>
        </Key>
    </Get>
    <Get assignTo="private.var2" index="1">
        <Key>
            <Parameter>kay2</Parameter>
        </Key>
    </Get>
    <Get assignTo="private.var3" index="1">
        <Key>
            <Parameter>key3</Parameter>
        </Key>
    </Get>
    <Scope>environment</Scope>
</KeyValueMapOperations>

Policy 2 - 430ms

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KVM-GetValues" mapIdentifier="mymap_new">
    <DisplayName>KVM-GetValues</DisplayName>
    <Properties/>
    <ExclusiveCache>false</ExclusiveCache>
    <ExpiryTimeInSecs>300000</ExpiryTimeInSecs>
    <Get assignTo="private.var3">
        <Key>
            <Parameter>key3</Parameter>
        </Key>
    </Get>
    <Scope>environment</Scope>
</KeyValueMapOperations>

Attaching the screen-shot from trace session.

4375-kvmissue.png

Please let me know if I am doing sth wrong.

One thing I noticed though, similar policy is taking approx 30ms in free/trial org but taking more time in paid org.

Solved Solved
0 2 322
1 ACCEPTED SOLUTION

Hmm, interesting.

I agree with you: a delay of that long seems like it is too long. It seems to indicate that something is wrong.

I've seen a KVM Get from an encrypted map require 15ms , but not >100ms.

Unfortunately i don't think we can help diagnose this. I suggest that you contact Apigee Support to have them help you diagnose the delay. The support staff will have access to additional diagnostic tools that we do not have.

View solution in original post

2 REPLIES 2

Hmm, interesting.

I agree with you: a delay of that long seems like it is too long. It seems to indicate that something is wrong.

I've seen a KVM Get from an encrypted map require 15ms , but not >100ms.

Unfortunately i don't think we can help diagnose this. I suggest that you contact Apigee Support to have them help you diagnose the delay. The support staff will have access to additional diagnostic tools that we do not have.

@Dino Thanks for your inputs. I just wanted to double check 🙂

I have already raised a support ticket for the same but thought it would be better to check in community as well.