Hi! Sometimes, I have this error on one of my instance. What I do wrong?) Can I increase Java heap space?
2024-05-27 21:29:37 INFO: [Ta96cf2fa] connected
2024-05-27 21:29:37 INFO: [Ta96cf2fa: osmand < 172.24.0.1] 504f5354202f3f69643d6c742d686f2d3030343333302e61746f6c2e72752674696d657374616d703d31373136383435333230266c61743d35352e37343833266c6f6e3d33372e36313731267265616c69703d3130392e3139362e3133322e333326626174743d313030266f70657261746f723d41746f6c2532304c6c632e26706f7765723d41432676696e3d6c742d686f2d3030343333302e61746f6c2e7275267a69703d313239303835267573657249643d61746f6c253543612e6e616761657626646f6d61696e3d61746f6c2e7275266c6f67696e74696d653d31372e30342e3230323425323031373a333826737369643d41544f4c26727373693d3930266e65745f6e616d653d61746f6c2e7275267374617475733d6c6f6767656425323072647026496e74657266616365416c6961733d2544302539312544302542352544312538312544302542462544312538302544302542452544302542322544302542452544302542342544302542442544302542302544312538462532302544312538312544302542352544312538322544312538432676657273696f6e46773d4c6f616465723a332e302532305363726970743a332e312e31266c6f63616c49503d31302e37372e3132312e3234266368616e6e656c3d6c6f63616c5f73637269707426747970653d4d6f62696c652532306465766963652676657273696f6e48773d5468696e6b50616425323058313325323047656e2532303126626174747374617475733d4f4b2669676e6974696f6e3d747275652673617456697369626c653d3120485454502f312e310d0a486f73743a203132372e302e302e313a353035350d0a557365722d4167656e743a206375726c2f372e38312e300d0a4163636570743a202a2f2a0d0a0d0a
2024-05-27 21:29:37 WARN: Error loading timezone aliases: inStream parameter is null
2024-05-27 21:29:51 INFO: [Ta96cf2fa] error - Java heap space - OutOfMemoryError (... < Permission:55 < QueryBuilder:497 < DatabaseStorage:157 < ...)
2024-05-27 21:29:51 INFO: [Ta96cf2fa] disconnected
can I configure it in docker?
Yes, you can. The relevant part is the memory limit.
can you tell how it configure in docker compose? I can't find information
You have to add the -Xmx
parameter to the command line. Not sure how to do it in docker compose specifically, but it should be possible.
happened. need to add a section in docker compose:
entrypoint:
- java
- -Xms2g
- -Xmx4g
- -Djava.net.preferIPv4Stack=true
- -jar
- tracker-server.jar
- conf/traccar.xml
and how about
WARN: Error loading timezone aliases: inStream parameter is null
don't understand this warning
You can probably ignore it.
Hi! Sometimes, I have this error on one of my instance. What I do wrong?) Can I increase Java heap space?