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:

Re: increasing memory crash server on start

Postby anasmatic » 21 Oct 2014, 08:26

I have a file named "smartfox_log_0.txt"
and "2014_10_21.request.log" and others with daily dates on their names.

but all is empty.

do I have to configure the server to log on these files when I run the server from console ? how to do this ?
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 » 21 Oct 2014, 11:05

It think it depends on your configuration of the logging level.
You should open your config.xml file and check the <FileLoggingLevel> parameter.

Default is WARNING.
You can read the details here:
www.smartfoxserver.com/docs/1x/docPages ... htm#server
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 Oct 2014, 13:54

thank you,
I found it on "SEVERE"
I changed it to the default
I'll wake up early for the logs tomorrow :roll:

thank you 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 » 23 Oct 2014, 12:05

thank you for the help,

yesterday the sfs restarted.
I could not find the logs after the restart.
every day, sfs make a new file with format "2014_10_23.request.log", in the log folder
but it is always empty !

file "smartfox_log_0.txt" didn't contain any data belongs to the time before the unexpected restart.

can you advice in that.
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 Oct 2014, 17:04

There are two parameters that are used to split and rotate the log files:

Code: Select all

<LogMaxSize>5000000</LogMaxSize>
<LogMaxFiles>5</LogMaxFiles> 

If I remember correctly the log rotation is done on a daily basis or when the log file size exceeds the configured size.
Make sure to set your configuration properly.

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 » 28 Oct 2014, 08:09

Hi Lapo

still the same problem,
my logs are not exported into the separated daily log file
my config is like this :

Code: Select all

<LogMaxSize>10240</LogMaxSize>
<LogMaxFiles>10</LogMaxFiles>

<FileLoggingLevel>WARNING</FileLoggingLevel>
<ConsoleLoggingLevel>WARNING</ConsoleLoggingLevel>

and my logs folder is like this :
Image

there is also a file : logging.properties
I don't know if I should change the values inside of it , or leave it alone.
right now it has the default values

Code: Select all

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter

# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter = it.gotoandplay.smartfoxserver.lib.SmartFoxSimpleLogFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
it.gotoandplay.smartfoxserver.SmartFoxServer.level = FINEST


thanks,
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 » 28 Oct 2014, 09:15

But you're still keeping the WARNING level, which will filter out all messages that are below that level.
If you want more data to be logged you will need at least the INFO level.
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 » 29 Oct 2014, 10:07

I have a lot of warnings and nothing is saved to a separate file
every day the log file are restarted, and the old logs are lost

anyway , I'll change the Level to Info, and inform you if the problem stills.
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 » 05 Nov 2014, 11:55

hi again,

after few days, in INFO level, log files are still created empty.

I can see logs on admin tool, but they are never exported to a file on daily bases.

do you have any more ideas to solve this :roll:
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 » 05 Nov 2014, 14:04

If the AdminTool gives you the data back it means that the log files are populated. The Admin reads from those files :)

The problem is you're using too small sized and too little files. If you allow only 5 files when they are all full they will be recycled.
Configure the logger to use many more files if you want to keep them and not being recycled.

Cheers
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 Nov 2014, 09:18

hi Lapo

the log are not exported. :(

my config :

Code: Select all

      <LogMaxSize>5000000</LogMaxSize>
      <LogMaxFiles>10</LogMaxFiles>
      
      <FileLoggingLevel>FINE</FileLoggingLevel>
      <ConsoleLoggingLevel>WARNING</ConsoleLoggingLevel>



the logs folder looks the same
[img]
http://el3ab.com/anas/sfslogs2.jpg
[/img]

the admin tool reads from : smartfox_log_0.txt
this file should populate a "2014_11_17.request.log" file, by the end of the day, or when the file reaches it max.
instead, it clears all its data.

we had some problems and the server restarted, and we have no clue what happend because the server is not logging.

I should remind you, that we are not using the wrapper.exe, we are running the server from the .bat file
to pee or not to pee

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 33 guests