All log wrapper
WARNING|wrapper|Service traccar|17-07-26 10:02:26|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-07-26 10:02:26|OS : Linux/3.13.0-121-generic/amd64
WARNING|wrapper|Service traccar|17-07-26 10:02:26|JVM : Oracle Corporation/1.8.0_131//usr/lib/jvm/java-8-oracle/jre/64
INFO|wrapper|Service traccar|17-07-26 10:02:26|exec:"java" "-classpath" "/opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-2.9.9.jar:/opt/traccar/lib/h2-1.4.196.jar:/opt/traccar/lib/mysql-connector-java-5.1.42.jar:/opt/traccar/lib/postgresql-42.1.1.jre7.jar:/opt/traccar/lib/mssql-jdbc-6.2.0.jre7.jar:/opt/traccar/lib/HikariCP-java7-2.4.12.jar:/opt/traccar/lib/slf4j-api-1.7.21.jar:/opt/traccar/lib/netty-3.10.6.Final.jar:/opt/traccar/lib/async-http-client-1.9.40.jar:/opt/traccar/lib/slf4j-simple-1.7.25.jar:/opt/traccar/lib/javax.json-1.0.4.jar:/opt/traccar/lib/jetty-server-9.2.22.v20170606.jar:/opt/traccar/lib/javax.servlet-api-3.1.0.jar:/opt/traccar/lib/jetty-http-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-io-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-servlet-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-security-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-webapp-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-xml-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-jndi-9.2.22.v20170606.jar:/opt/traccar/lib/jetty-util-9.2.22.v20170606.jar:/opt/traccar/lib/websocket-server-9.2.22.v20170606.jar:/opt/traccar/lib/websocket-common-9.2.22.v20170606.jar:/opt/traccar/lib/websocket-api-9.2.22.v20170606.jar:/opt/traccar/lib/websocket-client-9.2.22.v20170606.jar:/opt/traccar/lib/websocket-servlet-9.2.22.v20170606.jar:/opt/traccar/lib/jersey-container-servlet-2.25.1.jar:/opt/traccar/lib/jersey-container-servlet-core-2.25.1.jar:/opt/traccar/lib/javax.inject-2.5.0-b32.jar:/opt/traccar/lib/jersey-common-2.25.1.jar:/opt/traccar/lib/javax.annotation-api-1.2.jar:/opt/traccar/lib/jersey-guava-2.25.1.jar:/opt/traccar/lib/hk2-api-2.5.0-b32.jar:/opt/traccar/lib/hk2-utils-2.5.0-b32.jar:/opt/traccar/lib/aopalliance-repackaged-2.5.0-b32.jar:/opt/traccar/lib/hk2-locator-2.5.0-b32.jar:/opt/traccar/lib/javassist-3.20.0-GA.jar:/opt/traccar/lib/osgi-resource-locator-1.0.1.jar:/opt/traccar/lib/jersey-server-2.25.1.jar:/opt/traccar/lib/jersey-client-2.25.1.jar:/opt/traccar/lib/jersey-media-jaxb-2.25.1.jar:/opt/traccar/lib/validation-api-1.1.0.Final.jar:/opt/traccar/lib/javax.ws.rs-api-2.0.1.jar:/opt/traccar/lib/jersey-media-json-jackson-2.25.1.jar:/opt/traccar/lib/jersey-entity-filtering-2.25.1.jar:/opt/traccar/lib/jackson-jaxrs-base-2.8.4.jar:/opt/traccar/lib/jackson-core-2.8.4.jar:/opt/traccar/lib/jackson-databind-2.8.4.jar:/opt/traccar/lib/jackson-jaxrs-json-provider-2.8.4.jar:/opt/traccar/lib/jackson-module-jaxb-annotations-2.8.4.jar:/opt/traccar/lib/jackson-annotations-2.8.4.jar:/opt/traccar/lib/liquibase-core-3.5.3.jar:/opt/traccar/lib/snakeyaml-1.17.jar:/opt/traccar/lib/mail-1.4.7.jar:/opt/traccar/lib/activation-1.1.jar:/opt/traccar/lib/jxls-2.4.0.jar:/opt/traccar/lib/commons-jexl-2.1.1.jar:/opt/traccar/lib/commons-beanutils-1.9.2.jar:/opt/traccar/lib/jcl-over-slf4j-1.7.12.jar:/opt/traccar/lib/logback-core-1.1.3.jar:/opt/traccar/lib/jxls-poi-1.0.12.jar:/opt/traccar/lib/poi-3.14.jar:/opt/traccar/lib/poi-ooxml-3.14.jar:/opt/traccar/lib/poi-ooxml-schemas-3.14.jar:/opt/traccar/lib/xmlbeans-2.6.0.jar:/opt/traccar/lib/stax-api-1.0.1.jar:/opt/traccar/lib/curvesapi-1.03.jar:/opt/traccar/lib/velocity-1.7.jar:/opt/traccar/lib/commons-collections-3.2.1.jar:/opt/traccar/lib/commons-lang-2.4.jar:/opt/traccar/lib/velocity-tools-2.0.jar:/opt/traccar/lib/commons-digester-1.8.jar:/opt/traccar/lib/commons-chain-1.1.jar:/opt/traccar/lib/commons-logging-1.1.jar:/opt/traccar/lib/servlet-api-2.3.jar:/opt/traccar/lib/commons-validator-1.3.1.jar:/opt/traccar/lib/dom4j-1.1.jar:/opt/traccar/lib/oro-2.0.8.jar:/opt/traccar/lib/sslext-1.2-0.jar:/opt/traccar/lib/struts-core-1.3.8.jar:/opt/traccar/lib/antlr-2.7.2.jar:/opt/traccar/lib/struts-taglib-1.3.8.jar:/opt/traccar/lib/struts-tiles-1.3.8.jar:/opt/traccar/lib/ical4j-2.0.0.jar:/opt/traccar/lib/commons-collections4-4.0.jar:/opt/traccar/lib/groovy-all-2.3.2.jar:/opt/traccar/lib/bndlib-2.3.0.jar:/opt/traccar/lib/org.osgi.core-4.3.1.jar:/opt/traccar/lib/commons-lang3-3.3.2.jar:/opt/traccar/lib/commons-codec-1.9.jar:/opt/traccar/lib/ch-smpp-5.0.9.jar:/opt/traccar/lib/ch-commons-util-6.0.2.jar:/opt/traccar/lib/ch-commons-charset-3.0.2.jar" "-Dfile.encoding=UTF-8" "-Xrs" "-Dwrapper.service=true" "-Dwrapper.console.visible=false" "-Dwrapper.port=15003" "-Dwrapper.key=730159678881277894" "-Dwrapper.teeName=730159678881277894$1501063345933" "-Dwrapper.tmp.path=/opt/traccar/tmp" "-Djna_tmpdir=/opt/traccar/tmp" "-Dwrapper.config=/opt/traccar/conf/wrapper.conf" "-Dwrapper.visible=false" "-Dwrapper.pidfile=/run/wrapper.traccar.pid" "org.rzo.yajsw.app.WrapperJVMMain"
INFO|wrapper|Service traccar|17-07-26 10:02:26|posix_spawn pid 10979
INFO|wrapper|Service traccar|17-07-26 10:02:26|started process 10979
INFO|wrapper|Service traccar|17-07-26 10:02:26|started process with pid 10979
INFO|10979/0|Service traccar|17-07-26 10:02:28|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|10979/0|Service traccar|17-07-26 10:02:30|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
INFO|10979/0|Service traccar|17-07-26 10:02:30|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO|10979/0|Service traccar|17-07-26 10:02:32|INFO 7/26/17 10:02 AM: liquibase: Clearing database change log checksums
INFO|10979/0|Service traccar|17-07-26 10:02:32|INFO 7/26/17 10:02 AM: liquibase: Successfully acquired change log lock
INFO|10979/0|Service traccar|17-07-26 10:02:32|INFO 7/26/17 10:02 AM: liquibase: Successfully released change log lock
INFO|10979/0|Service traccar|17-07-26 10:02:32|INFO 7/26/17 10:02 AM: liquibase: Successfully acquired change log lock
INFO|10979/0|Service traccar|17-07-26 10:02:35|INFO 7/26/17 10:02 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|10979/0|Service traccar|17-07-26 10:02:36|INFO 7/26/17 10:02 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|10979/0|Service traccar|17-07-26 10:02:36|INFO 7/26/17 10:02 AM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false. Error: Can't DROP 'uk_user_token'; check that column/key exists [Failed SQL: ALTER TABLE traccar.users DROP KEY uk_user_token]
INFO|10979/0|Service traccar|17-07-26 10:02:36|INFO 7/26/17 10:02 AM: liquibase: Successfully released change log lock
INFO|10979/0|Service traccar|17-07-26 10:02:36|[main] INFO org.eclipse.jetty.util.log - Logging initialized @9711ms
INFO|10979/0|Service traccar|17-07-26 10:02:38|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.22.v20170606
INFO|10979/0|Service traccar|17-07-26 10:02:42|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@76cf841{/api,null,AVAILABLE}
INFO|10979/0|Service traccar|17-07-26 10:02:42|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@7d98976a{HTTP/1.1}{0.0.0.0:81}
INFO|10979/0|Service traccar|17-07-26 10:02:42|[main] INFO org.eclipse.jetty.server.Server - Started @15645ms
INFO|10979/0|Service traccar|17-07-27 03:23:14|[qtp1315795813-65] WARN org.eclipse.jetty.websocket.server.WebSocketServerFactory - Client 125.163.12.12 (:51606) User Agent: [unset] requested WebSocket version [8], Jetty supports version: [13]
INFO|10979/0|Service traccar|17-07-27 03:23:40|[qtp1315795813-421] WARN org.eclipse.jetty.websocket.server.WebSocketServerFactory - Client 125.163.12.12 (:51618) User Agent: [unset] requested WebSocket version [8], Jetty supports version: [13]
INFO|10979/0|Service traccar|17-07-27 06:40:38|[qtp1315795813-65] WARN org.eclipse.jetty.server.handler.ResourceHandler - org.eclipse.jetty.io.EofException
INFO|wrapper|Service traccar|17-07-27 06:52:07|waitpid 10979 9
INFO|wrapper|Service traccar|17-07-27 06:52:07|exit code posix process: 9 application: 0
You need minimum 1GB of RAM.
but traccar 3.7 just need 512. Why traccar 3.1x need big ram?
Traccar always needed at least 1GB for stable performance.
Hi Anton.
My server also crashes after a couple hourse and I also see this exit code message, I have tried reducing the listening ports (since I only use 1), but then I found this post.
Is the 1GB ram always needed? If I will have 10 devices, do I need to increase (from 512mb)? I have had an older version in the past (like 2 years ago version 3... something) with 512mb of ram. I would upgrade RAM if needed, I just want to know if this is normal on the verbose response of the StartDaemon script, could it be related?
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
---------- YAJSW SET ENV ----------
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
YAJSW: yajsw-stable-12.09
OS : Linux/4.4.0-87-generic/amd64
JVM : Oracle Corporation/1.8.0_131//usr/lib/jvm/java-8-openjdk-amd64/jre/64
Sep 06, 2017 12:54:03 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Sep 06, 2017 12:54:04 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************
Sep 06, 2017 12:54:04 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Sep 06, 2017 12:54:08 PM org.rzo.yajsw.os.posix.PosixService start
INFO: Starting traccar ...
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/commons-beanutils-1.8.2.jar
INFO: lib not found: /opt/traccar/lib/extended/glazedlists/glazedlists-1.8.0_java15.jar
YAJSW: yajsw-stable-12.09
OS : Linux/4.4.0-87-generic/amd64
JVM : Oracle Corporation/1.8.0_131//usr/lib/jvm/java-8-openjdk-amd64/jre/64
************* STARTING traccar ***********************
Service traccar started
Sep 06, 2017 12:54:08 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Sep 06, 2017 12:54:09 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Sep 06, 2017 12:54:09 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started
Yes, it's normal output.
We recommend 1gb, but it might be possible to run on 512mb with some extra memory limits configuration.
This is the wrapper log after starting the daemon. Wrapper crashes for no apparent reason at 13:34:15.
WARNING|wrapper|Service traccar|17-09-06 13:03:05|YAJSW: yajsw-stable-12.09
WARNING|wrapper|Service traccar|17-09-06 13:03:05|OS : Linux/4.4.0-87-generic/amd64
WARNING|wrapper|Service traccar|17-09-06 13:03:05|JVM : Oracle Corporation/1.8.0_131//usr/lib/jvm/java-8-openjdk-amd64/jre/64
INFO|wrapper|Service traccar|17-09-06 13:03:05|exec:"java" "-classpath" "/opt/traccar/wrapperApp.jar:/opt/traccar/tracker-server.jar:/opt/traccar/lib/log4j-1.2.17.jar:/opt/traccar/lib/joda-time-2.9.9.jar:/opt/traccar/lib/h2-1.4.196.jar:$
INFO|wrapper|Service traccar|17-09-06 13:03:06|posix_spawn pid 31468
INFO|wrapper|Service traccar|17-09-06 13:03:06|started process 31468
INFO|wrapper|Service traccar|17-09-06 13:03:06|started process with pid 31468
INFO|31468/0|Service traccar|17-09-06 13:03:08|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|31468/0|Service traccar|17-09-06 13:03:09|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
INFO|31468/0|Service traccar|17-09-06 13:03:10|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO|31468/0|Service traccar|17-09-06 13:03:11|INFO 9/6/17 1:03 PM: liquibase: Clearing database change log checksums
INFO|31468/0|Service traccar|17-09-06 13:03:11|INFO 9/6/17 1:03 PM: liquibase: Successfully acquired change log lock
INFO|31468/0|Service traccar|17-09-06 13:03:11|INFO 9/6/17 1:03 PM: liquibase: Successfully released change log lock
INFO|31468/0|Service traccar|17-09-06 13:03:11|INFO 9/6/17 1:03 PM: liquibase: Successfully acquired change log lock
INFO|31468/0|Service traccar|17-09-06 13:03:15|INFO 9/6/17 1:03 PM: liquibase: Reading from tracarDB.DATABASECHANGELOG
INFO|31468/0|Service traccar|17-09-06 13:03:15|INFO 9/6/17 1:03 PM: liquibase: Reading from tracarDB.DATABASECHANGELOG
INFO|31468/0|Service traccar|17-09-06 13:03:15|INFO 9/6/17 1:03 PM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, $
INFO|31468/0|Service traccar|17-09-06 13:03:15|INFO 9/6/17 1:03 PM: liquibase: Successfully released change log lock
INFO|31468/0|Service traccar|17-09-06 13:03:15|[main] INFO org.eclipse.jetty.util.log - Logging initialized @9318ms
INFO|31468/0|Service traccar|17-09-06 13:03:17|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.22.v20170606
INFO|31468/0|Service traccar|17-09-06 13:03:20|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@51a651c1{/api,null,AVAILABLE}
INFO|31468/0|Service traccar|17-09-06 13:03:20|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.t.w.@60ed12e8{/,null,AVAILABLE}
INFO|31468/0|Service traccar|17-09-06 13:03:20|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@e09f1b6{HTTP/1.1}{0.0.0.0:8082}
INFO|31468/0|Service traccar|17-09-06 13:03:20|[main] INFO org.eclipse.jetty.server.Server - Started @13792ms
INFO|wrapper|Service traccar|17-09-06 13:34:15|waitpid 31468 9
INFO|wrapper|Service traccar|17-09-06 13:34:15|exit code posix process: 9 application: 0
How can I implement memory limits configuration?
You can find more information about configuration options here:
http://yajsw.sourceforge.net/YAJSW%20Configuration%20Parameters.html
exit code After several hours of running.
OS : Ubuntu 14.04 with ram 512mb
java version
log wrapper