Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

The Ajax request from vClient to vCenter Server will not get response sometimes

$
0
0

When developing plugin, I set a timer to send Ajax request from vClient to vCenter Server.

Sometimes the Ajax request will get no response. I believe it is not the problem about cache, because I have add time stamp at the end of the URL.

I have tried using different Ajax lib to send request, it performed no difference.

All the code is simple and pure, just for test.

The following is my test results.

Timer
Synchronous/Asynchronous
Timer interval
Process time on server
Platform
Description
setIntervalsynchronous20s<1svClient and Vcenter ServerIt is easy to cause vClient no response.
setIntervalasynchronous20s<1svClient and Vcenter Server It's not stable. Sometimes it works well. Sometimes the back-end will miss some requests. I have capture the package and found that package has been sent from vClient. But the ack response from vCenter Server seems strange sometimes.
setTimeoutasynchronous20s<1svClient and Vcenter ServerIt's not stable. Usually, the first request is ok, the second will fail, the third is ok, the fourth will fail. Also, the package has been sent from vClient.
setIntervalasynchronous20s<1sFireFox, tomcatEverything is normal.
setIntervalasynchronous20s<1sIE, tomcatEverything is normal.
setIntervalasynchronous20s<1sFireFox/IE, vCente ServerEverything is normal.
setIntervalasynchronous20s<1svClient, tomcatEverything is normal.

 

What is the problem?


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>