[p4] Monitoring
Albrecht, Matt
matt.albrecht at zilliant.com
Thu Sep 20 09:50:06 PDT 2007
I'm not sure what OS you're using, or other configurations you have.
For myself, I setup a cron job on our Linux server that generates HTML
files based on the output of "vmstat" and "p4 monitor". These can be
retrieved by the web server on the Perforce machine. Since the cron job
runs once a minute, it doesn't put much of a load on the system. Also,
since most people want to check the performance of the perforce server
when it's under a heavy load, creating the status independent of user
web requests keeps this query request from adding to the server load.
One note of caution here. If someone is executing a Perforce task that
locks the database, the "p4 monitor" task will wait until the task that
locks the database completes (at least, that's what our 2006.2 version
server does). This can have two unintended consequences:
* When someone is blocking you from accessing perforce, you want to
see what's going on. Unfortunately, "p4 monitor" will be blocked as
well, so you can't see what that task is.
* If the HTML generator runs the "p4 monitor" and "vmstat" serially,
then the "vmstat" update will block as well, since it can't run until
the "p4 monitor" command completes.
As an aid, I found that including a timestamp on the report for when the
data was generated helps.
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of
> Venters, Cheryl
> Sent: Wednesday, September 19, 2007 10:48 PM
> To: perforce-user at perforce.com
> Subject: [p4] Monitoring
>
> We are getting ready to roll out new hardware for our Perforce server.
> Our IT department will be monitoring the system but not necessarily as
> quickly as I would like. Does anyone have scripts to monitor the p4
> system (that it's still running and it's not being
> bottlenecked by slow
> p4 processes)?
>
>
>
> Thanks.
>
> Cheryl
>
>
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
More information about the perforce-user
mailing list