P4LOG (2024)

Name and path of the file to whichHelix Core Servererrors are written.

Usage Notes

Used by Client?Used by Server?Command-Line AlternativeCan be set in P4CONFIG file?

No

Yes

p4d -L file
p4p -L file

N/A

Value if not Explicitly Set

Operating SystemValue

All

Standard error

Examples

log
/disk2/perforce/log

Notes

By default, the location of the log file is in the P4ROOT directory for Windows and in the /opt/perforce/servers/<server-instance>/logs/ directory for a Linux package installation.

If an absolute path and file name is not provided, the log file will be located relative to the P4ROOT directory.

If Helix Core Server is running, you can find its location by using the command:
p4 configure show P4LOG

If you are on Windows and the server is not running, check for P4LOG in the output of:
p4 set -S Perforce P4LOG
where Perforce is the name of the service that is associated with the Helix Core Server.

See Logging commands in theHelix Core Server Administrator Guide.

memory used by command and process

2022.2 release and later: The server log files include an estimate of the memory used by the server to process a command. Tracking output in the P4LOG log file includes output that approximates the number of megabytes of committed, touched memory used by a command.

For example,

--- memory cmd/proc 6mb/10mb.

where

  • the cmd portion indicates the command used 6 megabytes, and

  • the proc portion indicates that the process or thread had a peak usage of 10 megabytes. Peak usage is relevant when multiple commands are run on the same connection.

See also "command-end" in Using structured logging in Helix Core Server Administrator Guide.

paused state

Logs include the amount of time a command has spent in the paused state. See also p4 monitor pause

Tracking output in the P4LOG log file shows lines such as

--- paused $seconds

Version 56 of the 'CommandEnd' event (1.56) in the structured logs has a new field that represents the same data.

server-to-server network usage on replicas

2022.2 release and later: The track output in server log files has been expanded to include network data for upstream server-to-server communication, such as edge server to commit server. Prior to 2022.2, server log files only tracked the network data for the client or downstream server. The upstream server-to-server communication is recorded as additional rpc lines.

See the examples and explanation at "server-to-server network usage on replicas" in Helix Core Server Administrator Guide.

P4LOG (2024)
Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5887

Rating: 4.8 / 5 (68 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.