Search found 7 matches

by Tristan
15 Nov 2010, 13:47
Forum: Server Side Extension Development
Topic: SmartFoxServer#getUserById(Integer) not synchronized ?
Replies: 7
Views: 12348

My problem is not about getting a connecting user but getting a user who is logged in since many minutes.


User 1 login:
* canLogin add the user to the list
* usersById map look like this:
[1 => User1]

User 2 login:
* canLogin add the user to the list
* usersById map look like this:
[1 => User1; 2 ...
by Tristan
15 Nov 2010, 12:37
Forum: Server Side Extension Development
Topic: SmartFoxServer#getUserById(Integer) not synchronized ?
Replies: 7
Views: 12348

Hello,

No the synchronization issue is not at the Room level but in SmartFoxServer class.

Case 1:
* If in a room you have user 1, 2 and 3.
* if you call SmartFoxServer#getUserById(Integer) with parameter 1, 2 and 3, it returns the users.

Case 2:
* If in a room you have user 1, 2 and 3.
* A user 4 ...
by Tristan
02 Nov 2010, 12:52
Forum: Server Side Extension Development
Topic: SmartFoxServer#getUserById(Integer) not synchronized ?
Replies: 7
Views: 12348

SmartFoxServer#getUserById(Integer) not synchronized ?

Hello,

I'm using SmartFoxServer PRO 1.6.9 and I'm working on java extensions.

I encounter some issues with the method Room#getAllUsers(). Sometime it does not return all the users of the room. This method seems to use SmartFoxServer#getUserById(Integer) to resolve User objects from user id ...
by Tristan
11 Oct 2010, 15:08
Forum: Server Side Extension Development
Topic: room.removeUser and InternalEvent
Replies: 0
Views: 3474

room.removeUser and InternalEvent

Hello,

I have an extension (zone level extension) which handle logOut, userExit, userJoin and userLost events. I use those events to monitor user movements.
I miss some userExit or userLost or logOut because I see more userJoin than (userExit + userLost + logOut).
It seems that room.removeUser ...
by Tristan
20 Sep 2010, 07:10
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Java Garbage Collector unloading python package classes
Replies: 11
Views: 16505

No I don't have any specific issue with those objects. But I thought that python was used only for python extension.

If the server needs python for it's own tasks, it's normal.


Thank you for your answer.
by Tristan
17 Sep 2010, 12:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Java Garbage Collector unloading python package classes
Replies: 11
Views: 16505

I use smartfox pro 1.6.9

My server config file contains only my java extensions (I also removed from the Server directory all sample extensions; my Server directory contains only mandatories file and libs). I can confirm with the admin tool, only my zones are loaded and the extension tab is empty ...
by Tristan
17 Sep 2010, 09:28
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Java Garbage Collector unloading python package classes
Replies: 11
Views: 16505

Hello,

I encounter the same kind of problem; the server create and never remove the references on python code.

I don't use at all python extensions I use only java extensions. The only other running extension is "$dmn". I spent lot of effort to have thousand connected users with very few memory ...