My problem can be described as follows:
The vPlugin uses timers to refresh data. However, sometimes the request from vClient will not come to vCenter Server. The same code, if I use a browser instead of vClient to visit vCenter Server, there is no this problem. If I use vClient, put vPlugin code on a web server instead of vCenter Server, there is also no this problem. That means only when using vClient to send request to vCenter Server with multiple timers, my code will encounter this problem, which causes the refresh not stable.
If there is only a timer, it seems there is no this question. I have wrote some simple code for test, and I think this problem is related with number of Timer, type of Timer and time interval of Timer.
The following is part of the test code and result, the version of vClient and vCenter Server is 5.1.0-799735.
|Number of Timer||Type of Timer||Time Interval||Request Type||Result||Request Total||Request Missed||Test Code||Result Log|
|2||setInterval & setTimeout|
|Miss request sometimes||37||3||test1.jsp, dispatcher_test1.jsp||log1.txt|
|3||setInterval & setTimeout|
|Miss request sometimes||27||2||test2.jsp, dispatcher_test1.jsp||log2.txt|
Does anyone has encountered the same problem? Or some suggestion?
I will be very grateful for your feedback.
Attach my test files.