insufficient resources to complete the requested service

I have a Windows XP PC.
It runs 24 hours per day, 7 days a week.
It does nothing else that running, every night, a (backup) script that does copy files from several production places to a external locally connected USB disk.
Regularly, the script fails during the simple copy operation of one file (not always failing on the same file, of course). The command is like "xcopy fromhere tothere" with some options.
The error message is (french translation to english) "insufficient resources to complete the requested service"
I then reboot the PC and it is okay for one week or two, until it happens again
How can I fix this definitively ?
LVL 1
LeTayAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David GalvinCommented:
The only fix here will probably be a reboot. Windows needs a reboot from time to time to clear system memory etc.

You could setup task schedular to do this every now and again itself.

Instructions here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LelikInsideCommented:
1) Try to find out what process is using all your memory
2)   Start Registry Editor (Regedt32.exe).
      Locate and then click the following key in the registry:
      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management
       On the Edit menu, click Add Value, and then add the following registry value:
       Value name: PoolUsageMaximum
       Data type: REG_DWORD
       Radix: Decimal
       Value data: 60
       
       Setting the value at 60 informs the Memory Manager to start the trimming process at 60 percent of PagedPoolMax rather than the default setting of 80 percent. If a threshold of 60 percent is not enough to handle spikes in activity, reduce this setting to 50 percent or 40 percent.
       Value name: PagedPoolSize
       Data type: REG_DWORD
       Radix: Hex
       Value data: 0xFFFFFFFF

       Setting PagedPoolSize to 0xFFFFFFFF allocates the maximum paged pool in lieu of other resources to the computer.

       Caution The 0xFFFFFFFF PagedPoolSize setting is not recommended for use on 32-bit Windows Server 2003-based computers that have 64GB of RAM. This will potentially bring the Free System PTE entry down and can cause continuous reboot of the computer. For this configuration, carefully choose a value based on the requirements and available resources.
       Quit Registry Editor.
       Restart the server for the changes to take effect.
See here and here
ThommyCommented:
Somehow your memory fills up, so that you don't have enough resources for your copy script after a while...

To watch and clean your RAM you can try this freeware tool...

Release Unused Memory with VC RamCleaner
http://www.mydigitallife.info/2009/10/12/release-unused-memory-with-vc-ramcleaner/

IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

LeTayAuthor Commented:
I was also thinking about a memory problem
My script starts every night but once completed, stops
Is it possible that there is even some memory leak once the script process is finished ?
LelikInsideCommented:
This can be the reason. And it's better to use other software (not old xcopy....maybe ftp.exe?) or to reboot your computer after each backup
ThommyCommented:
Can you please provide the original error message (in French).

At which intervals does your script stop??
Every second night or longer intervals???

Check your memory status in Performance tabsheet of your windows task manager.

But it could also be a problem with your USB device!!!

Try copying to a different folder on the same harddisk and check if error also occurs...
Geert GOracle dbaCommented:
i have bumped into a similar issue

it looks like windows XP has a limit on the number of connections it can make
and just hangs if it exceeds that limit (or the copy hangs)

we're changing the backup to the server version for windows
LeTayAuthor Commented:
Hello Thommy,
I do not have access to that PC right now
I will check later on, probably this week-end
The script fails, I would say every one and an half week or so.
Your idea of a problem with the USB device may be good to follow
Indeed, I made a change last year : I had 3 old USB disks for this purpose (with regular rotation in a grand-father, father and son schema) and I changed all three with new ones...
LeTayAuthor Commented:
Hello Geert, which connections are you writing about ?
The script is almost a sequence of xcopy, nothing else, between one share on a server and a USB external disk locally attached
Geert GOracle dbaCommented:
i copy from other windows xp pc to that windows xp pc with xcopy (or copy command)
it's the number of TCP/IP connections used by copy
LelikInsideCommented:
if it's the number of connections, download free software that changes MTU (max connections number) number. If it's because of USB.....it seems that usb goes to sleep-mode - check the power management in WinXP control panel. There should be an option like "disconnect usb in xxx minutes if computer is idle"
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.