Search found 22668 matches
- 03 Apr 2024, 07:13
- Forum: SFS2X Questions
- Topic: Increase RAM capacity for SFS server?
- Replies: 1
- Views: 122
Re: Increase RAM capacity for SFS server?
Hi, memory management in Java is counter-intuitive. I don't think your system is lacking RAM, in fact the JVM can use 2+ GB but it has only effectively allocated ~700MB which is enough. If you want you can force the JVM to use more RAM but it's not necessarily going to change much, as your applicati...
- 02 Apr 2024, 14:19
- Forum: SFS2X Questions
- Topic: LogoutRequest problem
- Replies: 4
- Views: 174
Re: LogoutRequest problem
Hi, I am not sure what you mean by "too manu logout requests". The error reported is triggered by a Login request that arrives at the server when the session is no longer open. Keep in mind that default Session idle time is only 20 seconds, so if your use case requires longer pauses betwee...
- 30 Mar 2024, 10:20
- Forum: SFS2X Questions
- Topic: Login with SSL Secure Login 2.0, using TLS encrypted
- Replies: 2
- Views: 154
Re: Login with SSL Secure Login 2.0, using TLS encrypted
Hi, - For method 1: Is it still safe? I mean sfs2x won't need to use SSL right? Are messages in rooms or private messages secure? Login credentials are safe because an encryption mechanism is used (CHAP, Challenge-Handshake Authentication Protocol). Other messages however are not entirely secure. If...
- 29 Mar 2024, 08:50
- Forum: SFS2X Questions
- Topic: PING_PONG Request 500ms - But the network weather is fine!
- Replies: 3
- Views: 171
Re: PING_PONG Request 500ms - But the network weather is fine!
Hi, the main reason for high lag is usually the client connection, as servers are expected to run in a dedicated data center. What is the current setup of this test you're running? Is SFS2X running in a production environment? What about the clients? Are they connecting from very far away, geographi...
- 28 Mar 2024, 09:45
- Forum: SFS2X HTML5 / JavaScript API
- Topic: delayed room variables update after creation of a new room
- Replies: 6
- Views: 375
Re: delayed room variables update after creation of a new room
A follow-up question: Where and how to set this global flag? On the server side only. You can create a Room Variable from server side and set the isGlobal flag. We don't provide this from client side because it can be easily abused to overload the server, as global variables generate a larger amoun...
- 27 Mar 2024, 16:28
- Forum: SFS2X Questions
- Topic: about extension reload
- Replies: 3
- Views: 171
Re: about extension reload
I think is not class name or similar issues, Is it possible that the class loader is releasing unused classes prematurely? No, there is no such thing. The class loader is supposed to load classes as they are encountered for the first time. The stack trace you have posted shows that the missing clas...
- 27 Mar 2024, 09:02
- Forum: SFS2X Questions
- Topic: about extension reload
- Replies: 3
- Views: 171
Re: About Extension Reloads
Hi,
Check the name of the class that causes the exception and verify that the relative jar file (containing such class) is deployed correctly.
Cheers
2.update something causes a 'java.lang.NoClassDefFoundError'(unload fail) ,
Check the name of the class that causes the exception and verify that the relative jar file (containing such class) is deployed correctly.
Cheers
- 26 Mar 2024, 17:31
- Forum: SFS2X HTML5 / JavaScript API
- Topic: delayed room variables update after creation of a new room
- Replies: 6
- Views: 375
Re: delayed room variables update after creation of a new room
I see. I combined the CreateRoomRequest with the autoJoin option but listened only on the ROOM_ADD event. Could it be that, in addition, I should wait on the ROOM_JOIN event? It depends on what your client logic needs to do. If you need to access RoomVariables then you will need ROOM_JOIN, otherwis...
- 26 Mar 2024, 16:49
- Forum: SFS2X HTML5 / JavaScript API
- Topic: delayed room variables update after creation of a new room
- Replies: 6
- Views: 375
Re: delayed room variables update after creation of a new room
One small addition... RoomVars that have the "global" flag turned on can be accessed from Users not joined in the Room.
Cheers
Cheers
- 26 Mar 2024, 07:46
- Forum: SFS2X Questions
- Topic: High RAM usage when using SmartFox
- Replies: 3
- Views: 209
Re: High RAM usage when using SmartFox
Hi, SmartFoxServer doesn't need much memory to operate even with 1000s of concurrent players. The server will allocate more memory if necessary, otherwise il will use just what is needed. If you want to learn more: https://smartfoxserver.com/blog/sfs2x-memory-settings-and-garbage-collection-part-1/ ...
- 21 Mar 2024, 10:03
- Forum: SFS2X Questions
- Topic: Same machine spec but got different initial max mem heap usage
- Replies: 3
- Views: 192
Re: Same machine spec but got different initial max mem heap usage
Also, if you want to learn more about memory management and settings we have a two part article in our blog, here:
https://smartfoxserver.com/blog/sfs2x-m ... on-part-1/
https://smartfoxserver.com/blog/sfs2x-m ... on-part-2/
Cheers
https://smartfoxserver.com/blog/sfs2x-m ... on-part-1/
https://smartfoxserver.com/blog/sfs2x-m ... on-part-2/
Cheers
- 21 Mar 2024, 10:02
- Forum: SFS2X Questions
- Topic: Same machine spec but got different initial max mem heap usage
- Replies: 3
- Views: 192
Re: Same machine spec but got different initial max mem heap usage
Hello, without custom memory settings the Java Virtual Machine (JVM) will allocate the heap size dynamically. You can read more on how this works here, for example: https://stackoverflow.com/questions/4667483/how-is-the-default-max-java-heap-size-determined I wouldn't worry too much about this as th...
- 21 Mar 2024, 08:21
- Forum: SFS2X Java / Android API
- Topic: Thread keep increasing and Sudden Jump in heap memory
- Replies: 5
- Views: 748
Re: Thread keep increasing and Sudden Jump in heap memory
Hi, the graph you have posted for the NPC manager shows a normal memory activity for the time interval measured. There is no evidence of an increasing usage of RAM in the diagram. The situation seems the same for thread count, which is quite high, but it's a flat line from start to finish. So I am n...
- 18 Mar 2024, 09:31
- Forum: SFS2X Questions
- Topic: High RAM usage when using SmartFox
- Replies: 3
- Views: 209
Re: High RAM usage when using SmartFox
Hi,
normally SFS2X does not require that much RAM but depending on the amount of traffic and custom server side code you're using it can eat up more resource. Did you change the default memory settings of the server?
If so how?
Thanks
normally SFS2X does not require that much RAM but depending on the amount of traffic and custom server side code you're using it can eat up more resource. Did you change the default memory settings of the server?
If so how?
Thanks
- 13 Mar 2024, 08:48
- Forum: SFS2X Questions
- Topic: Error java.io.IOException: Broken pipe
- Replies: 3
- Views: 224
Re: Error java.io.IOException: Broken pipe
HI, the error in question shouldn't be particularly bad. It is related to Tomcat and by searching the web I came up with these similar issues: https://stackoverflow.com/questions/642061/error-commiting-response-java-io-ioexception-broken-pipe-at-sun-nio-ch-filedisp https://github.com/codecentric/spr...