[Solved]Strange SFS problem

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

The thread-dump doesn't show anything out of normality.
Did you inspect the server logs when the problem happened?
You said that during the problem the Admin Tool receives an error:
When I try to connect using the AdminTool, it keeps disconnecting (I believe it's a connection refused or timed out error).
Is there anything logged server side when these attempts are done?
Lapo
--
gotoAndPlay()
...addicted to flash games
HCBMedia
Posts: 14
Joined: 29 Oct 2009, 10:15

Post by HCBMedia »

The problem is clear now. There were some errors on the ethernet interface and connections were not closed correctly. Connections kept open on exceptions and on "close" action - connections hanged in CLOSE_WAIT state.

Besides that, the OutQueueThreads and ExtHandlerThreads parameters were set to 1, but our machine has 4 cores, so we increased these parameters to 4. I don't know if that is somewhere documented, but could be worth documenting?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Lapo
--
gotoAndPlay()
...addicted to flash games
HCBMedia
Posts: 14
Joined: 29 Oct 2009, 10:15

Post by HCBMedia »

Lapo wrote:Yes it is documented here:
http://www.smartfoxserver.com/docs/docP ... Safety.htm
Thanks. It was bad configured than. This topic can be closed.
nitish5221
Posts: 6
Joined: 10 Apr 2020, 11:30

Re: [Solved]Strange SFS problem

Post by nitish5221 »

i need to configure setting on my smartfoxserver so that i trace runtime error via visualvm
please guide me step by step how to configure and connect my smartfoxserver via visualvm
i have have add these line jvm option

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=5000
-Dcom.sun.management.jmxremote.rmi.port=5000
-Dcom.sun.management.jmxremote.rmi.port=5000
-Djava.rmi.server.hostname=[external-ip-address]
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

but failed to connect via visualvm.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [Solved]Strange SFS problem

Post by Lapo »

nitish5221 wrote:i need to configure setting on my smartfoxserver so that i trace runtime error via visualvm
please guide me step by step how to configure and connect my smartfoxserver via visualvm
i have have add these line jvm option

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=5000
-Dcom.sun.management.jmxremote.rmi.port=5000
-Dcom.sun.management.jmxremote.rmi.port=5000
-Djava.rmi.server.hostname=[external-ip-address]
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

but failed to connect via visualvm.
We've already replied via email.
Lapo
--
gotoAndPlay()
...addicted to flash games
HCBMedia
Posts: 14
Joined: 29 Oct 2009, 10:15

Re: [Solved]Strange SFS problem

Post by HCBMedia »

Also, is it necessary to kick this very old thread? @admins perhaps the thread can be closed?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [Solved]Strange SFS problem

Post by Lapo »

Probably not a bad idea. The thread is now locked.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Locked