Search found 43 matches

by brendan7
12 Aug 2016, 16:46
Forum: SFS2X Questions
Topic: Thread scheduling memory leak
Replies: 4
Views: 1581

Re: Thread scheduling memory leak

Thanks Lapo, Yes, I am getting references to tasks, like so ScheduledFuture<?> startupTaskHandle; ScheduledFuture<?> userUpdateTaskHandle; public void scheduleTasks(){ try{ startupTaskHandle = sfs.getTaskScheduler().scheduleAtFixedRate(new StartupTaskRunner(), 1, 999, TimeUnit.SECONDS); }catch(Excep...
by brendan7
11 Aug 2016, 21:04
Forum: SFS2X Questions
Topic: Thread scheduling memory leak
Replies: 4
Views: 1581

Re: Thread scheduling memory leak

Just realized that "destroy()" wasn't being called when the extension was automatically reloaded. I see in some docs that manually reloading is recommended for production environments. I switched it to MANUAL and will update with results.
by brendan7
11 Aug 2016, 20:42
Forum: SFS2X Questions
Topic: Thread scheduling memory leak
Replies: 4
Views: 1581

Thread scheduling memory leak

Has anybody ever had memory problems with this class? java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue Recently I started getting a memory leak whenever I update my extension without restarting SFS. In eclipse MAT I find that class taking up 250MB of memory after about 12 hours. I a...
by brendan7
30 May 2016, 18:47
Forum: SFS2X Questions
Topic: Faking a PUBLIC_MESSAGE to just one user?
Replies: 3
Views: 960

Re: Faking a PUBLIC_MESSAGE to just one user?

Thanks for the quick response Lapo I don't think I am following this. If you need to update your Extension why not just sending a request to the Extension, especially if no other user needs to be involved ... To send a new type of request to the extension, I would have to update the client code. I a...
by brendan7
30 May 2016, 15:43
Forum: SFS2X Questions
Topic: Faking a PUBLIC_MESSAGE to just one user?
Replies: 3
Views: 960

Faking a PUBLIC_MESSAGE to just one user?

I am trying to "fake" a public_message event to just one user. This would be in a room that has multiple users (15+). I am using a SysControllerFilter to filter out certain public messages, using FilterAction.HALT. However, I would still like the "sender" to get the message. Any ...
by brendan7
21 Jan 2016, 00:18
Forum: SFS2X Questions
Topic: SFSUser leak issue
Replies: 2
Views: 927

Re: SFSUser leak issue

Hi Lapo, I am not sure where the other instances are. I am not keeping collections/maps of the instances in the extension code. Maybe the "common path" analysis only tracks chunks of 10,000, since that seems like a very even number. About 500 users were connected at the time of the snapsho...
by brendan7
19 Jan 2016, 20:07
Forum: SFS2X Questions
Topic: SFSUser leak issue
Replies: 2
Views: 927

SFSUser leak issue

We have developed a memory leak in our SFS2X 2.9.0 extension. After about 4-5 days, with 800MB max heap size, we need to restart sfs2x so it doesn't run out of memory. I grabbed a heap dump and loaded it in Eclipse Memory Analyzer, I am getting this leak suspect: MatLeak.png Since this only appeared...
by brendan7
15 Dec 2015, 23:37
Forum: SFS2X Questions
Topic: Reject Public Message in event handler?
Replies: 2
Views: 1234

Re: Reject Public Message in event handler?

Nevermind, just found the SysControllerFilter classes, those seem like the way to go.
by brendan7
15 Dec 2015, 23:29
Forum: SFS2X Questions
Topic: Reject Public Message in event handler?
Replies: 2
Views: 1234

Reject Public Message in event handler?

Does anybody know of a way to let a public message "bounce/ghost" from within the event handler? I would like to apply a filter to messages (not just regex) and make some not appear. public class PublicMessageHandler extends BaseServerEventHandler { @Override public void handleServerEvent(...
by brendan7
19 Aug 2015, 19:13
Forum: SFS2X ActionScript 3 API
Topic: username not updated
Replies: 3
Views: 2889

Re: username not updated

How would one do this if they are using the SignUpAssistantComponent and LoginAssistantComponent? I have some handlers that need to get a user by their name, like this: User otherUser = this.getApi().getUserByName(other_name); However, I noticed in the Zone Monitor that a recently signed-up user sti...
by brendan7
25 May 2015, 21:46
Forum: SFS2X Java / Android API
Topic: Broken Pipe?
Replies: 1
Views: 2255

Broken Pipe?

After the latest client sdk update (v1.6.0) I am having some problems with resuming a connection after it is lost. The application goes through the process of registerring a new SFSClient and event listeners after the connection is lost. Then, as it is trying to reconnect, I am seeing this error a l...
by brendan7
01 Apr 2015, 20:05
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 14298

Re: Loading config file in android

Thanks for the advice, I hadn't noticed the ConfigData object. I had needed sfs-config.xml because file upload getHttpUploadURI() returns null in java without an httpPort configured, but it looks like one can set the httpPort in the ConfigData object and it works. If anybody still needs to use the c...
by brendan7
01 Apr 2015, 15:23
Forum: SFS2X Java / Android API
Topic: Loading config file in android
Replies: 17
Views: 14298

Re: Loading config file in android

Does anybody know the default location for sfs-config.xml on android?
by brendan7
31 Mar 2015, 20:23
Forum: SFS2X Questions
Topic: File upload confusion
Replies: 3
Views: 1203

Re: File upload confusion

Found the problem.

I was not using a sfs-config.xml file on the client side -- hadn't needed to until now. Once adding that file, everything works as expected.

Thanks for the help!
by brendan7
31 Mar 2015, 18:38
Forum: SFS2X Questions
Topic: File upload confusion
Replies: 3
Views: 1203

Re: File upload confusion

Thanks for the help. The LOGIN event has already fired for the user, and the user is in a room. Still getting null. HTTP is turned on for the web server in the admin console. This is what the server.xml web server section looks like: <webServer> <isActive>true</isActive> <blueBoxPollingTimeout>26</b...

Go to advanced search