Sometimes not receive Logout response

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

Post Reply
Madhusmita
Posts: 37
Joined: 08 Jan 2014, 11:28

Sometimes not receive Logout response

Post by Madhusmita »

Created one Java Test client for load testing:

Just testing for sequence of events such as connection, login and logout.
And calculate the time spent for each event for each client.

When number of clients is less than 20 it works fine sometimes even 50 its works fine(I got response for each event). But sometimes I am not getting the response for logout on the event listener for some clients(client > 20).
As we don't have any events like LOGOUT_ERROR its really difficult to find out the reason for why I am not able to get logout event response for some clients.

Also I checked that I am able to successfully connect and login. Also able to send the logout request.
But sometimes miss some logout response for some clients. Checked the Admin tool, on Zone Monitor section zero users. So, that means user logged out. But don't know what is the reason I miss SFSEvent.LOGOUT response sometimes.

Can you please suggest, what could be the reason?


I am using SFS java Client API: 1.3.0
SmartFoxServer_2X version 2.8.4
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Sometimes not receive Logout response

Post by Lapo »

Without knowing how your test works it is difficult to guess what might be going on.
One important point is that if you're running many clients in the same JVM you should make sure you're not overloading the client machine. Make sure not to saturate more than 90% of the CPU and RAM of the test machine.

The same goes for the network resources. For example testing over a wifi or the internet will easily saturate the client's bandwidth.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Sometimes not receive Logout response

Post by Lapo »

As regards the BuddyListError you have posted.. again pretty difficult to understand without knowing the details of how this might be reproduced.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply