Search found 77 matches

by Democre
05 Apr 2011, 19:01
Forum: Job offers and requests
Topic: Large Job
Replies: 8
Views: 3778

I would think that you would also need a SFS developer as well. The AS client would talk to SFS which would talk to the database The PHP client could then talk directly to database. Or you could scrap PHP and use jsps/servlets and talk to SFS instead of database. I assume you want a website to provi...
by Democre
05 Apr 2011, 16:48
Forum: SFS2X Questions
Topic: [CONTRIB]Groovy SFSObjects
Replies: 3
Views: 4119

SFSArrayEnabler: package com.pillar4.disco.enablers import com.smartfoxserver.v2.entities.data.ISFSArray import com.smartfoxserver.v2.entities.data.ISFSObject import com.smartfoxserver.v2.entities.data.SFSArray /** * (c) 2011 Pillar 4 Entertainment */ class SFSArrayEnabler { static def ...
by Democre
05 Apr 2011, 16:46
Forum: SFS2X Questions
Topic: [CONTRIB]Groovy SFSObjects
Replies: 3
Views: 4119

SFSObjectEnabler: package com.pillar4.disco.enablers import com.smartfoxserver.v2.entities.data.ISFSObject import com.smartfoxserver.v2.entities.data.ISFSArray import com.smartfoxserver.v2.entities.data.SFSArray /** * (c) 2011 Pillar 4 Entertainment */ class SFSObjectEnabler { static de...
by Democre
05 Apr 2011, 16:44
Forum: SFS2X Questions
Topic: [CONTRIB]Groovy SFSObjects
Replies: 3
Views: 4119

[CONTRIB]Groovy SFSObjects

First, I realize this isn't exactly the right place to post this, but it'll do until a more appropriate place gets set up prereqs - SFS2X RC2a - Groovy 1.7.10 summary This is a pair of groovy classes which enable a per instance pretending of properties. The init methods check to see if the methods a...
by Democre
02 Apr 2011, 16:45
Forum: SFS2X Questions
Topic: MySQL firewall issues
Replies: 2
Views: 1366

Murmur, We were getting that error at one point. For us it was unrelated to firewall issues though. We were using prepared statements and not closing the statements properly. It didn't happen everytime, more usually the first time a connection was used after restart. Our theory was that somehow the ...
by Democre
01 Apr 2011, 14:48
Forum: SFS2X Questions
Topic: different between number of users logged in and session
Replies: 5
Views: 2128

I do notice that Total CCU and sessions is the same count. 1019 (CCU) = 970 (socket sessions) + 49 (http sessions) Users logged in is strange. I can see NPC count is 0. Are you somehow creating users on the server that are not NPC? Are you somehow logging users in multiple zones (I would think this ...
by Democre
01 Apr 2011, 02:34
Forum: SFS2X Questions
Topic: SFS2X communicates with web?
Replies: 7
Views: 2821

Can you give me any example about servlet/jsp deployed in Jetty can connect SFS2X? Here's a simple servlet written in groovy that merely lists the zones in your smartfoxserver instance. You can do the exact same thing in java, it just takes a little more code: import com.smartfoxserver.v2.SmartFoxS...
by Democre
31 Mar 2011, 04:58
Forum: SFS2X C# API
Topic: How to send and receive classes
Replies: 3
Views: 1833

There really is no direct way of sending classes between the two. You'd have to marshall your classess into and out of SFSObjects.

The SFSObjects are the objects sent in messages to/from the server.
by Democre
30 Mar 2011, 21:35
Forum: SFS2X Questions
Topic: Custom Extension+Filter
Replies: 7
Views: 3286

Filters work for Extension requests not for generic System requests such as Public Message, is this clear to you? Lapo I would suggest changing the documentation, as it seems to contradict what you said. Advanced Topics->Server-ide Extensions @Extension Filters in the first paragraph: they are exec...
by Democre
11 Mar 2011, 19:40
Forum: SFS2X Questions
Topic: java.lang.OutOfMemoryError: PermGen space
Replies: 15
Views: 5917

Thanks Lapo! It just worked for me to move all enums to _lib_ and haven't had to restart in 2 months now. Maybe there is something else that was going on; I did move other code related to the room extension out as well. Maybe it's a different version of the JVM. I'm using the one provided on my EC2 ...
by Democre
10 Mar 2011, 18:18
Forum: SFS2X Questions
Topic: java.lang.OutOfMemoryError: PermGen space
Replies: 15
Views: 5917

Sorry, did not notice the link, my fault. I will take a closer look at the article I guess I should not have hidden the link so well ;) http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java To be clear it is in the comments section, just find enum on the page and read down through....
by Democre
08 Mar 2011, 22:00
Forum: SFS2X Questions
Topic: java.lang.OutOfMemoryError: PermGen space
Replies: 15
Views: 5917

I also would like to report what I found in my PermGen issue so that it could help someone else. My issue seems to have been the use of Enums combined with new classloaders for every room extension. According to the comments here , Enums seem to hold a static reference to their classloader which pre...
by Democre
21 Jan 2011, 05:05
Forum: SFS2X Questions
Topic: ArrayList would not clear - a bug??
Replies: 5
Views: 1945

Keep in mind, when you instantiate a new Room with a Room Extension, it will create a new class loader for that class, even if it is in the same jar as your Zone Extension. To be clear, are you saying that with each room instantiation a new classloader is created? If I am creating rooms dynamically...
by Democre
20 Jan 2011, 19:42
Forum: SFS2X Questions
Topic: Out of memory Permgen space
Replies: 13
Views: 4466

Alright, I did run visual vm, and the permgen size starts very close to maximum (within 100k)

I have increased the permgen maximum size to 128. Maybe this should be default in the start scripts for sfs2x.
by Democre
20 Jan 2011, 18:27
Forum: SFS2X Questions
Topic: Out of memory Permgen space
Replies: 13
Views: 4466

My test environment is the same one as the production server. Just differently zoned. It is on an EC2 instance. I hear what you're saying as far as continuous class definitions. My code does nothing of that sort. I don't use any reflection at all. I don't alter any bytecode. I don't call any compile...

Go to advanced search