Is my server is ok? & about logger configuration

iyasilias9 years ago

My server runs on Ubuntu Linux 14.04.3 LTS 64-bit (rev. 43, hvm).
I use MySQL as database. The database is filled with data.

So, it seems that I've correctly set up my server.

  1. How do I know for sure if my server is ok or not?
  2. What are the options available for logger level? I only know that the default is 'all'.
  3. Is it ok if I disable log?

My logs:

2016-04-16 04:56:52  INFO: [C5E2B074] id: 1, time: 2016-04-16 01:28:28, lat: 6.27668, lon: 100.42489, speed: 4.6, course: 175.2
2016-04-16 04:57:03 DEBUG: [C5E2B074: 5001 < 183.171.29.24] HEX: 3335393731303034333138393931303b
2016-04-16 04:57:03 DEBUG: [C5E2B074: 5001 > 183.171.29.24] HEX: 4f4e
2016-04-16 04:57:22 DEBUG: [C5E2B074: 5001 < 183.171.29.24] HEX: 696d65693a3335393731303034333138393931302c747261636b65722c313630343136313235372c2c462c3031323832382e3030302c412c303631362e363030392c4e2c31303032352e343933312c452c342e36302c3137352e32303b
2016-04-16 04:57:22  INFO: [C5E2B074] id: 1, time: 2016-04-16 01:28:28, lat: 6.27668, lon: 100.42489, speed: 4.6, course: 175.2

Thanks for your time.

Anton Tananaev9 years ago
  1. You can check if the process is running and if network ports are open.

  2. For log levels see this:

https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html

  1. You can disable logs, but it's not recommended.
iyasilias9 years ago

Thanks. What's your log level recommendation for production?
I will use the server for 40 devices, each with 30 seconds interval per message.

Anton Tananaev9 years ago

I always use "all" level. I don't see any reason why you would want something else.

iyasilias9 years ago

It seems my average log size is around 400KB/day. So if I have 100 devices, that means 40MB/day.

Does the size of the logger effects the server performance? (because of read and write)

Anton Tananaev9 years ago

It doesn't affect performance. Traccar doesn't read logs.