My installation has been running fine for almost a year but since Monday this week the service has been shutting down like 5 times a day. Was running on 1 GB RAM but have upgraded to 2 GB with no change.
INFO|17680/0|Service traccar|18-03-09 11:18:35|Missing wrapper ping within timeout of 30000
WARNING|17680/0|Service traccar|18-03-09 11:19:11|ping between java application and wrapper timed out. if this this is due to server overload consider increasing wrapper.ping.timeout
INFO|17680/0|Service traccar|18-03-09 11:19:11|[Thread-12] INFO org.eclipse.jetty.server.ServerConnector - Stopped ServerConnector@18a19e{HTTP/1.1}{0.0.0.0:8082}
INFO|17680/0|Service traccar|18-03-09 11:19:11|wrapper manager received stop command
INFO|17680/0|Service traccar|18-03-09 11:19:12|[Thread-12] INFO org.eclipse.jetty.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@1f2f0109{/api,null,UNAVAILABLE}
Have also tried to increase wrapper.java.maxmemory, tried 64, 128 and 256 but still crashed. Now running 1024
wrapper.java.command=java
wrapper.java.app.jar=tracker-server.jar
wrapper.app.parameter.1=./conf/traccar.xml
wrapper.java.additional.1=-Dfile.encoding=UTF-8
wrapper.logfile=logs/wrapper.log.YYYYMMDD
wrapper.logfile.rollmode=DATE
wrapper.ntservice.name=traccar
wrapper.ntservice.displayname=Traccar
wrapper.ntservice.description=Traccar
wrapper.java.maxmemory=1024
wrapper.daemon.run_level_dir=${if (new File('/etc/rc0.d').exists()) return '/etc/rcX.d' else return '/etc/init.d/rcX.d'}
What version of Java are you using? What operating system?
Ubuntu 16.04.4 LTS
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
Java 8 should work fine. Just make sure that Traccar actually uses it, if you have multiple JVMs.
The only explanation I can think of is the lack of resources. Specifically RAM.
My installation has been running fine for almost a year but since Monday this week the service has been shutting down like 5 times a day. Was running on 1 GB RAM but have upgraded to 2 GB with no change.
Have also tried to increase wrapper.java.maxmemory, tried 64, 128 and 256 but still crashed. Now running 1024