In alcuni casi, potrebbe essere preferibile reindirizzare l'output generato dagli agenti a un file piuttosto che a un client. Questa strategia risulta conveniente, ad esempio, First, in order to run the agent headless (i.e. without a client), redirecting output to a file eliminates the need for a client. Second, this would be helpful in scenarios where large amounts of data are being output by the agent beyond what would be reasonable to buffer using the data channel. Streaming this data to a file is faster than streaming it directly to a client for processing.
Per reindirizzare l'output dell'agente a un file:
Esempio
To redirect all the output from the Java Profiling Agent to the profile.trcxml file in the tmp directory, specify the logFile attribute with value /tmp/profile.trcxml
<Agent name="Java Profiling Agent" type="Profiler" logFile="/tmp/profile.trcxml"> </Agent>
Related tasks
Individuazione dei file di configurazione
Configurazione della registrazione log
Gestione di Agent Controller