Hello!
I am trying to configure the configuration file as follows:
<entry key="config.default">./conf/default.xml</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://locationiq.org/v1/reverse.php</entry>
<entry key='geocoder.key'>9e7409c756055e</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/database?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>user</entry>
<entry key='database.password'>pass</entry>
<entry key='web.timeout'>180</entry>
<entry key='event.enable'>true</entry>
<entry key='event.overspeedHandler'>true</entry>
<entry key='event.overspeed.notRepeat'>true</entry>
<entry key='event.motionHandler'>true</entry>
<entry key='event.geofenceHandler'>true</entry>
<entry key='event.alertHandler'>true</entry>
<entry key='event.ignitionHandler'>true</entry>
<entry key='event.statusHandler'>true</entry>
<entry key='event.maintenanceHandler'>true</entry>
<entry key='processing.copyAttributes'>power,ignition,battery</entry>
<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='report.trip.minimalTripDistance'>1</entry>
<entry key='report.trip.minimalTripDuration'>30</entry>
<entry key='database.positionsHistoryDays'>30</entry>
But when setting a value for web.timeout the system starts to directly accuse "websocket error" and only when I remove the line:
<entry key='web.timeout'>180</entry>
For what was happening, the CPU limit of the server within a few days, was being extrapolated, this caused the system to be out of breath, I realized that the logs were too large, to delete the system returned, but I do not think This is the cause of the problem, so I thought about the accumulation of open connections, so I configured the system and server according to optimization orientation, where one of them is to define a time in seconds to close the connections through web.timeout, however the system accuses error Of websocket.
Could you give me a hand? I thank you
Timeout value is in milliseconds, so your value doesn't make much sense.
I reviewed the configuration and it was actually incorrect the number in seconds. Here's the current setting:
<entry key="config.default">./conf/default.xml</entry>
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://locationiq.org/v1/reverse.php</entry>
<entry key='geocoder.key'>key</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost:3306/tecsat?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>usuario_cli</entry>
<entry key='database.password'>senha_cli</entry>
<entry key='web.timeout'>180000</entry>
<entry key='event.enable'>true</entry>
<entry key='event.overspeedHandler'>true</entry>
<entry key='event.overspeed.notRepeat'>true</entry>
<entry key='event.motionHandler'>true</entry>
<entry key='event.geofenceHandler'>true</entry>
<entry key='event.alertHandler'>true</entry>
<entry key='event.ignitionHandler'>true</entry>
<entry key='event.statusHandler'>true</entry>
<entry key='event.maintenanceHandler'>true</entry>
<entry key='processing.copyAttributes'>power,ignition,battery</entry>
<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='report.trip.minimalTripDistance'>1</entry>
<entry key='report.trip.minimalTripDuration'>30</entry>
<entry key='database.positionsHistoryDays'>30</entry>
However, I still have websocket error, what could it be? When the system closes the connections according to the stipulated time, does the error appear due to this closing?
Yes, socket timeout will show as error as well.
Hello!
I am trying to configure the configuration file as follows:
But when setting a value for web.timeout the system starts to directly accuse "websocket error" and only when I remove the line:
For what was happening, the CPU limit of the server within a few days, was being extrapolated, this caused the system to be out of breath, I realized that the logs were too large, to delete the system returned, but I do not think This is the cause of the problem, so I thought about the accumulation of open connections, so I configured the system and server according to optimization orientation, where one of them is to define a time in seconds to close the connections through web.timeout, however the system accuses error Of websocket.
Could you give me a hand? I thank you