Huge wrapper log files sizes

ewsmith8 years ago

Hi Everyone,

Has anyone had a problem with extremely large wrapper log files?

My server stopped working due to the disk being full (360Gb running ubuntu and traccar server only). The server had been running for about a month. Upon investigation I have found that some of the daily wrapper log files are huge in comparison others. The normal size seems to be about 4 - 20kb, but I have some log files with sizes 25Gb, 34Gb and even 137Gb.

Just wondered if anyone else has had this problem. The large logs seem to be on random days, could this be due to an external attack on my server?

Thanks

D

Anton Tananaev8 years ago

Most likely the problem is with number of connections. Linux has a limit of 1000 file descriptors (which include connection) by default. If you reach that limit, server will start to fail and write a lot of information into the log file because it would constantly get some errors.

ewsmith8 years ago

Thanks for your reply Anton. I have 8 devices sending messages to the server every 30 seconds. Do you think I would be able prevent this error from occurring by increasing the time between messages to 60 seconds?

Anton Tananaev8 years ago

You can set connection timeout like this:

<entry key='gps103.resetDelay'>60</entry>

Change protocol to the one that you are using. Number is in seconds.

evrpg8 years ago

Hello,
so the problem here is not the rate of the messages, but that the connections are remaining opened?

Sorry I'm new here, but I plan to stay for a long, so I got some other questions in the same regard. If there are any documentation that answer them, could you please point me to there?.

  1. What about if I have a large number of devices trying to connect at the same time? which parameters should I tweak to avoid undesired behavior like this one?

  2. Do you see any way of implementing a connection pool to avoid this "overflow" in the Linux file descriptors? in the regard of rejecting connection when the connection pool is full.

Thank you for the great effort you have done on this software.

Anton Tananaev8 years ago
  1. You need to increate the connection limit in your operating system.

  2. This question doesn't make sense. That's not how server sockets work.

evrpg8 years ago

Yes, I was thinking in something like how the jboss manages the connections, but that is another story.

Thanks you for your answer and sorry for my bad English.