Search found 43 matches

by Blank_101
31 Aug 2007, 23:35
Forum: SmartFoxServer 1.x Discussions and Help
Topic: How do i get bytes size of the data sent by sfs to client?
Replies: 3
Views: 7018

Each message comes in as a String. Since each character in a string is 1 byte, just use String.length of each incoming message to determine the byte size of the message. You will probably need to add a trace somewhere inside the SmartFoxClient.as file to catch the incoming message.
by Blank_101
24 Aug 2007, 19:22
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Excessively High Sockets Connected Count
Replies: 4
Views: 8256

Ok, it's been a little while now and I've tried playing with all these settings.

1. If you have a very high maxIdleTime value in your config the server won't auto-disconnect users.

Max user idle time is 180 seconds.

2. You can use the IP filter to avoid too many connections from 1 single IP ...
by Blank_101
04 Aug 2007, 20:00
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Obtain IP address without PRO Server
Replies: 6
Views: 11192

What about storing a cookie on the client's machine using the SharedObject class. That way each client could communicate their unique address each time they connect.
by Blank_101
27 Jul 2007, 21:14
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Excessively High Sockets Connected Count
Replies: 4
Views: 8256

1. If you have a very high maxIdleTime value in your config the server won't auto-disconnect users.
Are you refering to the MaxUserIdleTime value? If so mine is set to 60 seconds.

I'll look into the problem some more.
by Blank_101
27 Jul 2007, 00:15
Forum: SmartFoxServer 1.x Discussions and Help
Topic: SFS Crashes
Replies: 1
Views: 4852

SFS Crashes

Ever since I started threading my server side code the sfs service crashes every now and then. The occurances are rare, but none-the-less need to be prevented.

By using the error reports that are created when the server crashes I was able to find some similarities between the crashes. Here are ...
by Blank_101
26 Jul 2007, 22:37
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Excessively High Sockets Connected Count
Replies: 4
Views: 8256

Excessively High Sockets Connected Count

Hey,

I am using sfs 1.5.5 and recently the sockets connected count on my admin tool has been really high. I'm talking like 15000 sockets connected for 900 users. Any ideas on what might be causing this? Could someone be trying to attack the server? Can there be any adverse effects of a really high ...
by Blank_101
01 Jul 2007, 21:41
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

Another update: We upgraded to sfs 1.5.5 and a null user came up again.
by Blank_101
22 Jun 2007, 18:33
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

An update:

The problem came up again the other day. I managed to isolate the room in which the null users were located. I came up with 3 null user instances inside my main auto-join room. I loaded the admin tool like you asked and checked the auto-join room. The admin tool would only load the user ...
by Blank_101
14 Jun 2007, 16:04
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

Ok, the problem came up again yesterday. I actually managed to pinpoint the room the null user was located. I ran this code to find the culprit in the room:

for (var i in userList) {
trace(userList[i]);
}

Sure enough I got an output similar to this:

...
user
user
user
user
null
user
user
user ...
by Blank_101
13 Jun 2007, 21:02
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

Still looking for a solution to this.
by Blank_101
13 Jun 2007, 19:18
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Processor Load and Multiple Processors
Replies: 3
Views: 7075

The Admin tool Load numbers don't show processor usage, they show the internal load of the server. How much busy the server is at doing things.
Together with the queues info this gives you a rough idea of what the server is doing, and if it's getting very busy the queue stats will tell you where ...
by Blank_101
11 Jun 2007, 22:28
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Processor Load and Multiple Processors
Replies: 3
Views: 7075

Processor Load and Multiple Processors

Hey Lapo,

We've been having some inconsistant readings between the sfs admin tool and our server's diagnostic tools. Currently we run 4 processors and the server's diagnostic tools are showing that the JRE is using the majority of our processing power. I do not have access to view these stats so I ...
by Blank_101
10 Jun 2007, 06:32
Forum: SmartFoxServer 1.x Discussions and Help
Topic: MMORPG compatibility
Replies: 5
Views: 11610

by Blank_101
07 Jun 2007, 16:44
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

I am not sure if I understand:
this code is correct
for (var i = zone.getChannelList().iterator(); i.hasNext(); ) {
var user = _server.getUserByChannel(i.next());
if (user != null) {
userList[user.getUserId()] = user;
}
}
You have to check for null users because you're trying to see if a ...
by Blank_101
05 Jun 2007, 18:49
Forum: SmartFoxServer 1.x Discussions and Help
Topic: NULL user objects
Replies: 11
Views: 16840

When cycling through the active user list sometimes I come across a null user.
Client side or server side?
How do you get the user list?

Server side. I keep a list of active users on my zone extension.

To populate the list I cycle through all users on extension init():

for (var i = zone ...