Service needing restart every few days

Adam Morrison5 years ago

Hello,

Every few days I need to restart the 'traccar.service' on my ubuntu 18 box.

Here is the systemctl status before doing so. Has anyone encountered this before and know how to fix?

serveradmin@svr-gps-01:~$ systemctl status traccar.service
● traccar.service - traccar
   Loaded: loaded (/etc/systemd/system/traccar.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-05-29 15:22:24 UTC; 2 days ago
 Main PID: 100111 (java)
    Tasks: 53 (limit: 9238)
   CGroup: /system.slice/traccar.service
           └─100111 /opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml

May 29 15:22:24 ams-gps-01 systemd[1]: Started traccar.
May 29 15:22:34 ams-gps-01 traccar[100111]: WARNING: An illegal reflective access operation has occurred
May 29 15:22:34 ams-gps-01 traccar[100111]: WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/o
May 29 15:22:34 ams-gps-01 traccar[100111]: WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.
May 29 15:22:34 ams-gps-01 traccar[100111]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operation
May 29 15:22:34 ams-gps-01 traccar[100111]: WARNING: All illegal access operations will be denied in a future release
Anton Tananaev5 years ago

Have you checked logs?

Adam Morrison5 years ago

I did just now. I am seeing this for yesterday:

2020-05-31 23:59:48  WARN: Too many open files - IOException (...)
2020-05-31 23:59:49  WARN: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. - Too many open files - IOException (...)
Anton Tananaev5 years ago

Great. In case you haven't found the solution yet, you should read this:

https://www.traccar.org/optimization/

Adam Morrison5 years ago

Got it, Thank you for your assistance.