Frequent javascript policy timeouts

Hi,

We are getting frequent js policy timeouts even after increasing the timeout value to 1 sec which is generally a pretty large value for a simple js policy. For some api proxy we also increased to 5000 ms, but still we get the timeouts

Can anyone suggest what is the cause for this timeout and how to rectify them ?

Thanks

1 1 213
1 REPLY 1

@Ram

The JavaScript policy may timeout under the following circumstances:

1. If there are any extensive computational operations being performed

2. If the response is being parsed to extract any information and the response size is pretty large

3. If the traffic is higher than expected

4. If the Message Processor is running into high CPU/Memory

If you are on Private Cloud, you can check if any of the conditions are leading to timeouts.

If you are on Public Cloud, you can check if any of the first 3 conditions are leading to timeouts.

If you need further assistance, please contact Apigee Support