Search found 110 matches
- 23 Sep 2012, 21:21
- Forum: SFS2X Questions
- Topic: System memory always reaching 100% after 24 hours
- Replies: 4
- Views: 5575
Re: System memory always reaching 100% after 24 hours
Thanks for the prompt reply. I found threads about PermGen errors but that is not visible on my logs so I suspected something on the heap as well. That I am creating dynamic objects and JVM is not clearing them because it is still in use and my application seems to be working as the memory is big en...
- 23 Sep 2012, 18:36
- Forum: SFS2X Questions
- Topic: how to stop message:USER_COUNT_CHANGE
- Replies: 10
- Views: 11684
Re: how to stop message:USER_COUNT_CHANGE
Hi Lapo, I have the same problem, how do I define this from the server side? I am using this method to create my room with custom settings: private void createGameRoom(User owner, Zone zone, String name) throws SFSCreateRoomException { ISFSGameApi gameApi = SmartFoxServer.getInstance().getAPIManager...
- 23 Sep 2012, 18:05
- Forum: SFS2X Questions
- Topic: System memory always reaching 100% after 24 hours
- Replies: 4
- Views: 5575
System memory always reaching 100% after 24 hours
Hi SFS2X Team, I have a very weird problem on my SFS2X server. I am using an Ubuntu server with 24GB of RAM. I have allocated 8GB for SFS2X. Things are working fine but I found a very strange behavior on my system memory after 24 hours of operation. As you can see below, the system memory is reachin...
- 15 Sep 2012, 13:06
- Forum: SFS2X Questions
- Topic: 32-Bit or 64-Bit Extensions?
- Replies: 1
- Views: 3500
32-Bit or 64-Bit Extensions?
I have 64-bit SFS2X running on 64-bit Linux platform with 64-bit Java 6 installed on it.
I have just noticed now that I have been compiling my SFS extension using 32-bit Java using Windows 7.
Should I compile it using 64-bit Java instead?
Will it improve the performance or will it be the same?
I have just noticed now that I have been compiling my SFS extension using 32-bit Java using Windows 7.
Should I compile it using 64-bit Java instead?
Will it improve the performance or will it be the same?
- 19 Aug 2012, 18:29
- Forum: SFS2X Questions
- Topic: JAVA 7 Installation
- Replies: 1
- Views: 3393
JAVA 7 Installation
Hi SFS Team, I believe the latest SFS 2X 2.2.0 version supports JAVA 7 and I am just wondering how to install it on the server. Do I just need to replace the jre/ folder inside the SFS 2X installation folder with the jre of JAVA 7? I am using Eclipse to develop my custom SFS Zone Extension and I alr...
- 25 Jun 2012, 11:36
- Forum: SFS2X Questions
- Topic: java.lang.OutOfMemoryError: PermGen space
- Replies: 2
- Views: 4515
Re: java.lang.OutOfMemoryError: PermGen space
Do you have an extension attached to your dynamically created rooms? If so, consider chaning your game logic and just have those repeated tasks done on the Main Extension. I have encountered this error on my quest to find the best approach to implement game logic and thread safety.
- 22 Jun 2012, 18:14
- Forum: SFS2X Questions
- Topic: About @Instantiation
- Replies: 22
- Views: 26326
Re: About @Instantiation
I'm trying to figure out how to make my extension a single instance, and cant seem to get it working. i figured it would just be somthing like @Instantiation(InstantiationMode.SINGLE_INSTANCE) public class DisconnectHandler extends BaseServerEventHandler { @Override public void handleServerEvent(IS...
- 02 Jun 2012, 13:53
- Forum: SFS2X C# API
- Topic: Will SFS2X still work if I export my game to a Flash build?
- Replies: 4
- Views: 7707
Re: Will SFS2X still work if I export my game to a Flash bui
I've actually not tried the Flash export yet myself (our own game in development doesnt build with the Flash export - Unitys fault). BB is fully expected to work. And when you deploy to iOS/Android it definitely should work - tested! /Thomas Thanks ThomasLund, I will just try it myself on the lates...
- 01 Jun 2012, 08:22
- Forum: SFS2X C# API
- Topic: Will SFS2X still work if I export my game to a Flash build?
- Replies: 4
- Views: 7707
Re: Will SFS2X still work if I export my game to a Flash bui
Bax wrote:Everything should work as expected.
Thanks Bax. Similarly, if I deploy to an iOS or Android device, SFS will still work without changing anything on my code right?
- 31 May 2012, 18:37
- Forum: SFS2X C# API
- Topic: Will SFS2X still work if I export my game to a Flash build?
- Replies: 4
- Views: 7707
Will SFS2X still work if I export my game to a Flash build?
I want to start building a game using the Unity 3.5 platform but have some questions regarding the build process with SFS2X: 1) If I used the SFS2X API for Unity and then build my game and target Flash Player for my output, will SFS2X still work? 2) Is the BlueBox fully supported now on the Unity We...
- 30 May 2012, 10:54
- Forum: SFS2X Questions
- Topic: Java extension and USER_DISCONNECT event help
- Replies: 5
- Views: 8043
Re: Java extension and USER_DISCONNECT event help
Dude, As much as possible, do not re-invent the wheel :) I think what you are trying to achieve is already being done by the Room logic. If you want data shared by users, then just make a Room Variable available for them so that each one can have access to the shared variable by just listening for t...
- 21 May 2012, 11:39
- Forum: SFS2X Questions
- Topic: Best approach to implement thread-safe Helper methods
- Replies: 4
- Views: 5773
Re: Best approach to implement thread-safe Helper methods
Yes, the objects passed (the game state actually) is unique to each call, so the helper methods are working on different objects passed to it at a time. Thanks again for clarifying my doubts. You have just saved me from hours of code modification which can lead to bad design
- 21 May 2012, 11:09
- Forum: SFS2X Questions
- Topic: Best approach to implement thread-safe Helper methods
- Replies: 4
- Views: 5773
Re: Best approach to implement thread-safe Helper methods
1) So this is the way to go and I am happy to know that what I am doing is the best approach. Thanks. 2) Yes, the Stack only holds references to the objects, the actual objects are created on the Heap. What I am trying to point out is, if two threads called my helper method at the same time, they wo...
- 21 May 2012, 08:18
- Forum: SFS2X Questions
- Topic: Scheduled Task getting stopped automatically
- Replies: 10
- Views: 12868
Re: Scheduled Task getting stopped automatically
Thanks Lapo. I think I am gonna try your approach and see what happens.
- 21 May 2012, 07:21
- Forum: SFS2X Questions
- Topic: Best approach to implement thread-safe Helper methods
- Replies: 4
- Views: 5773
Best approach to implement thread-safe Helper methods
Currently, I have helper or utility methods defined on my Main Extension. The methods just receive objects, perform some tasks based on the parameters of the object and then returns a value. The method will not modify any parameter or field of the object passed to it. And each caller pass a new inst...