High CPU usage when using forward.url

stevebates9 years ago

Hi,

I'm trying to make use of forward.url in the traccar.xml configuration file.

This morning I noticed when logging onto my server I was getting errors in relation to too many open files on the Ubuntu operating system. A reboot fixed this but while monitoring the server over the day I noticed the CPU usage would climb but never go down.

After running some tests I noticed if forward.enable is disabled then the usage returns to normal.

If forward.url is set to a .html file then the load still climbs.

I've tried uninstalling lighthttpd and swapping it for Apache and still no luck. I've also tried blanking my PHP script so its not doing anything.

Devices are on a 30 second update interval and i've only got two devices connected to the server.

I've checked the logs and can't see anything related to this features. Is there any simple way to debug it and see why the usage isn't returning to normal?

Thanks,

Steve.

Anton Tananaev9 years ago

Those issues are already fixed. Please try following build:

https://www.dropbox.com/s/myt68q5u7fiz49r/tracker-server-jar-with-dependencies.jar?dl=0

stevebates9 years ago

Hey,

Just installed and so far so good, CPU usage seems pretty level at the moment.

I'll monitor it over night and report back if theres any problems.

Thanks for the quick reply, looking at using Traccar to log our motorhome trips through Europe via a custom web page so been really pleased with it so far.

Thanks,

Steve.

stevebates9 years ago

Hey,

Server performance now seems good and it was pretty stable over night however I've noticed a slight a slight problem, my TK103 tracker has stopped logging locations. The iOS test app is logging in fine.

Checking the logs I found:

2015-09-25 08:00:15 DEBUG: [5185A442: 5001 < 82.132.238.244] HEX: 696d65693a3435393731303034303233313233362c747261636b65722c3135303932353135303031312c2c462c3037303030392e3030302c412c353233372e353534332c4e2c30303135302e303238302c572c302e30302c303b
2015-09-25 08:00:15  WARN: [5185A442] error - java.lang.String cannot be cast to java.lang.Boolean - ClassCastException (WebDataHandler:61 < *:75 < BaseDataHandler:29 < ... < ExtendedObjectDecoder:41 < ...)
2015-09-25 08:00:15  INFO: [5185A442] disconnected

So the device is checking in but it looks like theres a Java error?

Thanks,

Steve.

Anton Tananaev9 years ago