|
From: <an...@sp...> - 2018-02-22 20:01:55
|
Em 22/02/2018 07:31, Walter, Stefan escreveu: > [Sent again, as with my first try on Monday, the e-mail seemingly was swallowed by SourceForge's mailing list server.] > > Hello André, > > an open TCP connection should not be a problem. What does "the consumption rises substantially" mean here? What resources are used, and what for, if nothing is to be done at that moment? > > Best regards, > Stefan > > Von: an...@sp... [mailto:an...@sp...] > Gesendet: Freitag, 16. Februar 2018 16:40 > An: Walter, Stefan <Ste...@im...> > Cc: ope...@li... > Betreff: Re: [opentcs-discuss] Using Database and OpenTCS > > Hello Stefan, > > Thank you for the help, I think I will keep with the server-client direct connection. > I have also checked that while the messages are being exchanged, the consumption is almost none, however, while the vehicle is idle and waiting for a new order, the connection remains opened and the comsuption rises substantially, even tough no messages are being exchanged. Would you advise me to close the connection every new message or just when the order is finished? > > Best regards, > André > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > opentcs-discuss mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opentcs-discuss Hello Stefan, Sorry for my dificulty to explain myself, I'll try to make it clear. Let's consider my situation: I run openTCS at a normal computer (Intel Core I3-3.4 GHz, 8GBs RAM) and the vehicles runs with a Raspberry PI3. My vehicles are the server side of the connection, while each adapter created by openTCS for each vehicle is the client side. So, each vehicle has its own channel with its correspondig adapter. Here at work, I'm testing with two vehicles and I keep the connection open for the whole operating time (while vehicles are turned it on). The resources usage changes significantly in two ocasions: * While both vehicles are IDLE and no TransportOrder is created, hence, no messages are being exchanged: * CPU usage: from 45% to 50% * RAM usage: from 50% to 60% * While both vehicles are moving and executing an order, hence, both channels are exchanging messages: * CPU usage: from 7% to 10% * RAM usage: from 25% to 40% Hope I made my problems clearer and easier to understand and looking forward to your reply. Best regards, André |