Note: This article was originally published in 2013. Some steps, commands, or software versions may have changed. Check the current Crashplan documentation for the latest information.
In this step-by-step guide, you’ll learn prevent crashplan pro from shutting down abruptly.
How to: Prevent (http://www.crashplan.com “CrashPlan”) Pro from shutting down abruptly
We’ve been using CrashPlan Pro as our backup solution for offsite (http://en.wikipedia.org/wiki/Backup “Backup”). Because of the time it takes to upload the files over the internet we have been doing backups of different folders based on their importance. Recently we ran into the issue that when performing a backup the (http://www.crashplan.com “Code 42 Software”) application would just close itself. When launched it would remain open anywhere from a few seconds to a few minutes. Obviously we didn’t experience this behavior since day 1. All the backups were performed as expected but we started having issues once we started programming those larger backups with big VHDs files. So something with the larger backup was causing CrashPlan to terminate abruptly. The CrashPlan service would still be running but the backup jobs would actually be stopped potentially creating the issue that if left unattended no backups would be performed.
The cause
After reaching out to CrashPlan support their agent was very polite and in a few minutes of troubleshooting suggested that the memory allocated for the CrashPlan Backup application was not enough. Their recommendation is about 1gb of (http://en.wikipedia.org/wiki/Random-access_memory “Random-access memory”) per terabyte of storage backup you need. With 3.5 TB needed to be backed up I guess it was obvious what the issue was here.
The solution
Running (http://en.wikipedia.org/wiki/Notepad_%28software%29 “Notepad (software)”) or any other (http://en.wikipedia.org/wiki/Text_editor “Text editor”) as an Admin, edit the CrashPlan engine’s CrashPlanService.ini file to allow it to use more java memory:
-
Stop the backup engine: http://support.crashplan.com/doku.php/how_to/stop_and_start_engine
-
Locate the Notepad program, (http://en.wikipedia.org/wiki/Context_menu “Context menu”) and Launch as Administrator
-
Go to File > Open, and navigate to C:\Program Files\CrashPlan\CrashPlanService.ini (note that you will have to change the option from (http://en.wikipedia.org/wiki/Text_file “Text file”) files to all files in the file selection screen in order to see the CrashPlanService.ini)
-
Find the following line in the file:
-Xmx512m
- Edit to something larger such as 640, 768, 896, or 1024. E.g.:
-Xmx1024m This sets the maximum amount of memory that CrashPlan can use. CrashPlan will not use that much until it needs it. I would recommend starting out setting it to 1024, and go higher only if you continue experiencing problems. You can set it as high as 2048 on 32-bit systems, or even higher on 64-bit systems.
- Start the backup engine.
Other Platforms
Maybe you are using Linux or Mac with Crashplan and you are encountering the same behavior. After some research, here is the information on where the configuration file lies on those operating systems: The configuration file is located at:
C:\Program Files\CrashPlan\CrashPlanService.ini« Windows/library/launchdaemons/com.crashplan.engine.plist« Mac/usr/local/crashplan/bin/run.conf« Ubuntu · Linux · Debian
It is VERY IMPORTANT you make sure you don’t go over your physical memory size AND that you leave enough free memory for the rest of the applications.
Windows
- Stop the CrashPlan service. On most Windows computers this is in the „ Control Panel > Administrative Tools > Services”
- Open Windows Explorer and browse to
C:\Program Files\CrashPlanand double-click theCrashPlanService.inifile - Look for the following setting: -Xmx512m
- Change “-Xmx512m” to -Xmx1024m or an amount higher if you have bigger backups. Make sure you don’t run out of physical memory
- Save the file
- Start the CrashPlan service
Mac & you get the idea for other Linux distributions
- Launch a terminal window
- Shutdown the CrashPlan daemon:
$ sudo launchctl unload /library/launchdaemons/com.crashplan.engine.plistYou will be asked for your admin password. - Now edit the plist file using a text editor, for example:
$ sudo nano /library/launchdaemons/com.crashplan.engine.plist - Find -Xmx512m , for example by using
Ctrl+W. - Change the value to -Xmx1024m. This will allocate 1024MB of memory instead of the default 512MB.
- Save the file, in nano with
Ctrl+O - Exit nano by using
Ctrl+X - Relaunch the CrashPlan daemon
$ sudo launchctl load /library/launchdaemons/com.crashplan.engine.plist
Summary
You’ve successfully learned prevent crashplan pro from shutting down abruptly. If you run into any issues, double-check the prerequisites and ensure your Crashplan environment is properly configured.