If I create too much room and set the RoomExtensionSettings, Smartfoxserver uses too much metaspace size. This is because the new RoomExtensionSettings uses a Java ClassLoader. Is there any option in Smartfoxserver to create new RoomExtensionSettings without using the ((java.lang.String id, java.lang.String className) constructor)? Or do you think adding a new constructor method without using a class loader would be a better option?
SmartfoxServer : v2.17.3
RoomExtensionSettings Consume Too Much Metaspacesize
-
- Posts: 30
- Joined: 30 Apr 2016, 07:23
- Location: Turkey
Re: RoomExtensionSettings Consume Too Much Metaspacesize
Hi,
Extensions attached to a Room are loaded in a separate class loader, which uses more meta-space as you have mentioned but also allows to re-deploy an Extension at runtime without having to restat the server.
If you don't care about the latter, you can deploy your Extensions under the extensions/__lib__/ folder. In this case no extra class loaders will be used (and you will need a restart after a redeploy).
You can read more details about the use of Class Loaders here:
http://docs2x.smartfoxserver.com/Extens ... assLoading
Cheers
Extensions attached to a Room are loaded in a separate class loader, which uses more meta-space as you have mentioned but also allows to re-deploy an Extension at runtime without having to restat the server.
If you don't care about the latter, you can deploy your Extensions under the extensions/__lib__/ folder. In this case no extra class loaders will be used (and you will need a restart after a redeploy).
You can read more details about the use of Class Loaders here:
http://docs2x.smartfoxserver.com/Extens ... assLoading
Cheers
Who is online
Users browsing this forum: Baidu [Spider] and 42 guests