Search found 191 matches

by tchen
22 Feb 2011, 07:49
Forum: SFS2X Questions
Topic: How much players could it handle?
Replies: 6
Views: 9884

As a follow up, I should mention there are a few 10TB VPS providers out there with relatively good port bandwidth at about 2.0+ MBps sustained, so it's also easy to get bandwidth capacity for 1000+ users.

PM me if you need details.
by tchen
22 Feb 2011, 07:28
Forum: SFS2X Questions
Topic: How much players could it handle?
Replies: 6
Views: 9884

Guestimate (sp) is about 2-7 KBps per player optimized for a simple realtime twitch game. You might be able to get it even lower but for a illustration purposes, lets say you get down to 2 KBps. A Linode server is more transfer limited so you'll likely hit the Linode512 monthly cap of 200GB at about...
by tchen
22 Feb 2011, 07:09
Forum: SFS2X Questions
Topic: Turn based game player timeout
Replies: 4
Views: 7081

Indeed. Runnable tasks do not however get their own thread. They're executed as their delays are triggered. During which time, they occupy one of the threads in the pool. Once they're done, they are taken off that thread, and another takes its place. The documentation refers to resizeThreadPool, whe...
by tchen
22 Feb 2011, 02:05
Forum: SFS2X Questions
Topic: Disconnecting users on failed login
Replies: 2
Views: 4961

Would it work for you if you do the disconnect on the client side in the LOGIN_ERROR event?

The idle kick still cleans it up on the server side, but it probably would still be nice if there was a server side thing explicitly for this - unless the idle connection doesn't count towards a CCU.
by tchen
20 Feb 2011, 17:28
Forum: SFS2X Questions
Topic: Out of memory on new VPS
Replies: 11
Views: 14754

As an update, java wasn't actually installed. Those messages were coming from install4j's bundled jre. It also turns out that 1&1 really means it when they say 512 was the guaranteed RAM. Any allocation above that fails horribly so it didn't take much to break it. You have to have enough free RA...
by tchen
20 Feb 2011, 13:57
Forum: SFS2X Questions
Topic: Turn based game player timeout
Replies: 4
Views: 7081

This might have been what you mean, but just to be clear...

Use the master SmartFoxServer.getTaskScheduler with multiple runnables one per room. This way, you leverage the same thread pool and it doesn't matter how many rooms you have.
by tchen
18 Feb 2011, 17:14
Forum: SFS2X Questions
Topic: Can't login after some time
Replies: 2
Views: 5174

Sounds like something in your custom login extension is starting to throw exceptions after a while. Maybe you're forgetting to release a database resource or something like that? Just to be sure, use a try-catch block around your code and log any exceptions it throws instead of relying on the main c...
by tchen
17 Feb 2011, 21:50
Forum: SFS2X Questions
Topic: Out of memory on new VPS
Replies: 11
Views: 14754

Your guaranteed ram is 512. Then you've really have only 117MB left that you can be sure Java can allocate on that OpenVZ VPS. Allocations between your guaranteed region and burst limit are iffy and can return quite a few failures depending on how loaded the system is. So set Xms and Xmx to somethin...
by tchen
17 Feb 2011, 13:47
Forum: SFS2X Questions
Topic: Out of memory on new VPS
Replies: 11
Views: 14754

Did you reduce the values depending on how much actual free ram you have?

Use free -m and look at the +/- line.

You should also leave some extra room because Java allocates some other stuff (like stack) outside of that heap value.
by tchen
16 Feb 2011, 21:24
Forum: SFS2X Questions
Topic: Extension debugging error
Replies: 10
Views: 12229

I kinda forgot to mention it earlier (sorry), but move the debug options in your batch file to before the -cp option.

:D Don't ask me why.

Code: Select all

java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -cp  ....
by tchen
16 Feb 2011, 20:09
Forum: SFS2X Questions
Topic: Extension debugging error
Replies: 10
Views: 12229

No. The batch file will invoke java directly with the parameters. The standalone.exe doesn't invoke the batch file.
by tchen
16 Feb 2011, 19:51
Forum: SFS2X Questions
Topic: Extension debugging error
Replies: 10
Views: 12229

When you startup via the batch.. do you see

Listening for transport dt_socket at address: 8787

anywhere in the console? Make sure you're not running the sfs2x-standalone.exe because I forgot where my shortcut was pointing and did that myself.
by tchen
16 Feb 2011, 19:14
Forum: SFS2X Questions
Topic: Debian daemon problem
Replies: 7
Views: 10380

Um... if you don't mind doing it another way,

Remove the S99sfs2x and with that link you just placed in /etc/init.d/

Run

Code: Select all

update-rc.d sfs2x defaults


That's more the Debian way of doing things so hopefully it'll just work.
by tchen
15 Feb 2011, 20:22
Forum: SFS2X Questions
Topic: Debian daemon problem
Replies: 7
Views: 10380

I forgot to say, run with sudo (or as root)
by tchen
15 Feb 2011, 19:03
Forum: SFS2X Questions
Topic: Debugging My Extension
Replies: 4
Views: 7776

I checked the documentation to see if there was a way to log debug in a file on the server and I did not see it. I checked the API to see if there was a function to do this and I did not see it. The trace function seemed only relevant to flash users. I checked to see where the main entery point for...

Go to advanced search