Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] How Trace Server Gracefully Shutsdown
  • From: Bernd Hufmann <bernd.hufmann@xxxxxxxxxxxx>
  • Date: Wed, 23 Mar 2022 14:43:16 +0000
  • Accept-language: en-CA, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WfkzMmlZvD9SvAFE8tNfJMid4eloRrUD9jTeWW1ExzI=; b=WoKRYs23z76i9SCXe2/OoIue63jlNLVOvnJe1WIv6tMAw84qwLA7EjnrIXsF2kTP5pgyy697f2dqkqPfXF5cTo8OUwH317LsL+VI3777cdVnXXxlALjAtA3JWKrq8E/nwDdXAVBVB0OhLDiXXxHpIj1KhqdojnV8hGJKhMtPZmaF9tV4BwGNMzxA3/ReWDh4ZkW/sj+obrTtYU+m3z3VogEglkRkQppyNlTpMJds66NeepKecR9eFl98VxzgYP++Can1z892ncuppL1K9kJTo41IojX8p1Kl40UB0VrzEaQvqYICPeQbzpIygAClhZ4zEYJ/zMHoIe3Too7/SwKrFQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k8YfIJqRNT2RtUQSl/UIEc8RnIRcgdAlwRe1d4hoBhEU4cY/t1kNlUVz5EFmTgDYYSEVRUn0oc+GL6/r83JAwouKi8Rh7Z25D3YSh6WrT6TWgIhzdhAxNKyNtr+tTXX/PGOcD134JQRF1bzHnxuabLO3gHmT89s2USybYkdiN2c7RdZFe1+m8if/pW6+QOER94N6cLWpMzt/wLVxbl7LPzLYqzmpxuGBwcrOajtBJ6QgGqTXQSZ8CkWn6sG+/E3CRrmSlBgfRct3EmlVK+ajb8kV1mfliL1pSylgqLY8Ka+yqOh1nDMCksIPxSY0xPmLq5+1IdSXGoUzSYPvn3fTBA==
  • Delivered-to: tracecompass-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tracecompass-dev/>
  • List-help: <mailto:tracecompass-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tracecompass-dev>, <mailto:tracecompass-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tracecompass-dev>, <mailto:tracecompass-dev-request@eclipse.org?subject=unsubscribe>
  • Suggested_attachment_session_id: ef495c1f-7650-2c8c-6432-d36680cb24db
  • Thread-index: AQHYPS2T9tBV0tFuAkiv3ZGiu1sqfazJ9RQAgAMW6XA=
  • Thread-topic: [tracecompass-dev] How Trace Server Gracefully Shutsdown

Hi George,

if you start the trace server manually on a command-shell, you can do CTRL+C (foreground process) or kill the process. The server has a shutdown hook implemented to catch the shutdown request, which then stops the webserver, disposes the workspace and resources. As long you don't force kill the process (e.g. Linux kill -9 <pid>), the hook will catch the shutdown.

Using the theia-trace-extension, the server is automatically started when opening a trace or with the "Start trace server" command. For that, you need to configure the path in the preferences under the "Extensions/Trace Viewer". The theia-trace-extension application will take care of the stopping the server when closing the application.

Please note, that README of the theia-trace-extension is currently being updated to give more details on starting the trace server (PR is not merged yet).

Best Regards
Bernd


From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Matthew Khouzam via tracecompass-dev <tracecompass-dev@xxxxxxxxxxx>
Sent: March 21, 2022 11:24 AM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Cc: Matthew Khouzam <matthew.khouzam@xxxxxxxxxxxx>
Subject: Re: [tracecompass-dev] How Trace Server Gracefully Shutsdown
 
Hi George!

I am finding it funny that this issue comes up, just recently we set it to won't fix thinking nobody would have that usecase. I don't think there's a clean way to do so right now

You could make a killswitch if you want, you will need to call "WebApplication#stop", it's not too hard, but I don't think we have anything in our code base right now. Also, I don't think this should be in the trace server protocol.

I hope this helps!

Matthew

From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of George Liu <georgeliu220@xxxxxxxxx>
Sent: Monday, March 21, 2022 10:10 AM
To: tracecompass-dev@xxxxxxxxxxx <tracecompass-dev@xxxxxxxxxxx>
Subject: [tracecompass-dev] How Trace Server Gracefully Shutsdown
 
Hi,

I am currently using Trace Server and starting it manually. I’m wondering what the best method is to gracefully kill all Trace Server processes is. Could I be given some more details on that?

Thanks,
George

Back to the top