SFS and Jelastic Socket not bound? CPU usage increased?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Zenith
Posts: 18
Joined: 09 Oct 2017, 09:57

SFS and Jelastic Socket not bound? CPU usage increased?

Postby Zenith » 19 Nov 2017, 18:07

Hi,

I have deployed SFS on Jelastic.


Image

Is this much consumption when no game is running fine?
It shows like 330 MB memory is being used. Which means a minimum of three cloudlets as each cloudlet is 128 mb of RAM. Is this normal and I should reserve 3 cloudlets?


I get this error in the SFS boot logs.
Was not able to bind socket
No bound sockets! Check the boot logs for possible problems!

Code: Select all

19 Nov 2017 | 17:48:47,936 | INFO  | main | bootLogger |     | TCP Selector opened
19 Nov 2017 | 17:48:47,945 | INFO  | main | bootLogger |     | UDP Selector opened
19 Nov 2017 | 17:48:47,950 | INFO  | main | bootLogger |     | AcceptSelector opened
19 Nov 2017 | 17:48:47,963 | [color=#FF0000]WARN[/color]  | main | bootLogger |     | Was not able to bind socket: { 0.0.0.0:9933, (Tcp) }
19 Nov 2017 | 17:48:47,967 | [color=#FF0000]WARN[/color]  | main | bootLogger |     | Was not able to bind socket: { 0.0.0.0:9933, (Udp) }



19 Nov 2017 | 17:48:47,980 | INFO  | main | bootLogger |     | SocketAcceptor initialized
19 Nov 2017 | 17:48:47,980 | [color=#FF0000]ERROR[/color] | main | bootLogger |     | No bound sockets! Check the boot logs for possible problems!
19 Nov 2017 | 17:48:47,980 | INFO  | main | bootLogger |     | [[[ ===--- Boot sequence complete ---=== ]]]


Then in the SFS Admin I can see this-->

Image
So like 60% is being used for SocketReader.
Just want to confirm if this is normal?

I guess these all might be okay but just want to confirm as this is first time I am using Jelastic and SFS.

The game is connecting to localhost still which is due to ports issue I guess. Any suggestions on fixing it up.
Regards.
User avatar
Lapo
Site Admin
Posts: 19741
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS and Jelastic Socket not bound? CPU usage increased?

Postby Lapo » 20 Nov 2017, 08:34

Hello,
Zenith wrote:Hi,

I have deployed SFS on Jelastic.


Image

Is this much consumption when no game is running fine?
It shows like 330 MB memory is being used. Which means a minimum of three cloudlets as each cloudlet is 128 mb of RAM. Is this normal and I should reserve 3 cloudlets?

yes it looks normal. Keep in mind that 330MB includes the operating system and all its services, which is what is taking up most of the RAM

I get this error in the SFS boot logs.
Was not able to bind socket
No bound sockets! Check the boot logs for possible problems!
[code]19 Nov 2017 | 17:48:47,936 | INFO | main | bootLogger | | TCP Selector opened
19 Nov 2017 | 17:48:47,945 | INFO | main | bootLogger | | UDP Selector opened
19 Nov 2017 | 17:48:47,950 | INFO | main | bootLogger | | AcceptSelector opened
19 Nov 2017 | 17:48:47,963 | WARN | main | bootLogger | | Was not able to bind socket: { 0.0.0.0:9933, (Tcp) }
19 Nov 2017 | 17:48:47,967 | WARN | main | bootLogger | | Was not able to bind socket: { 0.0.0.0:9933, (Udp) }

Is it possible that another server instance is running?
This kind of errors usually appear only when trying to launch a 2nd instance while another one is already running.

So like 60% is being used for SocketReader.
Just want to confirm if this is normal?

Yes this is normal.
This is the % value of each thread within the server. This means that if your server is consuming 1% of the CPU, 60% of that 1% is that thread (socket reader)

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Zenith
Posts: 18
Joined: 09 Oct 2017, 09:57

Re: SFS and Jelastic Socket not bound? CPU usage increased?

Postby Zenith » 20 Nov 2017, 08:47

I have noticed a few issues. I will write a detailed post .

Actually the Game is still pointing to the Localhost only.

I will make another post with detail.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 15 guests