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 ?
increasing memory crash server on start
Re: increasing memory crash server on start
to pee or not to pee
Re: increasing memory crash server on start
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
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
Re: increasing memory crash server on start
thank you,
I found it on "SEVERE"
I changed it to the default
I'll wake up early for the logs tomorrow
thank you again.
I found it on "SEVERE"
I changed it to the default
I'll wake up early for the logs tomorrow
thank you again.
to pee or not to pee
Re: increasing memory crash server on start
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.
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
Re: increasing memory crash server on start
There are two parameters that are used to split and rotate the log files:
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
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
Re: increasing memory crash server on start
Hi Lapo
still the same problem,
my logs are not exported into the separated daily log file
my config is like this :
and my logs folder is like this :
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
thanks,
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 :
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
Re: increasing memory crash server on start
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.
If you want more data to be logged you will need at least the INFO level.
Re: increasing memory crash server on start
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.
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
Re: increasing memory crash server on start
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
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
to pee or not to pee
Re: increasing memory crash server on start
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
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
Re: increasing memory crash server on start
hi Lapo
the log are not exported.
my config :
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
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 48 guests