Hello Anton Tananaev,
We are using server with this configuration (given below)
windows server 2016
16 GB RAM
250 GB DISK SPACE
Actually we have installed Traccar on this server and our database is Sql Server 2014 which is running on another server (another IP) and now the problem we are facing is CPU usage is 99% Due to Traccar as we can see in the task manager.
We have around 3500 devices on this server and sometimes server restart unexpectedly. Please suggest us what we can do for overcome on this problem.
We are using Custom MS-SQL database. Database and Traccar application servers both are separate.
Configuration Settings
<entry key='web.enable'>true</entry>
<entry key='web.port'>8083</entry>
<entry key='web.path'>./web</entry>
<entry key='web.cacheControl'>max-age=3600,public</entry>
<entry key='geocoder.enable'>false</entry>
<entry key='geocoder.type'>google</entry>
<entry key='logger.enable'>false</entry>
<entry key='logger.level'>info</entry>
<entry key='logger.file'>./logs/tracker-server.log</entry>
<entry key='logger.rotate'>false</entry>
<entry key='filter.enable'>true</entry>
<entry key='filter.duplicate'>true</entry>
<entry key='filter.future'>86400</entry>
<entry key='event.enable'>false</entry>
<entry key='event.ignoreDuplicateAlerts'>false</entry>
<entry key='processing.computedAttributes.enable'>false</entry>
<entry key='processing.engineHours.enable'>false</entry>
<entry key='media.path'>./media</entry>
<entry key='notificator.types'>web,mail</entry>
<entry key='server.statistics'>https://www.traccar.org/analytics/</entry>
<entry key='commands.queueing'>true</entry>
<entry key='database.ignoreUnknown'>true</entry>
<entry key='database.generateQueries'>true</entry>
<entry key='database.changelog'>./schema/changelog-master.xml</entry>
<entry key='database.loginUser'>
SELECT * FROM tc_users
WHERE email = :email OR login = :email
</entry>
<entry key='database.selectPositions'>
SELECT * FROM tc_positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime
</entry>
<entry key='database.selectLatestPositions'>
SELECT tc_positions.* FROM tc_positions INNER JOIN tc_devices ON tc_positions.id = tc_devices.positionid;
</entry>
<entry key='database.updateLatestPosition'>
UPDATE tc_devices SET positionId = :id WHERE id = :deviceId
</entry>
<entry key='database.selectEvents'>
SELECT * FROM tc_events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime
</entry>
<entry key='database.deletePositions'>
DELETE FROM tc_positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM tc_devices WHERE positionId IS NOT NULL)
</entry>
<entry key='database.deleteEvents'>
DELETE FROM tc_events WHERE serverTime < :serverTime
</entry>
<entry key='database.selectStatistics'>
SELECT * FROM tc_statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime
</entry>
Hello Anton Tananaev,
We are using server with this configuration (given below)
windows server 2016
16 GB RAM
250 GB DISK SPACE
Actually we have installed Traccar on this server and our database is Sql Server 2014 which is running on another server (another IP) and now the problem we are facing is CPU usage is 99% Due to Traccar as we can see in the task manager.
We have around 3500 devices on this server and sometimes server restart unexpectedly. Please suggest us what we can do for overcome on this problem.
We are using Custom MS-SQL database. Database and Traccar application servers both are separate.
Configuration Settings
<entry key='web.enable'>true</entry> <entry key='web.port'>8083</entry> <entry key='web.path'>./web</entry> <entry key='web.cacheControl'>max-age=3600,public</entry> <entry key='geocoder.enable'>false</entry> <entry key='geocoder.type'>google</entry> <entry key='logger.enable'>false</entry> <entry key='logger.level'>info</entry> <entry key='logger.file'>./logs/tracker-server.log</entry> <entry key='logger.rotate'>false</entry> <entry key='filter.enable'>true</entry> <entry key='filter.duplicate'>true</entry> <entry key='filter.future'>86400</entry> <entry key='event.enable'>false</entry> <entry key='event.ignoreDuplicateAlerts'>false</entry> <entry key='processing.computedAttributes.enable'>false</entry> <entry key='processing.engineHours.enable'>false</entry> <entry key='media.path'>./media</entry> <entry key='notificator.types'>web,mail</entry> <entry key='server.statistics'>https://www.traccar.org/analytics/</entry> <entry key='commands.queueing'>true</entry> <entry key='database.ignoreUnknown'>true</entry> <entry key='database.generateQueries'>true</entry> <entry key='database.changelog'>./schema/changelog-master.xml</entry> <entry key='database.loginUser'> SELECT * FROM tc_users WHERE email = :email OR login = :email </entry> <entry key='database.selectPositions'> SELECT * FROM tc_positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime </entry> <entry key='database.selectLatestPositions'> SELECT tc_positions.* FROM tc_positions INNER JOIN tc_devices ON tc_positions.id = tc_devices.positionid; </entry> <entry key='database.updateLatestPosition'> UPDATE tc_devices SET positionId = :id WHERE id = :deviceId </entry> <entry key='database.selectEvents'> SELECT * FROM tc_events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime </entry> <entry key='database.deletePositions'> DELETE FROM tc_positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM tc_devices WHERE positionId IS NOT NULL) </entry> <entry key='database.deleteEvents'> DELETE FROM tc_events WHERE serverTime < :serverTime </entry> <entry key='database.selectStatistics'> SELECT * FROM tc_statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime </entry>