Page 1 of 1

Sometimes not receive Logout response

Posted: 15 May 2014, 05:36
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

Re: Sometimes not receive Logout response

Posted: 16 May 2014, 11:16
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.

Re: Sometimes not receive Logout response

Posted: 16 May 2014, 11:21
by Lapo
As regards the BuddyListError you have posted.. again pretty difficult to understand without knowing the details of how this might be reproduced.