Perforce Public Knowledge Base - Request Too Large for Server Memory Errors with p4 verify
Reset Search
 

 

Article

Request Too Large for Server Memory Errors with p4 verify

« Go Back

Information

 
Problem

How do I handle "Request too large for server memory" errors when running p4 verify?

What causes "Request too large for server memory" errors when running p4 verify?

Solution

The "Request too large for server memory (try later?)" error occurs when you hit a processes memory limit. For most 32-bit operating systems this is 2GB per process, regardless of whether or not you have more than 2GB of memory available. This memory limit is generally hit when a wide file spec, such as the entire depot, is given as the argument, for example:

# p4 verify -q //...
Date 2009/04/22 23:22:47:
Operation: user-verify
Operation 'user-verify' failed.
Request too large for server memory (try later?).


To prevent this error from happening when using the p4 verify command, you need to make sure that the command does not consume more memory than the process limit. The easiest way of making sure the command does not consume too much memory is to narrow the file spec provided, and break up the verify into smaller chunks. For example:

p4 verify -q //depot/*
p4 verify -q //depot/project1/...
p4 verify -q //depot/project2/...
p4 verify -q //depot/project3/...
p4 verify -q //depot/project4/...
...


By breaking the verify up into the paths within your depot, you can verify the depot and avoid the "Request too large for server memory" errors.

Note on breaking up verify

If you are hard coding the paths for p4 verify, you need to be aware of other paths being added to the depot that are not part of your current verify list. Users can be prevented from adding paths to the base of the p4 verify by using protections, or you can check the directory structure using:

p4 dirs //depot/*

The output of the p4 dirs command can be used to match the paths available to verify.

For more information on easing the load of the p4 verify command, please see KB Article: Speeding Up the p4 verify Command

Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255