Hello.
There is a button on Admin.swf that Restart the SFS.
On the other hand you could do ./sfs stop and ./sfs start on your commands console.
Both options restart the socket server. My question is:
Is it exactly the same thing? Is there any difference between making a restart with Admin.swf or "manually" writing ./sfs stop and start command?
On the other hand, sometimes I even reboot the whole computer and then I do ./sfs start. Is that the same as making ./sfs stop? I mean: Rebooting against ./sfs stop. Is it the same?
Maybe the question could seem not too inteligent, but the reason is that I have read that some "soft" restarts only call for methods init() and destroy(), but not "switch off/on" the application (for example making a restart from an extension). So, I have 3 kinds of restart and I'm not sure the differnces between them.
Thank you a lot.
Ways to restart
-
- Posts: 69
- Joined: 21 Dec 2007, 17:19
- Contact:
Hi,
there's only two ways for restarting:
Soft restart: via the admin tool Restart Button. This will reset the server without stopping the JVM. All connections will be closed and and all Zones will be destroyed and recreated again.
Hard restart: can be done via the Windows service admin console or via the ./sfs restart command (equivalent to ./sfs stop + ./sfs start)
This will destroy the current JVM process and start a new one.
When to use one or the other is not particularly important, unless the JVM is misbehaving or you have encountered a fatal JVM error such as an OutOfMemory error. In those cases only a Hard restart will resume the situation.
As for restating extensions during development you can configure the server to reload them automatically without having to restart SmartFox.
Or you can reload them manually from the Admin Tool
hope it helps
there's only two ways for restarting:
Soft restart: via the admin tool Restart Button. This will reset the server without stopping the JVM. All connections will be closed and and all Zones will be destroyed and recreated again.
Hard restart: can be done via the Windows service admin console or via the ./sfs restart command (equivalent to ./sfs stop + ./sfs start)
This will destroy the current JVM process and start a new one.
When to use one or the other is not particularly important, unless the JVM is misbehaving or you have encountered a fatal JVM error such as an OutOfMemory error. In those cases only a Hard restart will resume the situation.
As for restating extensions during development you can configure the server to reload them automatically without having to restart SmartFox.
Or you can reload them manually from the Admin Tool
hope it helps
-
- Posts: 69
- Joined: 21 Dec 2007, 17:19
- Contact:
Great answer! Thank you.
Sometimes I don't do "clearInterval" after some "setInterval". I make a soft restart and...
Does this restart clear all the intervals not previously closed?
Because, it seems that a soft restart doesn't clear everything.
Thank you.
Ps: I know that a well programmed code doesn't have this problem, since I can programme in the "destroy()" place, but my question is in case I don't make anything on "destroy()".
Sometimes I don't do "clearInterval" after some "setInterval". I make a soft restart and...
Does this restart clear all the intervals not previously closed?
Because, it seems that a soft restart doesn't clear everything.
Thank you.
Ps: I know that a well programmed code doesn't have this problem, since I can programme in the "destroy()" place, but my question is in case I don't make anything on "destroy()".
-
- Posts: 69
- Joined: 21 Dec 2007, 17:19
- Contact:
-
- Posts: 69
- Joined: 21 Dec 2007, 17:19
- Contact:
-
- Posts: 69
- Joined: 21 Dec 2007, 17:19
- Contact:
Please, allow me one more question.
I know that soft restart calls all the destroy() methods before of every extension before calling again all the init() methods.
I need to know if hard restart do it too. I mean, if I type ./sfs restart, will SFS call all the destroy() methods of every extension or will simply swith off the software and switch it on again?
Thank you again.
I know that soft restart calls all the destroy() methods before of every extension before calling again all the init() methods.
I need to know if hard restart do it too. I mean, if I type ./sfs restart, will SFS call all the destroy() methods of every extension or will simply swith off the software and switch it on again?
Thank you again.
Re: Ways to restart
How do you do this on a MAC.
Right now the server is initializing, and nothing can be don't to reset it.
I have tried to restart the sos and the server
Right now the server is initializing, and nothing can be don't to reset it.
I have tried to restart the sos and the server
Re: Ways to restart
Hi,
this is an 11 year old post. Are we still talking about SFS PRO 1.x or SFS2X?
What is the "sos"?
Thanks
this is an 11 year old post. Are we still talking about SFS PRO 1.x or SFS2X?
I have tried to restart the sos and the server
What is the "sos"?
Thanks
-
- Posts: 1
- Joined: 25 Nov 2021, 11:04
Re: Ways to restart
I know that soft restart calls all the destroy() methods before of every extension before calling again all the init() methods. video streaming
-
- Posts: 1
- Joined: 22 Feb 2022, 12:01
Re: Ways to restart
sometimes I even reboot the whole computer and thenI doeuwatchfree ./sfs start. Is that the same as making ./sfs stop? I mean: Rebooting against ./sfs stop. Is it the same?
Last edited by Arsh_gabbi on 26 Mar 2022, 12:20, edited 2 times in total.
Re: Ways to restart
To restart SmartFoxServer you don't need to restart the whole machine.
If the server installed as a service running in your OS you can restart the service and that's it.
Cheers
If the server installed as a service running in your OS you can restart the service and that's it.
Cheers
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 51 guests