Search found 30 matches
- 15 Jun 2021, 08:44
- Forum: SFS2X Questions
- Topic: Metaspace is only increasing, not decreasing.
- Replies: 5
- Views: 4768
Re: Metaspace is only increasing, not decreasing.
Hi, you can deploy the Room Extension(s) under the extensions/__lib__/ to avoid the problem entirely. See the documentation here: http://docs2x.smartfoxserver.com/ExtensionsJava/advanced-concepts#classLoading With this approach the Room Extension classes will be loaded by the top class loader. Chee...
- 15 Jun 2021, 01:07
- Forum: SFS2X Questions
- Topic: Metaspace is only increasing, not decreasing.
- Replies: 5
- Views: 4768
Re: Metaspace is only increasing, not decreasing.
I don't implement a custom destroy() method. The fact is that the GC is called but the metaspace is not cleaned up. after few days will throw exception java.lang.OutOfMemoryError: Compressed class space. I am very tired about this problem. When a room is removed I see that the objects that follow it...
- 14 Jun 2021, 03:07
- Forum: SFS2X Questions
- Topic: Metaspace is only increasing, not decreasing.
- Replies: 5
- Views: 4768
Metaspace is only increasing, not decreasing.
Metaspace is only increasing, not decreasing. Running for 1 week will be full of memory. My game room is constantly being created and deleted. Room creation configuration cfg.setDynamic(true); cfg.setAutoRemoveMode(SFSRoomRemoveMode.NEVER_REMOVE); I remove the room using the method SmartFoxServer.ge...
- 07 Nov 2020, 10:45
- Forum: SFS2X Questions
- Topic: I have a memory leak because the SFSRoom object is not deleted
- Replies: 1
- Views: 2822
I have a memory leak because the SFSRoom object is not deleted
My smartfox2x server is having a memory leak. Memory only increased, not cleaned. When I test with VisualVM I notice the number of SFSRoom objects does not decrease when I remove the game room (I checked on the admin tools page). I'm using code: sfsApi.removeRoom (room, fireClientEvent, fireServerEv...
- 12 Oct 2020, 03:11
- Forum: SFS2X Questions
- Topic: Why smartfox server consumes so much virtual memory?
- Replies: 2
- Views: 3592
Re: Why smartfox server consumes so much virtual memory?
Hi, what you have marked on the screenshot is the Virtual Memory usage which is not very meaningful and it can be deceiving. If you want to learn more about memory management under Linux I suggest taking a look at this article: https://stackoverflow.com/questions/561245/virtual-memory-usage-from-ja...
- 12 Oct 2020, 03:08
- Forum: SFS2X Questions
- Topic: Help me figure out the cause of this exception
- Replies: 2
- Views: 3492
Re: Help me figure out the cause of this exception
Lapo wrote:Hi,
this is garbage data coming from a client. In other words a client that does not speak the SFS2X protocol has probably connected and tried to send data. This in turn causes an error as the byte stream does not contain data that is understood by SFS2X.
Cheers
Thank you
- 10 Oct 2020, 04:58
- Forum: SFS2X Questions
- Topic: Help me figure out the cause of this exception
- Replies: 2
- Views: 3492
Help me figure out the cause of this exception
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Exception: java.lang.IllegalArgumentException Message: Illegal request size: 0 bytes, from: { Id: 45, Type: DEFAULT, Logged: No, IP: 141.98.83.11:64126 } Sender: { Id: 45, Type: DEFAULT, Logged: No, IP: 141.98.83.11:64126 } +--- ...
- 09 Oct 2020, 16:39
- Forum: SFS2X Questions
- Topic: Why smartfox server consumes so much virtual memory?
- Replies: 2
- Views: 3592
Why smartfox server consumes so much virtual memory?
I've just downloaded, unpacked and ran. My server only runs smartfox server..
Can someone explain it to me?
Can someone explain it to me?
- 04 Sep 2020, 04:48
- Forum: SFS2X Questions
- Topic: Is my thread count too much?
- Replies: 1
- Views: 3563
Is my thread count too much?
Is my thread count too much? Is my stream not releasing? what should I do? sorry i used google translate
- 25 Aug 2020, 04:49
- Forum: SFS2X Questions
- Topic: Unity, socket or websocket
- Replies: 1
- Views: 3812
Unity, socket or websocket
I am using an Unity client. Should I use Socket or Websocket with the Bluebox for the connection. Which one has better performance? What are the advantages and disadvantages? sorry for my English not good.
- 30 Jul 2020, 09:06
- Forum: SFS2X Questions
- Topic: How to enable x-forwarded-for for version 2.13 (Java)
- Replies: 4
- Views: 22049
Re: How to enable x-forwarded-for for version 2.13 (Java)
I was successful. thank you very much
- 30 Jul 2020, 01:34
- Forum: SFS2X Questions
- Topic: How to enable x-forwarded-for for version 2.13 (Java)
- Replies: 4
- Views: 22049
Re: How to enable x-forwarded-for for version 2.13 (Java)
Hi, the feature was available with patch 2.13.6. Make sure you have that release (or higher). As far as I can remember there's nothing to do in order to "activate" it, it's already active (for both Websocket and BlueBox). Cheers The version I am using is currently 2.13.0. What do I have t...
- 29 Jul 2020, 11:10
- Forum: SFS2X Questions
- Topic: How to enable x-forwarded-for for version 2.13 (Java)
- Replies: 4
- Views: 22049
How to enable x-forwarded-for for version 2.13 (Java)
how to enable x-forwarded-for for version 2.13 (Java).
I'm not ready to update to version 2.14
I'm not ready to update to version 2.14
- 22 Dec 2017, 09:45
- Forum: Server Side Extension Development
- Topic: How to change the http log file?
- Replies: 4
- Views: 6572
Re: How to change the http log file?
Open the jetty.xml file under www/cfg/ Look for this block of XML, approximately at line 152: <!-- =========================================================== --> <!-- Configure Request Log --> <!-- =========================================================== --> <Ref id="requestLog"> <Set...
- 22 Dec 2017, 08:13
- Forum: Server Side Extension Development
- Topic: How to change the http log file?
- Replies: 4
- Views: 6572
Re: How to change the http log file?
Lapo wrote:Hi,
what do you mean by "change it"?
Change the name of the log file? Change the logging levels? Can you be more specific?
Thanks
Change the name of the log file and location saved. Thanks