increasing memory crash server on start

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

increasing memory crash server on start

Postby anasmatic » 14 Sep 2014, 12:55

hi,

I upgraded my server's RAM to 8GB.
but when I try to increase the jvm max ram to 2GB it crashes on start

this is the current working code in the wrapper file

Code: Select all

# Java Additional Parameters
wrapper.java.additional.4=-Xms1024M
wrapper.java.additional.5=-Xmx1536M


this is the max value I can add.
if I added one more kilobyte :!: the server crashes on start.

advice please.
thank you
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 15 Sep 2014, 13:51

Maybe you're running a 32 bit OS... ?
In such case a maximum of 2048 MBytes (2GB) can be addressed.
Lapo
--
gotoAndPlay()
...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 17 Sep 2014, 09:40

no, we Are on 64
the problem is I can't find any errors.
do you think it is a java problem ?
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 17 Sep 2014, 10:06

Is it a Linux or Windows?
On Windows 64 you can run a 32 bit application so maybe you have installed a 32bit version of SFS?

Make sure to download and install a 64bit, you can install it side by side with the other one just for testing and if the new one works you can migrate the settings and ditch it.
Lapo

--

gotoAndPlay()

...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 21 Sep 2014, 14:20

I can't find a 64x version of smartfoxserverPRO.

I tried to replace the JRE files, but that didn't change anything.
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 22 Sep 2014, 08:42

Actually it only depends on the JRE. A 64bit JRE will allow you to use memory sizes > 2GB.
Did you replace the JRE by substituting the old jre/ folder with the new folder with the same name (coming from the 64bit JRE download)?
Lapo

--

gotoAndPlay()

...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 23 Sep 2014, 09:30

hi

yes we rplaced the jre folder, with the regular jre and server-jre from this link http://www.oracle.com/technetwork/java/ ... 31105.html

I'll till you the full details of the process

- we backup the jre in the sfs folder, then delete it, and replaced it with new jre.
- server did not started.
- we rolled back, and this time replaced the sfs jre with the new one - rplace files-
- server started this time.
- we changed wrapper.conf Xmx settings to 2048M, and restarted the server.
- server didn't start.
- we replaced the sfs jre with server-jre from the link in line 1
- server didn't start.
- we changed wrapper.conf Xmx settings to 1536M, and restarted the server.
- server is working fine !

thank you for Helping.

ah
I noticed that server is ignoring my Xms value
I say wrapper.java.additional.4=-Xms256M
but my admin tool show VM Used Memory aprox 1Gb !

idk if this info my help !

thanks again
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 23 Sep 2014, 09:40

When you say that the server did not start what error did you get exactly?
Lapo

--

gotoAndPlay()

...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 24 Sep 2014, 09:08

the error :

WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but could not be loaded:
D:\Program Files(x86)\SmartFoxServerPRO_1.6.6\Server\lib\wrapper.dll
Please verify that the file is readable by the current user and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 64-bit JVM.
Reported cause: D:\Program Files(x86)\SmartFoxServerPRO_1.6.6\Server\lib\wrapper.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
System signals will not be handled correctly.

|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|

you can find a copy of this part of the log file attached with the post.
Attachments
restarting server with 2gb memory.zip
(2.13 KiB) Downloaded 547 times
Last edited by anasmatic on 24 Sep 2014, 09:10, edited 1 time in total.
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 24 Sep 2014, 09:31

Ok, I see what the problem is. It's not related with the JRE.

The native launcher used for SFS PRO is called "Tanuki Wrapper", it is a 3rd party software that we redistribute but we can't redistribute it for Windows 64 because it does't fall in the free license. In other words the wrapper's version for Win64 is not free.

You can buy a license of the wrapper for Win 64 and replace our free version or simply avoid the native launcher at all and simply launch the server via the provided .bat file. You can also add the .bat file to the Windows auto-statup folder to make sure the server is launched at boot time.

Hope it helps.
Lapo

--

gotoAndPlay()

...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 25 Sep 2014, 06:54

Thank you Lapo,
I'll check if we can buy the wrapper license.
if not, we are going to chose the other option you advised .

thanks again.
to pee or not to pee
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 16 Oct 2014, 15:08

thank you it worked,

we are running from the bat file, but the admins can't see the cmd via there remote sessions.
and it is not logging its errors and other logs, on the logs folder. :?

can I still got the sfs logs on files, like when it was running as a windows service ?
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 16 Oct 2014, 16:22

I am not sure about which logs you are referring to.
SFS uses logging API to send all the relevant runtime information to the log files.

If you use System.out.println(..) in your code you will not send the message to the log but just to the console output.

If it is something else can you clarify exactly what the problem is?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
anasmatic
Posts: 30
Joined: 15 Mar 2010, 07:27
Contact:

Re: increasing memory crash server on start

Postby anasmatic » 19 Oct 2014, 08:52

back from weekend :)

hi and thank you.

I mean the Info, Error and Warning logs, that shows on console.
since I started the server from the console, the server stopped logging in logs folder.
to pee or not to pee
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: increasing memory crash server on start

Postby Lapo » 20 Oct 2014, 12:59

I don't see why that should happen. If you start the server without running the native launcher you will not find the wrapper.log files but you will keep to find the regular smartfox.log files which contain essentially the same messages.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 49 guests